-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.py
35 lines (30 loc) · 811 Bytes
/
styles.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
import qdarktheme
from config import DARK_PRIMARY_COLOR, DARKER_PRIMARY_COLOR, PRIMARY_COLOR
qss = f"""
QPushButton[cssClass="specialButton"] {{
color: #fff;
background: {PRIMARY_COLOR};
}}
QPushButton[cssClass="specialButton"]:hover {{
color: #fff;
background: {DARK_PRIMARY_COLOR};
}}
QPushButton[cssClass="specialButton"]:pressed {{
color: #fff;
background: {DARKER_PRIMARY_COLOR};
}}
"""
def setupTheme():
qdarktheme.setup_theme(
theme="dark",
corner_shape="rounded",
custom_colors={
"[dark]": {
"primary": f"{PRIMARY_COLOR}",
},
"[light]": {
"primary": f"{PRIMARY_COLOR}",
},
},
additional_qss=qss,
)