source: orange/Orange/OrangeCanvas/styles/orange.qss @ 11212:67fb27ea57b1

Revision 11212:67fb27ea57b1, 7.3 KB checked in by Ales Erjavec <ales.erjavec@…>, 17 months ago (diff)

Elide the path text label if it is too long.

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:menu-indicator {
154     image: url(canvas_icons:/Dropdown.svg);
155     subcontrol-position: top right;
156     height: 8px;
157     width: 8px;
158}
159
160CanvasToolDock QToolBar QToolButton:checked,
161CanvasToolDock QToolBar QToolButton:pressed {
162    background-color: #FFA840;
163}
164
165
166/* Toolbar in the dock when in collapsed state.
167 */
168
169CollapsibleDockWidget QWidget#canvas-quick-dock QToolBar {
170    spacing: 1;
171    border: none;
172    /*
173    background: qlineargradient(
174        x1: 0, y1: 0, x2: 0, y2: 1,
175        stop: 0 #808080, stop: 1.0 #666
176    );
177    */
178    background-color: #898989;
179}
180
181
182CollapsibleDockWidget QWidget#canvas-quick-dock QToolBar QToolButton {
183    border: none;
184    background: qlineargradient(
185        x1: 0, y1: 0, x2: 1, y2: 0,
186        stop: 0 #808080, stop: 1.0 #666
187    );
188}
189
190CollapsibleDockWidget QWidget#canvas-quick-dock QToolBar QToolButton:menu-indicator {
191     image: url(canvas_icons:/Dropdown.svg);
192     subcontrol-position: top right;
193     height: 8px;
194     width: 8px;
195}
196
197CollapsibleDockWidget QWidget#canvas-quick-dock QToolBar QToolButton:checked,
198CollapsibleDockWidget QWidget#canvas-quick-dock QToolBar QToolButton:pressed {
199    background-color: #FFA840;
200}
201
202
203/* Splitter between the widget toolbox and quick help.
204 */
205
206CanvasToolDock QSplitter::handle {
207    border: 1px solid #B5B8B8;
208
209/*    border-top: 1px solid #B5B8B8;
210 *   border-bottom: 1px solid #B5B8B8;
211 *   border-left: 1px solid #B6B6B6;
212 *   border-right: 1px solid #B6B6B6;
213 */
214
215    background:  qlineargradient(
216        x1: 0, y1: 0, x2: 0, y2: 1,
217        stop: 0 #D4D4D4, stop: 0.05 #EDEDED,
218        stop: 0.5 #F2F2F2,
219        stop: 0.95 #EDEDED, stop: 1.0 #E0E0E0
220    );
221}
222
223
224/* Scheme Info Dialog
225 */
226
227SchemeInfoDialog {
228    font-family: "Helvetica";
229    background-color: #E9EFF2;
230}
231
232SchemeInfoDialog SchemeInfoEdit QLabel {
233    font-family: "Helvetica";
234    font-weight: bold;
235    font-size: 16px;
236    color: black;
237}
238
239SchemeInfoDialog QLabel#heading {
240    font-size: 21px;
241    color: #515151;
242}
243
244SchemeInfoDialog StyledWidget#auto-show-container * {
245    font-family: "Helvetica";
246    font-size: 12px;
247    color: #1A1A1A;
248}
249
250SchemeInfoDialog StyledWidget#auto-show-container {
251    border-top: 1px solid #C1C2C3;
252}
253
254SchemeInfoDialog SchemeInfoEdit QLineEdit {
255    padding: 4px;
256    /* background-color: red; */
257    /* font-weight: normal; */
258    font-size: 12px;
259    color: #1A1A1A;
260}
261
262SchemeInfoDialog SchemeInfoEdit QTextEdit {
263    padding: 4px;
264    background-color: white;
265    /* font-weight: normal; */
266    font-size: 12px;
267    color: #1A1A1A;
268}
269
270
271/* Preview Dialog (Recent Schemes and Tutorials)
272 */
273
274PreviewDialog {
275    background-color: #E9EFF2;
276}
277
278PreviewDialog QLabel#heading {
279    font-family: "Helvetica";
280    font-weight: bold;
281    font-size: 21px;
282    color: #515151;
283}
284
285PreviewDialog PreviewBrowser * {
286    font-family: "Helvetica";
287    color: #1A1A1A;
288}
289
290PreviewDialog PreviewBrowser TextLabel#path-text {
291    font-size: 12px;
292}
293
294PreviewDialog PreviewBrowser QLabel#path-label {
295    font-size: 12px;
296}
297
298/* Welcome Screen Dialog
299 */
300
301WelcomeDialog {
302    background-color: #E9EFF2;
303}
304
305WelcomeDialog QToolButton {
306    font-family: "Helvetica";
307    font-size: 13px;
308    font-style: normal;
309    font-weight: bold;
310    color: #333;
311}
312
313WelcomeDialog QWidget#bottom-bar {
314    border-top: 1px solid #C1C2C3;
315}
316
317WelcomeDialog QWidget#bottom-bar QCheckBox {   
318    font-family: "Helvetica";
319    font-size: 12px;
320    color: #333;
321}
322
323
324/* Quick Menu
325 */
326
327QuickMenu {
328    background-color: #E9EFF2;
329}
330
331QuickMenu QFrame#menu-frame {
332    border: 1px solid #9CACB4;
333    border-radius: 3px;
334    background-color: #E9EFF2;
335}
336
337QuickMenu ToolTree QTreeView::item {
338    height: 25px;
339    border-top: 1px solid #e9eff2;
340    border-bottom: 1px solid #e9eff2;
341}
342
343QuickMenu QTreeView::item:hover {
344    background-color: lightblue;
345    color: white;
346}
347
348QuickMenu QTreeView::item:selected {
349    background-color: blue;
350    color: white;
351}
352
353/* Quick Menu search line edit
354 */
355
356QuickMenu QLineEdit {
357    height: 25px;
358    margin: 0px;
359    padding: 0px;
360    border: 1px solid #9CACB4;
361    border-radius: 3px;
362    background-color: white;
363}
364
365QuickMenu QLineEdit:focus {
366    border: 2px solid #9CACB4;
367    border-radius: 2px;
368}
369
370QuickMenu QLineEdit QToolButton {
371    qproperty-flat_: false;
372    height: 25px;
373    border: 1px solid #9CACB4;
374    border-top-left-radius: 3px;
375    border-bottom-left-radius: 3px;
376    background-color: #9CACB4;
377    padding: 0px;
378    margin: 0px;
379    icon-size: 23px;
380}
Note: See TracBrowser for help on using the repository browser.