source: orange/Orange/OrangeCanvas/styles/orange.qss @ 11178:07f7ee00fda9

Revision 11178:07f7ee00fda9, 6.8 KB checked in by Ales Erjavec <ales.erjavec@…>, 18 months ago (diff)

Fixed stylesheet.

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