source: orange/Orange/OrangeCanvas/styles/orange.qss @ 11127:b4a3437064eb

Revision 11127:b4a3437064eb, 6.6 KB checked in by Ales Erjavec <ales.erjavec@…>, 18 months ago (diff)

Added default orange qss style sheet.

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