source: orange/Orange/OrangeCanvas/styles/orange.qss @ 11201:04262f6c3392

Revision 11201:04262f6c3392, 7.0 KB checked in by Ales Erjavec <ales.erjavec@…>, 17 months ago (diff)

Added annotation action menus for font size and arrow color.

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