李威 wei.li
2025-04-21 469c975a708ed86c834b59ed751a4548c693a7b9
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/* Window bar */
 
QWK--WindowBar[bar-active=true] {
    background-color: #195ABE;
    /* background-color: transparent; */
}
 
QWK--WindowBar[bar-active=false] {
    background-color: #195ABE;
    /* background-color: transparent; */
}
 
 
/* Title label */
 
QWK--WindowBar>QLabel#win-title-label {
    padding: 0;
    border: none;
    color: #ECECEC;
    background-color: transparent;
    min-height: 28px;
}
 
 
/* System buttons */
 
QWK--WindowBar>QAbstractButton[system-button=true] {
    qproperty-iconSize: 12px 12px;
    min-width: 50px;
    border: none;
    padding: 0;
    background-color: transparent;
}
 
QWK--WindowBar>QAbstractButton#pin-button {
    qproperty-iconNormal: url(":/window-bar/pin.svg");
    qproperty-iconChecked: url(":/window-bar/pin-fill.svg");
    qproperty-iconSize: 15px 15px;
}
 
QWK--WindowBar>QAbstractButton#pin-button:hover,
QWK--WindowBar>QAbstractButton#pin-button:pressed {
    background-color: rgba(0, 0, 0, 15%);
}
 
QWK--WindowBar>QAbstractButton#min-button {
    qproperty-iconNormal: url(":/window-bar/minimize.svg");
}
 
QWK--WindowBar>QAbstractButton#min-button:hover,
QWK--WindowBar>QAbstractButton#min-button:pressed {
    background-color: rgba(0, 0, 0, 15%);
}
 
QWK--WindowBar>QAbstractButton#max-button {
    qproperty-iconNormal: url(":/window-bar/maximize.svg");
    qproperty-iconChecked: url(":/window-bar/restore.svg");
}
 
QWK--WindowBar>QAbstractButton#max-button:hover,
QWK--WindowBar>QAbstractButton#max-button:pressed {
    background-color: rgba(0, 0, 0, 15%);
}
 
QWK--WindowBar>QAbstractButton#close-button {
    qproperty-iconNormal: url(":/window-bar/close.svg");
}
 
QWK--WindowBar>QAbstractButton#close-button:hover,
QWK--WindowBar>QAbstractButton#close-button:pressed {
    background-color: #e81123;
}
 
 
/* Icon button */
 
QWK--WindowBar>QAbstractButton#icon-button {
    qproperty-iconNormal: url(":/app/example.png");
    qproperty-iconSize: 18px 18px;
    min-width: 40px;
    border: none;
    padding: 0;
    background-color: transparent;
}
 
 
/* Menu Bar */
 
QMenuBar {
    background-color: transparent;
    border: none;
}
 
QMenuBar>QToolButton#qt_menubar_ext_button {
    qproperty-icon: url(":/window-bar/more-line.svg");
}
 
QMenuBar>QToolButton#qt_menubar_ext_button:hover,
QMenuBar>QToolButton#qt_menubar_ext_button:pressed {
    background-color: rgba(255, 255, 255, 10%);
}
 
QMenuBar::item {
    color: #EEEEEE;
    border: none;
    padding: 8px 12px;
}
 
QMenuBar::item:selected {
    background-color: rgba(255, 255, 255, 10%);
}
 
 
/* Menu */
 
QMenu {
    padding: 4px;
    background: white;
    border: 1px solid #E0E0E0;
}
 
QMenu::indicator {
    left: 6px;
    width: 20px;
    height: 20px;
}
 
QMenu::icon {
    left: 6px;
}
 
QMenu::item {
    background: transparent;
    color: #333333;
    padding: 6px 24px;
}
 
QMenu::item:selected {
    background-color: rgba(0, 0, 0, 10%);
}
 
QMenu::item:disabled {
    color: #CCCCCC;
}
 
QMenu::separator {
    height: 2px;
    background-color: #CCCCCC;
    margin: 6px 0;
}
 
 
/* Window */
 
MainWindow {
    background-color: #F3F3F3;
}
 
MainWindow[custom-style=true] {
    background-color: transparent;
}
 
QWidget#clock-widget {
    font-size: 75px;
    color: #333333;
    font-weight: bold;
    background-color: transparent;
}