-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayouts.py
101 lines (91 loc) · 1.69 KB
/
layouts.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import os
import PySimpleGUIQt as sg
from funcs import *
sg.LOOK_AND_FEEL_TABLE['Native'] = {
'BACKGROUND': sg.COLOR_SYSTEM_DEFAULT,
'TEXT': sg.COLOR_SYSTEM_DEFAULT,
'INPUT': sg.COLOR_SYSTEM_DEFAULT,
'TEXT_INPUT': sg.COLOR_SYSTEM_DEFAULT,
'SCROLL': sg.COLOR_SYSTEM_DEFAULT,
'BUTTON': (sg.COLOR_SYSTEM_DEFAULT, sg.COLOR_SYSTEM_DEFAULT),
'PROGRESS': sg.DEFAULT_PROGRESS_BAR_COLOR,
'BORDER': 1,
'SLIDER_DEPTH': 0,
'PROGRESS_DEPTH': 0,
}
sg.theme('Native')
waybar_themes_array = os.listdir(f'{home_dir}/.swts/wbthemes')
sway_config_array = os.listdir(f'{home_dir}/.swts/swconfig')
waybar_layout = [
[
sg.Text('Select a Theme to apply')
],
[
sg.Combo(waybar_themes_array)
],
[
sg.Text("", key="-WBOUTPUT-")
],
[
sg.Button('Ok', key="-WBOKBTN-"),
sg.Button('Apply', key="-WBAPPLYBTN-"),
]
]
sway_config_layout = [
[
sg.Text('Select a Config to apply')
],
[
sg.Combo(sway_config_array)
],
[
sg.Text("", key="-SWOUTPUT-")
],
[
sg.Button('Ok', key="-SWOKBTN-"),
sg.Button('Apply', key="-SWAPPLYBTN-"),
]
]
about_layout = [
[
sg.Text('SwTS')
],
[
sg.Text('Change your Sway and Waybar theme in a easier way!')
],
[
sg.Text('')
],
[
sg.Text('Made by Brisolo32 in Brazil')
]
]
tab_layout = [
[
sg.TabGroup(
[
[
sg.Tab(
"Waybar",
waybar_layout,
border_width=10,
background_color='white',
),
sg.Tab(
"Sway",
sway_config_layout,
border_width=10,
background_color='white',
),
sg.Tab(
"About",
about_layout,
border_width=10,
background_color='white',
element_justification='center'
),
]
]
)
]
]