Revision 175:741f88f51b06

View differences:

main/MainWindow.cpp
2652 2652
MainWindow::loadStyle()
2653 2653
{
2654 2654
    m_viewManager->setGlobalDarkBackground(true);
2655
    
2655

  
2656
#ifdef Q_OS_MAC    
2657
    QString stylepath = ":vect-mac.qss";
2658
#else
2656 2659
    QString stylepath = ":vect.qss";
2660
#endif
2661

  
2657 2662
    QFile file(stylepath);
2658 2663
    if (!file.open(QFile::ReadOnly)) {
2659 2664
        SVCERR << "WARNING: Failed to open style file " << stylepath << endl;
vect-mac.qss
1
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
2

  
3
/*
4
    Vect
5
    An experimental audio player for plural recordings of a work
6
    Centre for Digital Music, Queen Mary, University of London.
7

  
8
    This file is based on the Thorn theme of the Rosegarden MIDI and
9
    audio sequencer and notation editor.  Copyright 2006-2014
10
    D. Michael McIntyre and the Rosegarden team.
11
    
12
    This program is free software; you can redistribute it and/or
13
    modify it under the terms of the GNU General Public License as
14
    published by the Free Software Foundation; either version 2 of the
15
    License, or (at your option) any later version.  See the file
16
    COPYING included with this distribution for more information.
17
*/
18

  
19
QWidget
20
{
21
    background: #333333;
22
    color: #FAFAFA;
23
}
24

  
25
QDialog
26
{
27
    background-color: #333333;
28
}
29

  
30
QFrame#BottomFrame,
31
QFrame#BottomFrame > QFrame
32
{
33
    background-color: #333333;
34
}
35

  
36
QLabel
37
{
38
    background: transparent;
39
    color: white;
40
}
41

  
42
QMenu
43
{
44
    background-color: #EEEEEE;
45
    border: 1px solid black;
46
}
47

  
48
QMenu::separator
49
{
50
    height: 2px;
51
    background: #AAAAAA;
52
    margin-left: 10px;
53
    margin-right: 5px;
54
}
55

  
56
QMenu::item:enabled
57
{
58
    background-color: transparent;
59
    color: #000000;
60
    padding: 2px 25px 2px 20px;
61
    border: 1px solid transparent;
62
    min-width: 12em; /* leaves room for space between item and hotkey */
63
}
64

  
65
QMenu::item:!enabled
66
{
67
    color: #AAAAAA;
68
    padding: 2px 25px 2px 20px;
69
    border: 1px solid transparent;
70
    min-width: 12em; /* leaves room for space between item and hotkey */
71
}
72

  
73
QMenu::item:selected
74
{
75
    background-color: #80AFFF;
76
    color: #FFFFFF;
77
}
78

  
79
QCheckBox:enabled QLabel,
80
QCheckBox:enabled
81
{
82
    color: #FFFFFF
83
}
84

  
85
QCheckbox:!enabled QLabel,
86
QCheckBox:!enabled
87
{
88
    color: #000000;
89
}
90

  
91
QCheckBox::indicator:enabled
92
{
93
    background: url(:icons/style/checkbox-checked.png); 
94
}
95

  
96
QCheckBox
97
{
98
    spacing: 5px;
99
}
100

  
101
QCheckBox::indicator
102
{
103
    width: 13px;
104
    height: 13px;
105
}
106

  
107
QCheckBox::indicator:unchecked
108
{
109
    image: url(:icons/style/checkbox_unchecked.png);
110
}
111

  
112
QCheckBox::indicator:!enabled
113
{
114
    image: url(:icons/style/checkbox_disabled.png);
115
}
116

  
117
QCheckBox::indicator:checked:!enabled
118
{
119
    image: url(:icons/style/checkbox_checked_disabled.png);
120
}
121

  
122
QCheckBox::indicator:unchecked:hover
123
{
124
    image: url(:icons/style/checkbox_unchecked_hover.png);
125
}
126

  
127
QCheckBox::indicator:unchecked:pressed
128
{
129
    image: url(:icons/style/checkbox_unchecked_pressed.png);
130
}
131

  
132
QCheckBox::indicator:checked
133
{
134
    image: url(:icons/style/checkbox_checked.png);
135
}
136

  
137
QCheckBox::indicator:checked:hover
138
{
139
    image: url(:icons/style/checkbox_checked_hover.png);
140
}
141

  
142
QCheckBox::indicator:checked:pressed
143
{
144
    image: url(:icons/style/checkbox_checked_pressed.png);
145
}
146

  
147
QCheckBox::indicator:indeterminate
148
{
149
    image: url(:icons/style/checkbox_indeterminate.png);
150
}
151

  
152
QCheckBox::indicator:indeterminate:hover
153
{
154
    image: url(:icons/style/checkbox_indeterminate_hover.png);
155
}
156

  
157
QCheckBox::indicator:indeterminate:pressed
158
{
159
    image: url(:icons/style/checkbox_indeterminate_pressed.png);
160
}
161

  
162
QRadioButton:enabled QLabel,
163
QRadioButton:enabled
164
{
165
    color: #FFFFFF;
166
}
167

  
168
QRadioButton:!enabled QLabel,
169
QRadioButton:!enabled
170
{
171
    color: #000000;
172
}
173

  
174
QRadioButton::indicator
175
{
176
    width: 13px;
177
    height: 13px;
178
}
179

  
180
QRadioButton::indicator::unchecked:enabled
181
{
182
    image: url(:icons/style/radiobutton_unchecked.png);
183
}
184

  
185
QRadioButton::indicator::unchecked:!enabled
186
{
187
    image: url(:icons/style/radiobutton_unchecked_disabled.png);
188
}
189

  
190
QRadioButton::indicator:unchecked:hover:enabled
191
{
192
    image: url(:icons/style/radiobutton_unchecked_hover.png);
193
}
194

  
195
QRadioButton::indicator:unchecked:hover:!enabled
196
{
197
    image: url(:icons/style/radiobutton_unchecked_hover_disabled.png);
198
}
199

  
200
QRadioButton::indicator:unchecked:pressed:enabled
201
{
202
    image: url(:icons/style/radiobutton_unchecked_pressed.png);
203
}
204

  
205
QRadioButton::indicator:unchecked:pressed:!enabled
206
{
207
    image: url(:icons/style/radiobutton_unchecked_pressed_disabled.png);
208
}
209

  
210
QRadioButton::indicator::checked:enabled
211
{
212
    image: url(:icons/style/radiobutton_checked.png);
213
}
214

  
215
QRadioButton::indicator::checked:!enabled
216
{
217
    image: url(:icons/style/radiobutton_checked_disabled.png);
218
}
219

  
220
QRadioButton::indicator:checked:hover:enabled
221
{
222
    image: url(:icons/style/radiobutton_checked_hover.png);
223
}
224

  
225
QRadioButton::indicator:checked:hover:!enabled
226
{
227
    image: url(:icons/style/radiobutton_checked_hover_disabled.png);
228
}
229

  
230
QRadioButton::indicator:checked:pressed:enabled
231
{
232
    image: url(:icons/style/radiobutton_checked_pressed.png);
233
}
234

  
235
QRadioButton::indicator:checked:pressed:!enabled
236
{
237
    image: url(:icons/style/radiobutton_checked_pressed_disabled.png);
238
}
239

  
240
QMenuBar
241
{
242
    background-color: #404040;
243
}
244

  
245
QMenuBar::item
246
{
247
    spacing: 3px; /* spacing between menu bar items */
248
    padding: 1px 4px;
249
    background: transparent;
250
    color: #FFFFFF;
251
}
252

  
253
QMenuBar::item:selected
254
{
255
    background-color: #80AFFF;
256
    color: #FFFFFF;
257
}
258

  
259
QMenuBar::item:pressed
260
{
261
    background-color: #BBCEFF;
262
}
263

  
264
QMessageBox
265
{
266
    background: #000000;
267
}
268

  
269
QProgressBar
270
{
271
    border: 1px solid #AAAAAA;
272
    border-radius: 3px;
273
    text-align: center;
274
    background: #FFFFFF;
275
}
276

  
277
QProgressBar::chunk
278
{
279
    background-color: #89B8E7;
280
    width: 20px;
281
}
282

  
283
QToolButton
284
{
285
    background-color: transparent;
286
    border: 0px;
287
}
288

  
289
QPushButton,
290
QFileDialog QPushButton,
291
QDialog QPushButton
292
{
293
    border: 2px solid #AAAAAA;
294
    border-radius: 2px;
295
    padding: 0.18em;
296
    padding-left: 0.5em;
297
    padding-right: 0.5em;
298
    margin-top: 0.1em;
299
    margin-bottom: 0.1em;
300
    margin-left: 0.2em;
301
    margin-right: 0.2em;
302
}
303

  
304
QPushButton:disabled,
305
QFileDialog QPushButton:disabled,
306
QDialog QPushButton:disabled
307
{
308
    color: #AAAAAA;
309
}
310

  
311
QPushButton:pressed,
312
QFileDialog QPushButton:pressed,
313
QDialog QPushButton:pressed,
314
QFileDialog QPushButton:on,
315
QDialog QPushButton:on
316
{
317
    background-color: #BBCEFF;
318
}
319

  
320
QPushButton::enabled:hover
321
{
322
    background-color: #666666;
323
}
324

  
325
QPushButton::checked
326
{
327
    background-color: #666666;
328
}
vect.qrc
147 147
    <file>i18n/vect_en_GB.qm</file>
148 148
    <file>i18n/tips_en.xml</file>
149 149
    <file>vect.qss</file>
150
    <file>vect-mac.qss</file>
150 151
    <file>icons/style/arrow-down.png</file>
151 152
    <file>icons/style/arrow-down-small-inverted.png</file>
152 153
    <file>icons/style/arrow-down-small.png</file>
vect.qss
19 19
QWidget
20 20
{
21 21
    background: #333333;
22
    color: #FAFAFA; /* undocumented, but it works, and it's necessary */
22
    color: #FAFAFA;
23 23
}
24 24

  
25 25
QDialog
......
27 27
    background-color: #333333;
28 28
}
29 29

  
30

  
31
/* QToolBar
32

  
33
Supports the box model.  The :top, :left, :right, :bottom pseudo states
34
depending on the area in which the tool bar is grouped.  The :first, :last,
35
:middle, :only-one pseudo states indicator the position of the tool bar within a
36
line group (See QStyleOptionToolBar::positionWithinLine).  The separator of a
37
QToolBar is styled using the ::separator subcontrol.  The handle (to move the
38
toolbar) is styled using the ::handle subcontrol. */
39

  
40
/* Toolbars use gradient backgrounds that must be light enough to allow contrast
41
 * with black icons.  Top/bottom and left/right require different gradients to
42
 * get the proper look.
43
 */
44
QToolBar:top,
45
QToolBar:bottom
30
QToolBar
46 31
{
47 32
    background-color: #333333;
48 33
}
49 34

  
50
QToolBar:left,
51
QToolBar:right 
52
{
53
    background-color: #333333;
54
}
55

  
56
/* Toolbars must be light enough for black icons, therefore black text on their
57
 * QLabels, rather than white, is more appropriate.
58
 */
59
QToolBar:top QLabel,
60
QToolBar:bottom QLabel 
61
{
62
    background-color: transparent;
63
    color: #000000;
64
}
65

  
66 35
QToolBar::handle:top,
67 36
QToolBar::handle:bottom
68 37
{
69 38
    image: url(:icons/style/htoolbar-separator.png);
70 39
}
71 40

  
72
QToolBar::handle:left,
73
QToolBar::handle:right
74
{
75
    image: url(:icons/style/vtoolbar-separator.png);
76
}
77

  
78 41
QFrame#BottomFrame,
79 42
QFrame#BottomFrame > QFrame
80 43
{
81 44
    background-color: #333333;
82 45
}
83 46

  
84
/*  QLabel
85
 
86
Supports the box model. Does not support the :hover pseudo-state.  Since 4.3,
87
setting a stylesheet on a QLabel automatically sets the QFrame::frameStyle
88
property to QFrame::StyledPanel. */
89

  
90 47
QLabel
91 48
{
92 49
    background: transparent;
93 50
    color: white;
94 51
}
95 52

  
96
/*  QMenu
97
  
98
Supports the box model.  Individual items are styled using the ::item
99
subcontrol. In addition to the usually supported pseudo states, item subcontrol
100
supports the :selected, :default, :exclusive and the non-exclusive pseudo
101
states.  The indicator of checkable menu items is styled using the ::indicator
102
subcontrol.  The separator is styled using the ::separator subcontrol.  For
103
items with a sub menu, the arrow marks are styled using the right-arrow and
104
left-arrow.  The scroller is styled using the ::scroller.  The tear-off is
105
styled using the ::tear-off. */
106

  
107 53
QMenu
108 54
{
109 55
    background-color: #EEEEEE;
......
120 66

  
121 67
QMenu::item:enabled
122 68
{
123
    /* sets background of menu item. set this to something non-transparent
124
    if you want menu color and menu item color to be different */
125 69
    background-color: transparent;
126 70
    color: #000000;
127 71
    padding: 2px 25px 2px 20px;
......
137 81
    min-width: 12em; /* leaves room for space between item and hotkey */
138 82
}
139 83

  
140
/* Menu selection background color
141
 */
142 84
QMenu::item:selected
143 85
{
144 86
    background-color: #80AFFF;
145 87
    color: #FFFFFF;
146 88
}
147 89

  
148
/* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */
149
/*
150
QMenu::indicator:non-exclusive:unchecked
151
{
152
    image: url(:icons/style/checkbox_unchecked.png);
153
}
154

  
155
QMenu::indicator:non-exclusive:unchecked:selected
156
{
157
    image: url(:icons/style/checkbox_unchecked_hover.png);
158
}
159

  
160
QMenu::indicator:non-exclusive:checked
161
{
162
    image: url(:icons/style/checkbox_checked.png);
163
}
164

  
165
QMenu::indicator:non-exclusive:checked:selected
166
{
167
    image: url(:icons/style/checkbox_checked_hover.png);
168
}
169
*/
170

  
171
/* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */
172
/*
173
QMenu::indicator:exclusive:unchecked
174
{
175
    image: url(:icons/style/radiobutton_unchecked.png);
176
}
177

  
178
QMenu::indicator:exclusive:unchecked:selected
179
{
180
    image: url(:icons/style/radiobutton_unchecked_hover.png);
181
}
182

  
183
QMenu::indicator:exclusive:checked
184
{
185
    image: url(:icons/style/radiobutton_checked.png);
186
}
187

  
188
QMenu::indicator:exclusive:checked:selected
189
{
190
    image: url(:icons/style/radiobutton_checked_hover.png);
191
}
192
*/
193
/*  QCheckBox
194

  
195
Supports the box model. The check indicator can be styled using the ::indicator
196
subcontrol. By default, the indicator is placed in the Top Left corner of the
197
Contents rectangle of the widget.  The spacing property specifies the spacing
198
between the check indicator and the text. */
199

  
200 90
QCheckBox:enabled QLabel,
201 91
QCheckBox:enabled
202 92
{
......
280 170
    image: url(:icons/style/checkbox_indeterminate_pressed.png);
281 171
}
282 172

  
283
/*  QRadioButton
284

  
285
Supports the box model. The check indicator can be styled using the ::indicator
286
subcontrol. By default, the indicator is placed in the Top Left corner of the
287
Contents rectangle of the widget.  The spacing property specifies the spacing
288
between the check indicator and the text. */
289

  
290 173
QRadioButton:enabled QLabel,
291 174
QRadioButton:enabled
292 175
{
......
365 248
    image: url(:icons/style/radiobutton_checked_pressed_disabled.png);
366 249
}
367 250

  
368
/*  QMenuBar
369
  
370
Supports the box model. The spacing property specifies the spacing between menu
371
items. Individual items are styled using the ::item subcontrol. */
372

  
373 251
QMenuBar
374 252
{
375 253
    background-color: #404040;
......
383 261
    color: #FFFFFF;
384 262
}
385 263

  
386
/* Selected item background
387
 */
388 264
QMenuBar::item:selected
389 265
{
390 266
    background-color: #80AFFF;
......
393 269

  
394 270
QMenuBar::item:pressed
395 271
{
396
/*    background: #EEEEEE;*/
397 272
    background-color: #BBCEFF;
398 273
}
399 274

  
400

  
401
/*  QMessageBox
402
  
403
The messagebox-text-interaction-flags property can be used to alter the
404
interaction with text in the message box. */
405

  
406 275
QMessageBox
407 276
{
408 277
    background: #000000;
409 278
}
410 279

  
411

  
412

  
413
/*  QProgressBar
414
  
415
Supports the box model. The chunks of the progress bar can be styled using the
416
::chunk subcontrol. The chunk is displayed on the Contents rectangle of the
417
widget.  If the progress bar displays text, use the text-align property to
418
position the text.  Indeterminate progress bars have the :indeterminate pseudo
419
state set. */
420

  
421 280
QProgressBar
422 281
{
423 282
    border: 1px solid #AAAAAA;
......
432 291
    width: 20px;
433 292
}
434 293

  
435

  
436
/*  QSizeGrip
437

  
438
Supports the width, height, and image properties. */
439

  
440
QSizeGrip
441
{
442
}
443

  
444

  
445
/*  QSlider
446

  
447
Supports the box model. For horizontal slides, the min-width and height
448
properties must be provided. For vertical sliders, the min-height and width
449
properties must be provided.  The groove of the slider is styled using the
450
::groove. The groove is positioned by default in the Contents rectangle of the
451
widget. The thumb of the slider is styled using ::handle subcontrol. The
452
subcontrol moves in the Contents rectangle of the groove subcontrol. */
453

  
454
QSlider::horizontal
455
{
456
    border: 0px solid transparent;
457
    background: transparent;
458
    min-width: 50px;
459
    min-height: 5px;
460
}
461

  
462
QSlider::handle:horizontal
463
{
464
    background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f);
465
    border: 1px solid #5c5c5c;
466
    width: 8px;
467
    height 8px;
468
    margin: -5px 0;
469
    border-radius: 3px;
470
}
471

  
472
QSlider::groove:horizontal
473
{
474
    background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #E0E0E0, stop:1 #EEEEEE);
475
    height: 5px;
476
    position: absolute;
477
    left: 4px;
478
    right: 4px;
479
}
480

  
481

  
482

  
483
/*  QSplitter
484

  
485
Supports the box model. The handle of the splitter is styled using the ::handle
486
subcontrol. */
487

  
488
/* these are the little vertical grab bars in file dialogs */
489

  
490
QSplitter
491
{
492
    background: #000000;
493
}
494

  
495

  
496
/*  QGroupBox
497

  
498
Supports the box model. The title can be styled using the ::title subcontrol.
499
By default, the title is placed depending on QGroupBox::textAlignment.  In the
500
case of a checkable QGroupBox, the title includes the check indicator. The
501
indicator is styled using the the ::indicator subcontrol. The spacing property
502
can be used to control the spacing between the text and indicator. */
503

  
504
QGroupBox
505
{
506
    background: #404040;
507
    color: #FFFFFF;
508
    border: 2px solid #BBBBBB;
509
    border-radius: 4px;
510
    padding: 2px;
511
    margin-top: 1ex;
512
}
513

  
514

  
515
QGroupBox::title
516
{
517
    color: #FFFFFF;
518
    subcontrol-origin: margin;
519
    subcontrol-position: top center;
520
    padding: 0 5px;
521
}
522

  
523
QGroupBox::title:!enabled
524
{
525
    color: #000000;
526
}
527

  
528
QGroupBox QWidget
529
{
530
    background: #404040;
531
}
532

  
533

  
534
/*  QToolButton
535
  
536
Supports the box model.  If the QToolButton has a menu, is ::menu-indicator
537
subcontrol can be used to style the indicator. By default, the menu-indicator is
538
positioned at the bottom right of the Padding rectangle of the widget.  If the
539
QToolButton is in QToolButton::MenuButtonPopup mode, the ::menu-button
540
subcontrol is used to draw the menu button. ::menu-arrow subcontrol is used to
541
draw the menu arrow inside the menu-button. By default, it is positioned in the
542
center of the Contents rectangle of the the menu-button subcontrol.  When the
543
QToolButton displays arrows, the ::up-arrow, ::down-arrow, ::left-arrow and
544
::right-arrow subcontrols are used.  Warning: If you only set a background-color
545
on a QToolButton, the background will not appear unless you set the border
546
property to some value. This is because, by default, the QToolButton draws a
547
native border which completely overlaps the background-color. For example,
548
QToolButton { background-color: red; border: none; } */
549

  
550
/* We use tool buttons for the TPB collapsing frame texts, eg. "Playback
551
 * parameters" and for toolbar buttons
552
 */
553

  
554 294
QToolButton[popupMode="1"]
555 295
{    /* only for MenuButtonPopup */
556 296
     padding-right: 5px; /* make way for the popup button */
......
620 360
    background: transparent;
621 361
}
622 362

  
623
/*  QLineEdit
624

  
625
Supports the box model.  The color and background of the selected item is styled
626
using selection-color and selection-background-color respectively.  The password
627
character can be styled using the lineedit-password-character property. */
628

  
629
/* thanks be to Gaia this override actually works, for once!, and I dodged a
630
 * very nasty bullet here:
631
 */
632
QLineEdit, QFileDialog QLineEdit, QDialog QLineEdit
633
{
634
    border: 1px solid #AAAAAA;
635
    background-color: #FFFFFF;
636
    selection-background-color: #80AFFF;
637
    color: #000000;
638
    selection-color: #FFFFFF;
639
}
640

  
641

  
642
/*  QSpinBox
643
  
644
The frame of the spin box can be styled using the box model.  The up button and
645
arrow can be styled using the ::up-button and ::up-arrow subcontrols. By
646
default, the up-button is placed in the top right corner in the Padding
647
rectangle of the widget. Without an explicit size, it occupies half the height
648
of its reference rectangle. The up-arrow is placed in the center of the Contents
649
rectangle of the up-button.  The down button and arrow can be styled using the
650
::down-button and ::down-arrow subcontrols. By default, the down-button is
651
placed in the bottom right corner in the Padding rectangle of the widget.
652
Without an explicit size, it occupies half the height of its reference
653
rectangle. The bottom-arrow is placed in the center of the Contents rectangle of
654
the bottom-button. */
655

  
656
QSpinBox,
657
QDoubleSpinBox
658
{
659
    padding-right: 15px; /* make room for the arrows */
660
    /* we will use the stock demo frame image after all, since it was suitable,
661
     * and actually fixes background problems that would otherwise be annoying
662
     * to solve*/
663
    border-image: url(:icons/style/frame.png) 4;
664
    border-width: 3;
665
    color: #000000;
666
    selection-color: #FFFFFF;
667
    selection-background-color: #80AFFF;
668
}
669

  
670
QSpinBox::up-button,
671
QDoubleSpinBox::up-button
672
{
673
    subcontrol-origin: border;
674
    subcontrol-position: top right; /* position at the top right corner */
675

  
676
    width: 16px; /* 16 + 2*1px border-width = 15px padding + 3px parent border */
677
    border-image: url(:icons/style/spinup.png) 1;
678
    border-width: 1px;
679
}
680

  
681
QSpinBox::up-button:hover,
682
QDoubleSpinBox::up-button:hover
683
{
684
    border-image: url(:icons/style/spinup_hover.png) 1;
685
}
686

  
687
QSpinBox::up-button:pressed,
688
QDoubleSpinBox::up-button:pressed
689
{
690
    border-image: url(:icons/style/spinup_pressed.png) 1;
691
}
692

  
693
QSpinBox::up-arrow,
694
QDoubleSpinBox::up-arrow
695
{
696
    image: url(:icons/style/arrow-up-small.png);
697
    width: 7px;
698
    height: 7px;
699
}
700

  
701
QSpinBox::up-arrow:disabled,
702
QSpinBox::up-arrow:off,
703
QDoubleSpinBox::up-arrow:disabled,
704
QDoubleSpinBox::up-arrow:off
705
{  /* off state when value is max */
706
   image: url(:icons/style/arrow-up-small-inverted.png);
707
}
708

  
709
QSpinBox::down-button,
710
QDoubleSpinBox::down-button
711
{
712
    subcontrol-origin: border;
713
    subcontrol-position: bottom right; /* position at bottom right corner */
714

  
715
    width: 16px;
716
    border-image: url(:icons/style/spindown.png) 1;
717
    border-width: 1px;
718
    border-top-width: 0;
719
}
720

  
721
QSpinBox::down-button:hover,
722
QDoubleSpinBox::down-button:hover
723
{
724
    border-image: url(:icons/style/spindown_hover.png) 1;
725
}
726

  
727
QSpinBox::down-button:pressed,
728
QDoubleSpinBox::down-button:pressed
729
{
730
    border-image: url(:icons/style/spindown_pressed.png) 1;
731
}
732

  
733
QSpinBox::down-arrow,
734
QDoubleSpinBox::down-arrow
735
{
736
    image: url(:icons/style/arrow-down-small.png);
737
    width: 7px;
738
    height: 7px;
739
}
740

  
741
QSpinBox::down-arrow:disabled,
742
QSpinBox::down-arrow:off,
743
QDoubleSpinBox::down-arrow:disabled,
744
QDoubleSpinBox::down-arrow:off
745
{  /* off state when value in min */
746
   image: url(:icons/style/arrow-down-small-inverted.png);
747
}
748

  
749
/* QComboBox
750
The frame around the combobox can be styled using the box model. The drop-down button can be styled using the ::drop-down subcontrol. By default, the drop-down button is placed in the top right corner of the padding rectangle of the widget. The arrow mark inside the drop-down button can be styled using the ::down-arrow subcontrol. By default, the arrow is placed in the center of the contents rectangle of the drop-down subcontrol.
751

  
752
The pop-up of the QComboBox is a QAbstractItemView and is styled using the descendant selector.
753
*/
754

  
755 363
QComboBox {
756 364
    border: 1px solid #AAAAAA;
757 365
    border-radius: 3px;
......
799 407
    min-width: 12em; /* leaves room for space between item and hotkey */
800 408
}
801 409

  
802
/* Menu selection background color
803
 */
804 410
QComboBox QAbstractItemView::item:selected
805 411
{
806 412
    background-color: #80AFFF;
807 413
    color: #FFFFFF;
808 414
}
809 415

  
810

  
811
/* Hrm.  Has no effect at all.  Probably not worth much more bother, since Qt
812
 * automatically inverts the stock arrow pixmaps, and they're sort of legible,
813
 * but it might ultimately be worth subclassing QPlastiqueStyle in order to
814
 * specify different pixmaps, since this bit here doesn't seem to work.
815
 */
816 416
QFileDialog
817 417
{
818 418
    leftarrow-icon: url(:icons/style/arrow-left-inverted.png);

Also available in: Unified diff