-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme_display.py
81 lines (63 loc) · 3.05 KB
/
theme_display.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import ttkbootstrap as ttk
from ttkbootstrap.constants import *
from ttkbootstrap import Style
def checker(self):
if self.var.get() == 0:
themename = 'darkly'
# Apply the new theme to the style
self.style_window.theme_use(themename)
self.table.tag_configure('evenrow', background='#05060a')#A36D8C
self.table.tag_configure('oddrow', background='#171a2b')#6D73A3
self.profile_image_label.configure(background='#1e1f1c')
self.name_label.configure(background='#1e1f1c')
self.sentnum.configure(background='#1e1f1c')
self.receivenum.configure(background='#1e1f1c')
self.labelpath.configure(background='#1e1f1c')
self.urll.configure(foreground='red')
bbc = '#1e1f1c'
style = ttk.Style()
style.configure("Splash.TFrame", background=bbc)
self.profile_frame_1.configure(style="Splash.TFrame")
self.name_frame.configure(style='Splash.TFrame')
self.receive_path_label.configure(style='Splash.TFrame')
self.radiobuttons_frame.configure(style='Splash.TFrame')
self.button_frame.configure(style='Splash.TFrame')
self.mood = 'darkly'
elif self.var.get() == 1:
themename = DEFAULT_THEME
# Apply the new theme to the style
self.style_window.theme_use(themename)
self.table.tag_configure('evenrow', background='#F8F8F8')
self.table.tag_configure('oddrow', background='#FFFFFF')
self.profile_image_label.configure(background='#fcfcfa')
self.name_label.configure(background='#fcfcfa')
self.sentnum.configure(background='#fcfcfa')
self.receivenum.configure(background='#fcfcfa')
self.labelpath.configure(background='#fcfcfa')
self.urll.configure(foreground='blue')
bbc = '#fcfcfa'
style = ttk.Style()
style.configure("Splash.TFrame", background=bbc)
self.profile_frame_1.configure(style="Splash.TFrame")
self.name_frame.configure(style='Splash.TFrame')
self.receive_path_label.configure(style='Splash.TFrame')
self.radiobuttons_frame.configure(style='Splash.TFrame')
self.button_frame.configure(style='Splash.TFrame')
#self.change_name_button.configure(style='Splash.TFrame')
self.mood = 'light'
self.save_configuration()
# def checker(self):
# if self.var.get() == 0:
# themename = 'darkly'
# # Apply the new theme to the style
# self.style_window.theme_use(themename)
# self.table.tag_configure('evenrow', background='#05060a')#A36D8C
# self.table.tag_configure('oddrow', background='#171a2b')#6D73A3
# print('changed to darkly')
# else:
# themename = DEFAULT_THEME
# # Apply the new theme to the style
# self.style_window.theme_use(themename)
# self.table.tag_configure('evenrow', background='#F8F8F8')
# self.table.tag_configure('oddrow', background='#FFFFFF')
# print('changed to whitely')