]> sigrok.org Git - pulseview.git/blame - themes/darkstyle/darkstyle.qss
Themes: Attempt at working around wrong widget backgrounds on Windows
[pulseview.git] / themes / darkstyle / darkstyle.qss
CommitLineData
660ae94d
SA
1QScrollArea {
2 background-color: transparent; /* Workaround for widget background on Windows, see https://stackoverflow.com/questions/25012224/qt-widget-background-differs-from-linux-to-windows/25088075 */
3}
37b0bd35
SA
4QToolTip{
5 color:#ffffff;
6 background-color:palette(base);
7 border:1px solid palette(highlight);
8 border-radius:4px;
9}
10QStatusBar{
11 background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
12 color:palette(mid);
13}
14QMenuBar{
15 background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
16 border-bottom:2px solid rgba(25,25,25,75);
17}
18QMenuBar::item{
19 spacing:2px;
20 padding:3px 4px;
21 background:transparent;
22}
23QMenuBar::item:selected{
24 background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(106,106,106,255),stop:1 rgba(106,106,106,75));
25 border-left:1px solid rgba(106,106,106,127);
26 border-right:1px solid rgba(106,106,106,127);
27}
28QMenuBar::item:pressed{
29 background-color:palette(highlight);
30 border-left:1px solid rgba(25,25,25,127);
31 border-right:1px solid rgba(25,25,25,127);
32}
33QMenu{
34 background-color:palette(window);
35 border:1px solid palette(shadow);
36}
37QMenu::item{
38 padding:3px 25px 3px 25px;
39 border:1px solid transparent;
40}
41QMenu::item:disabled{
42 background-color:rgba(35,35,35,127);
43 color:palette(disabled);
44}
45QMenu::item:selected{
46 border-color:rgba(147,191,236,127);
47 background:palette(highlight);
48}
49QMenu::icon:checked{
50 background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
51 border:1px solid palette(highlight);
52 border-radius:2px;
53}
54QMenu::separator{
55 height:1px;
56 background:palette(alternate-base);
57 margin-left:5px;
58 margin-right:5px;
59}
60QMenu::indicator{
61 width:18px;
62 height:18px;
63}
64QMenu::indicator:non-exclusive:checked{
65 image:url(:/themes/darkstyle/icon_checkbox_checked.png);
66 padding-left:2px;
67}
68QMenu::indicator:non-exclusive:unchecked{
69 image:url(:/themes/darkstyle/icon_checkbox_unchecked.png);
70 padding-left:2px;
71}
72QMenu::indicator:exclusive:checked{
73 image:url(:/themes/darkstyle/icon_radiobutton_checked.png);
74 padding-left:2px;
75}
76QMenu::indicator:exclusive:unchecked{
77 image:url(:/themes/darkstyle/icon_radiobutton_unchecked.png);
78 padding-left:2px;
79}
80QToolBar::top{
81 background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
82 border-bottom:3px solid qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
83}
84QToolBar::bottom{
85 background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
86 border-top:3px solid qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
87}
88QToolBar::left{
89 background-color:qlineargradient(x1:0,y1:0,x2:1,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
90 border-right:3px solid qlineargradient(x1:0,y1:0,x2:1,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
91}
92QToolBar::right{
93 background-color:qlineargradient(x1:1,y1:0,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
94 border-left:3px solid qlineargradient(x1:1,y1:0,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
95}
96QMainWindow::separator{
97 width:6px;
98 height:5px;
99 padding:2px;
100}
101QSplitter::handle:horizontal{
102 width:10px;
103}
104QSplitter::handle:vertical{
105 height:10px;
106}
107QMainWindow::separator:hover,QSplitter::handle:hover{
108 background:palette(highlight);
109}
110QDockWidget::title{
111 padding:4px;
112 background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
113 border:1px solid rgba(25,25,25,75);
114 border-bottom:2px solid rgba(25,25,25,75);
115}
116QDockWidget{
117 titlebar-close-icon:url(:/themes/darkstyle/icon_close.png);
118 titlebar-normal-icon:url(:/themes/darkstyle/icon_restore.png);
119}
120QDockWidget::close-button,QDockWidget::float-button{
121 subcontrol-position:top right;
122 subcontrol-origin:margin;
123 position:absolute;
124 top:3px;
125 bottom:0px;
126 width:20px;
127 height:20px;
128}
129QDockWidget::close-button{
130 right:3px;
131}
132QDockWidget::float-button{
133 right:25px;
134}
135QGroupBox{
136 background-color:rgba(66,66,66,50%);
137 margin-top:27px;
138 border:1px solid rgba(25,25,25,127);
139 border-radius:4px;
140}
141QGroupBox::title{
142 subcontrol-origin:margin;
143 subcontrol-position:left top;
144 padding:4px 6px;
145 margin-left:3px;
146 background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
147 border:1px solid rgba(25,25,25,75);
148 border-bottom:2px solid rgb(127,127,127);
149 border-top-left-radius:4px;
150 border-top-right-radius:4px;
151}
152QTabWidget::pane{
153 background-color:rgba(66,66,66,50%);
154 border-top:1px solid rgba(25,25,25,50%);
155}
156QTabWidget::tab-bar{
157 left:3px;
158 top:1px;
159}
160QTabBar{
161 background-color:transparent;
162 qproperty-drawBase:0;
163 border-bottom:1px solid rgba(25,25,25,50%);
164}
165QTabBar::tab{
166 padding:4px 6px;
167 background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
168 border:1px solid rgba(25,25,25,75);
169 border-top-left-radius:4px;
170 border-top-right-radius:4px;
171}
172QTabBar::tab:selected,QTabBar::tab:hover{
173 background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 rgba(53,53,53,127),stop:1 rgba(66,66,66,50%));
174 border-bottom-color:rgba(66,66,66,75%);
175}
176QTabBar::tab:selected{
177 border-bottom:2px solid palette(highlight);
178}
179QTabBar::tab::selected:disabled{
180 border-bottom:2px solid rgb(127,127,127);
181}
182QTabBar::tab:!selected{
183 margin-top:2px;
184}
185QCheckBox::indicator{
186 width:18px;
187 height:18px;
188}
189QCheckBox::indicator:checked,QTreeView::indicator:checked,QTableView::indicator:checked,QGroupBox::indicator:checked{
190 image:url(:/themes/darkstyle/icon_checkbox_checked.png);
191}
192QCheckBox::indicator:checked:pressed,QTreeView::indicator:checked:pressed,QTableView::indicator:checked:pressed,QGroupBox::indicator:checked:pressed{
193 image:url(:/themes/darkstyle/icon_checkbox_checked_pressed.png);
194}
195QCheckBox::indicator:checked:disabled,QTreeView::indicator:checked:disabled,QTableView::indicator:checked:disabled,QGroupBox::indicator:checked:disabled{
196 image:url(:/themes/darkstyle/icon_checkbox_checked_disabled.png);
197}
198QCheckBox::indicator:unchecked,QTreeView::indicator:unchecked,QTableView::indicator:unchecked,QGroupBox::indicator:unchecked{
199 image:url(:/themes/darkstyle/icon_checkbox_unchecked.png);
200}
201QCheckBox::indicator:unchecked:pressed,QTreeView::indicator:unchecked:pressed,QTableView::indicator:unchecked:pressed,QGroupBox::indicator:unchecked:pressed{
202 image:url(:/themes/darkstyle/icon_checkbox_unchecked_pressed.png);
203}
204QCheckBox::indicator:unchecked:disabled,QTreeView::indicator:unchecked:disabled,QTableView::indicator:unchecked:disabled,QGroupBox::indicator:unchecked:disabled{
205 image:url(:/themes/darkstyle/icon_checkbox_unchecked_disabled.png);
206}
207QCheckBox::indicator:indeterminate,QTreeView::indicator:indeterminate,QTableView::indicator:indeterminate,QGroupBox::indicator:indeterminate{
208 image:url(:/themes/darkstyle/icon_checkbox_indeterminate.png);
209}
210QCheckBox::indicator:indeterminate:pressed,QTreeView::indicator:indeterminate:pressed,QTableView::indicator:indeterminate:pressed,QGroupBox::indicator:indeterminate:pressed{
211 image:url(:/themes/darkstyle/icon_checkbox_indeterminate_pressed.png);
212}
213QCheckBox::indicator:indeterminate:disabled,QTreeView::indicator:indeterminate:disabled,QTableView::indicator:indeterminate:disabled,QGroupBox::indicator:indeterminate:disabled{
214 image:url(:/themes/darkstyle/icon_checkbox_indeterminate_disabled.png);
215}
216QRadioButton::indicator{
217 width:18px;
218 height:18px;
219}
220QRadioButton::indicator:checked{
221 image:url(:/themes/darkstyle/icon_radiobutton_checked.png);
222}
223QRadioButton::indicator:checked:pressed{
224 image:url(:/themes/darkstyle/icon_radiobutton_checked_pressed.png);
225}
226QRadioButton::indicator:checked:disabled{
227 image:url(:/themes/darkstyle/icon_radiobutton_checked_disabled.png);
228}
229QRadioButton::indicator:unchecked{
230 image:url(:/themes/darkstyle/icon_radiobutton_unchecked.png);
231}
232QRadioButton::indicator:unchecked:pressed{
233 image:url(:/themes/darkstyle/icon_radiobutton_unchecked_pressed.png);
234}
235QRadioButton::indicator:unchecked:disabled{
236 image:url(:/themes/darkstyle/icon_radiobutton_unchecked_disabled.png);
237}
238QTreeView, QTableView{
239 alternate-background-color:palette(window);
240 background:palette(base);
241}
242QTreeView QHeaderView::section, QTableView QHeaderView::section{
243 background-color:qlineargradient(x1:0,y1:1,x2:0,y2:0,stop:0 rgba(25,25,25,127),stop:1 rgba(53,53,53,75));
244 border-style:none;
245 border-bottom:1px solid palette(dark);
246 padding-left:5px;
247 padding-right:5px;
248}
249QTreeView::item:selected:disabled, QTableView::item:selected:disabled{
250 background:rgb(80,80,80);
251}
252QTreeView::branch{
253 background-color:palette(base);
254}
255QTreeView::branch:has-siblings:!adjoins-item{
256 border-image:url(:/themes/darkstyle/icon_vline.png) 0;
257}
258QTreeView::branch:has-siblings:adjoins-item{
259 border-image:url(:/themes/darkstyle/icon_branch_more.png) 0;
260}
261QTreeView::branch:!has-children:!has-siblings:adjoins-item{
262 border-image:url(:/themes/darkstyle/icon_branch_end.png) 0;
263}
264QTreeView::branch:has-children:!has-siblings:closed,
265QTreeView::branch:closed:has-children:has-siblings{
266 border-image:none;
267 image:url(:/themes/darkstyle/icon_branch_closed.png);
268}
269QTreeView::branch:open:has-children:!has-siblings,
270QTreeView::branch:open:has-children:has-siblings{
271 border-image:none;
272 image:url(:/themes/darkstyle/icon_branch_open.png);
273}
274QScrollBar:vertical{
275 background:palette(base);
276 border-top-right-radius:2px;
277 border-bottom-right-radius:2px;
278 width:16px;
279 margin:0px;
280}
281QScrollBar::handle:vertical{
282 background-color:palette(alternate-base);
283 border-radius:2px;
284 min-height:20px;
285 margin:2px 4px 2px 4px;
286}
287QScrollBar::handle:vertical:hover{
288 background-color:palette(highlight);
289}
290QScrollBar::add-line:vertical{
291 background:none;
292 height:0px;
293 subcontrol-position:right;
294 subcontrol-origin:margin;
295}
296QScrollBar::sub-line:vertical{
297 background:none;
298 height:0px;
299 subcontrol-position:left;
300 subcontrol-origin:margin;
301}
302QScrollBar:horizontal{
303 background:palette(base);
304 height:16px;
305 margin:0px;
306}
307QScrollBar::handle:horizontal{
308 background-color:palette(alternate-base);
309 border-radius:2px;
310 min-width:20px;
311 margin:4px 2px 4px 2px;
312}
313QScrollBar::handle:horizontal:hover{
314 background-color:palette(highlight);
315}
316QScrollBar::add-line:horizontal{
317 background:none;
318 width:0px;
319 subcontrol-position:bottom;
320 subcontrol-origin:margin;
321}
322QScrollBar::sub-line:horizontal{
323 background:none;
324 width:0px;
325 subcontrol-position:top;
326 subcontrol-origin:margin;
327}
328QSlider::handle:horizontal{
329 border-radius:4px;
330 border:1px solid rgba(25,25,25,255);
331 background-color:palette(alternate-base);
332 min-height:20px;
333 margin:0 -4px;
334}
335QSlider::handle:horizontal:hover{
336 background:palette(highlight);
337}
338QSlider::add-page:horizontal{
339 background:palette(base);
340}
341QSlider::sub-page:horizontal{
342 background:palette(highlight);
343}
344QSlider::sub-page:horizontal:disabled{
345 background:rgb(80,80,80);
346}