-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.py
More file actions
50 lines (41 loc) · 956 Bytes
/
styles.py
File metadata and controls
50 lines (41 loc) · 956 Bytes
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
"""Qt Style Sheets for the application."""
from config import COLORS
MAIN_STYLE = f"""
QWidget#MainWindow {{
background-color: {COLORS['background']};
border-radius: 12px;
}}
QLineEdit#SearchInput {{
background-color: {COLORS['input_bg']};
border: none;
border-radius: 8px;
padding: 12px 16px;
font-size: 16px;
color: {COLORS['text']};
selection-background-color: {COLORS['accent']};
}}
QLineEdit#SearchInput:focus {{
background-color: {COLORS['input_bg']};
}}
QLineEdit#SearchInput::placeholder {{
color: {COLORS['text_secondary']};
}}
QFrame#ResultFrame {{
background-color: {COLORS['result_bg']};
border-radius: 8px;
padding: 8px;
}}
QLabel#TranslatedText {{
color: {COLORS['text']};
font-size: 15px;
padding: 8px 12px;
}}
QLabel#SourceInfo {{
color: {COLORS['text_secondary']};
font-size: 12px;
padding: 4px 12px;
}}
QLabel#GoogleIcon {{
padding: 8px;
}}
"""