source: orange/Orange/OrangeCanvas/styles/orange.qss @ 11173:0bcd5f586f7a

Revision 11173:0bcd5f586f7a, 6.8 KB checked in by Ales Erjavec <ales.erjavec@…>, 18 months ago (diff)

Use white icons on black toolbar background.

Line 
1/*  Default Orange stylesheet
2 */
3
4/*
5 * Icon search paths relative to this files directory.
6 * (main.py script will add this to QDir.searchPaths)
7 */
8
9@canvas_icons=orange
10
11CanvasMainWindow {
12    background-color: #E9EFF2;
13}
14
15
16/* The widget buttons in the dock tool box */
17
18WidgetsToolGrid QToolButton {
19    font-family: "Helvetica";
20    font-size: 10px;
21    font-weight: bold;
22    color: #333;
23}
24
25
26/* Dock widget toolbox tab buttons (categories) */
27
28WidgetToolBox QToolButton#toolbox-tab-button {
29    /* nativeStyling property overrides the QStyle and uses a fixed drawing
30    routine */
31    qproperty-nativeStyling_: "false";
32
33    font-family: "Helvetica";
34    font-size: 14px;
35    font-weight: bold;
36    color: #333;
37    border: none;
38    border-bottom: 1px solid #B5B8B8;
39    background: qlineargradient(
40        x1: 0, y1: 0, x2: 0, y2: 1,
41        stop: 0 #F2F2F2,
42        stop: 0.5 #F2F2F2,
43        stop: 0.8 #EBEBEB,
44        stop: 1.0 #DBDBDB
45    );
46}
47
48
49WidgetToolBox QToolButton#toolbox-tab-button:hover {
50    background-color: palette(light);
51}
52
53
54WidgetToolBox QToolButton#toolbox-tab-button:checked {
55    background-color: palette(dark);
56}
57
58
59WidgetToolBox QToolButton#toolbox-tab-button:focus {
60    background-color: palette(highlight);
61    border: 1px solid #609ED7
62}
63
64
65WidgetToolBox ToolGrid {
66    background-color: #E9EFF2;
67}
68
69
70WidgetToolBox ToolGrid QToolButton {
71    border: none;
72    border-bottom: 2px solid #B5B8B8;
73    border-right: 2px solid #B5B8B8;
74    background-color: #F2F2F2;
75}
76
77
78WidgetToolBox ToolGrid QToolButton[last-column] {
79    border-right: none;
80}
81
82WidgetToolBox  ToolGrid QToolButton:focus {
83    background-color: palette(window);
84}
85
86WidgetToolBox  ToolGrid QToolButton:pressed {
87    background-color: palette(dark);
88}
89
90
91
92/*
93 *QuickCategoryToolbar _QuickCategoryButton {
94 *    qproperty-nativeStyling_: "true";
95 *    background-color: palette(button);
96 *    border: none;
97 *    border-bottom: 1px solid palette(dark);
98 *}
99 */
100
101
102/* Canvas Dock Header */
103
104CollapsibleDockWidget::title {
105    background: qlineargradient(
106        x1: 0, y1: 0, x2: 0, y2: 1,
107        stop: 0 #808080, stop: 1.0 #666
108    );
109}
110
111/* Dock widget title bar button icons (icon size for both must be set).
112 * The buttons define the title bar height.
113 */
114
115CollapsibleDockWidget::close-button, CollapsibleDockWidget::float-button {
116    padding: 1px;
117    icon-size: 11px;
118}
119
120CanvasToolDock WidgetToolBox {
121    border: 1px solid #B5B8B8;
122}
123
124
125/* Toolbar at the bottom of the dock widget when in in expanded state
126 */
127
128CanvasToolDock QToolBar {
129    height: 28;
130    spacing: 1;
131    border: none;
132    /*
133    background: qlineargradient(
134        x1: 0, y1: 0, x2: 0, y2: 1,
135        stop: 0 #808080, stop: 1.0 #666
136    );
137    */
138    background-color: #898989;
139
140}
141
142CanvasToolDock QToolBar QToolButton {
143    border: none;
144    background: qlineargradient(
145        x1: 0, y1: 0, x2: 0, y2: 1,
146        stop: 0 #808080, stop: 1.0 #666
147    );
148}
149
150CanvasToolDock QToolBar QToolButton:checked,
151CanvasToolDock QToolBar QToolButton:pressed {
152    background-color: #FFA840;
153}
154
155
156/* Toolbar in the dock when in collapsed state.
157 */
158
159CollapsibleDockWidget QWidget#canvas-quick-dock QToolBar {
160    spacing: 1;
161    border: none;
162    /*
163    background: qlineargradient(
164        x1: 0, y1: 0, x2: 0, y2: 1,
165        stop: 0 #808080, stop: 1.0 #666
166    );
167    */
168    background-color: #898989;
169}
170
171
172CollapsibleDockWidget QWidget#canvas-quick-dock QToolBar QToolButton {
173    border: none;
174    background: qlineargradient(
175        x1: 0, y1: 0, x2: 1, y2: 0,
176        stop: 0 #808080, stop: 1.0 #666
177    );
178}
179
180CollapsibleDockWidget QWidget#canvas-quick-dock QToolBar QToolButton:checked,
181CollapsibleDockWidget QWidget#canvas-quick-dock QToolBar QToolButton:pressed {
182    background-color: #FFA840;
183}
184
185
186/* Splitter between the widget toolbox and quick help.
187 */
188
189CanvasToolDock QSplitter::handle {
190    border: 1px solid #B5B8B8;
191
192/*    border-top: 1px solid #B5B8B8;
193 *   border-bottom: 1px solid #B5B8B8;
194 *   border-left: 1px solid #B6B6B6;
195 *   border-right: 1px solid #B6B6B6;
196 */
197
198    background:  qlineargradient(
199        x1: 0, y1: 0, x2: 0, y2: 1,
200        stop: 0 #D4D4D4, stop: 0.05 #EDEDED,
201        stop: 0.5 #F2F2F2,
202        stop: 0.95 #EDEDED, stop: 1.0 #E0E0E0
203    );
204}
205
206
207/* Scheme Info Dialog
208 */
209
210SchemeInfoDialog {
211    font-family: "Helvetica";
212    background-color: #E9EFF2;
213}
214
215SchemeInfoDialog SchemeInfoEdit QLabel {
216    font-family: "Helvetica";
217    font-weight: bold;
218    font-size: 16px;
219    color: black;
220}
221
222SchemeInfoDialog QLabel#heading {
223    font-size: 21px;
224    color: #515151;
225}
226
227SchemeInfoDialog StyledWidget#auto-show-container * {
228    font-family: "Helvetica";
229    font-size: 12px;
230    color: #1A1A1A;
231}
232
233SchemeInfoDialog StyledWidget#auto-show-container {
234    border-top: 1px solid #C1C2C3;
235}
236
237SchemeInfoDialog SchemeInfoEdit QLineEdit {
238    padding: 4px;
239    /* background-color: red; */
240    /* font-weight: normal; */
241    font-size: 12px;
242    color: #1A1A1A;
243}
244
245SchemeInfoDialog SchemeInfoEdit QTextEdit {
246    padding: 4px;
247    background-color: white;
248    /* font-weight: normal; */
249    font-size: 12px;
250    color: #1A1A1A;
251}
252
253
254/* Preview Dialog (Recent Schemes)
255 */
256
257PreviewDialog {
258    background-color: #E9EFF2;
259}
260
261PreviewDialog QLabel#heading {
262    font-family: "Helvetica";
263    font-weight: bold;
264    font-size: 21px;
265    color: #515151;
266}
267
268PreviewDialog PreviewBrowser QLabel#description-label {
269    font-family: "Helvetica";
270    /* font-weight: bold;
271    font-size: 21px; */
272    color: #1A1A1A;
273}
274
275
276/* Welcome Screen Dialog
277 */
278
279WelcomeDialog {
280    background-color: #E9EFF2;
281}
282
283WelcomeDialog QToolButton {
284    font-family: "Helvetica";
285    font-size: 13px;
286    font-style: normal;
287    font-weight: bold;
288    color: #333;
289}
290
291WelcomeDialog QWidget#bottom-bar {
292    border-top: 1px solid #C1C2C3;
293}
294
295WelcomeDialog QWidget#bottom-bar QCheckBox {   
296    font-family: "Helvetica";
297    font-size: 12px;
298    color: #333;
299}
300
301
302/* Quick Menu
303 */
304
305QuickMenu {
306    background-color: #E9EFF2;
307}
308
309QuickMenu QFrame#menu-frame {
310    border: 1px solid #9CACB4;
311    border-radius: 3px;
312    background-color: #E9EFF2;
313}
314
315QuickMenu ToolTree QTreeView::item {
316    height: 25px;
317    border-top: 1px solid #e9eff2;
318    border-bottom: 1px solid #e9eff2;
319}
320
321QuickMenu QTreeView::item:hover {
322    background-color: lightblue;
323    color: white;
324}
325
326QuickMenu QTreeView::item:selected {
327    background-color: blue;
328    color: white;
329}
330
331/* Quick Menu search line edit
332 */
333
334QuickMenu QLineEdit {
335    height: 25px;
336    margin: 0px;
337    padding: 0px;
338    border: 1px solid #9CACB4;
339    border-radius: 3px;
340    background-color: white;
341}
342
343QuickMenu QLineEdit:focus {
344    border: 2px solid #9CACB4;
345    border-radius: 2px;
346}
347
348QuickMenu QLineEdit QToolButton {
349    qproperty-flat_: false;
350    height: 25px;
351    border: 1px solid #9CACB4;
352    border-top-left-radius: 3px;
353    border-bottom-left-radius: 3px;
354    background-color: #9CACB4;
355    padding: 0px;
356    margin: 0px;
357    icon-size: 23px;
358}
Note: See TracBrowser for help on using the repository browser.