1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
5QLineEdit { background: yellow }
6QCheckBox { color: red }
11QPushButton { color: red }
16QPushButton, QLineEdit, QComboBox { color: red }
21QPushButton { color: red }
22QLineEdit { color: red }
23QComboBox { color: red }
28QPushButton { color: red; background-color: white }
33QComboBox::drop-down { image: url(dropdown.png) }
42 subcontrol-origin: margin;
48QComboBox::down-arrow {
49 image: url(down_arrow.png);
51QComboBox::down-arrow:pressed {
59QPushButton:hover { color: white }
64QRadioButton:!hover { color: red }
69QCheckBox:hover:checked { color: white }
74QPushButton:hover:!pressed { color: blue; }
79QCheckBox:hover, QCheckBox:checked { color: white }
84QComboBox::drop-down:hover { image: url(dropdown_bright.png) }
89QPushButton#okButton { color: gray }
90QPushButton { color: red }
95QPushButton:hover { color: white }
96QPushButton { color: red }
101QPushButton:hover { color: white }
102QPushButton:enabled { color: red }
107QPushButton:enabled { color: red }
108QPushButton:hover { color: white }
113QPushButton:hover:enabled { color: white }
114QPushButton:enabled { color: red }
119QPushButton { color: red }
120QAbstractButton { color: gray }
125* {} /* a=0 b=0 c=0 -> specificity = 0 */
126LI {} /* a=0 b=0 c=1 -> specificity = 1 */
127UL LI {} /* a=0 b=0 c=2 -> specificity = 2 */
128UL OL+LI {} /* a=0 b=0 c=3 -> specificity = 3 */
129H1 + *[REL=up]{} /* a=0 b=1 c=1 -> specificity = 11 */
130UL OL LI.red {} /* a=0 b=1 c=3 -> specificity = 13 */
131LI.red.level {} /* a=0 b=2 c=1 -> specificity = 21 */
132#x34y {} /* a=1 b=0 c=0 -> specificity = 100 */
137MyLabel { qproperty-pixmap: url(pixmap.png); }
138MyGroupBox { qproperty-titleColor: rgb(100, 200, 100); }
139QPushButton { qproperty-iconSize: 20px 20px; }
144QPushButton { background-color: red; border: none; }
149QToolButton { background-color: red; border: none; }
155 alternate-background-color: blue;
162QTextEdit { background: yellow }
168 background-image: url(dense6pattern.png);
169 background-repeat: repeat-xy;
175QLabel { background-color: yellow }
176QLineEdit { background-color: rgb(255, 0, 0) }
181QFrame { background-image: url(:/images/hydro.png) }
187 background: white url(:/images/ring.png);
188 background-repeat: repeat-y;
189 background-position: left;
196 background: url(:/images/footer.png);
197 background-position: bottom left;
204 background-image: url("leaves.png");
205 background-attachment: fixed;
212 background-image: url(:/images/header.png);
213 background-position: top left;
214 background-origin: content;
215 background-clip: padding;
222 background-image: url(:/images/header.png);
223 background-position: top left;
224 background-origin: content;
230QLineEdit { border: 1px solid white }
265 border-color: darkblue;
271QSpinBox::down-button { bottom: 2px }
276* { button-layout: 2 }
281QPushButton { color: red }
286QDialogButtonBox { dialogbuttonbox-buttons-have-icons: 1; }
291* { etch-disabled-text: 1 }
296QCheckBox { font: bold italic large "Times New Roman" }
301QCheckBox { font-family: "New Century Schoolbook" }
306QTextEdit { font-size: 12px }
311QTextEdit { font-style: italic }
316* { gridline-color: gray }
321QSpinBox::down-button { height: 10px }
326// implicitly sets the size of down-button to the
327// size of spindown.png
328QSpinBox::down-button { image: url(:/images/spindown.png) }
333QSpinBox::down-button { left: 2px }
338* { lineedit-password-character: 9679 }
343QLineEdit { margin: 2px }
348QSpinBox { max-height: 24px }
353QComboBox { max-width: 72px }
358QMessageBox { messagebox-text-interaction-flags: 5 }
363QComboBox { min-height: 24px }
368QComboBox { min-width: 72px }
373QToolTip { opacity: 223 }
378QLineEdit { padding: 3px }
383QSpinBox::down-button { right: 2px }
388QTextEdit { selection-background-color: darkblue }
393QTextEdit { selection-color: white }
398* { show-decoration-selected: 1 }
403QMenuBar { spacing: 10 }
409 image: url(:/images/spinup.png);
410 subcontrol-origin: content;
411 subcontrol-position: right top;
417QSpinBox::down-button {
418 image: url(:/images/spindown.png);
419 subcontrol-origin: padding;
420 subcontrol-position: right bottom;
433QSpinBox::up-button { top: 2px }
438QSpinBox::up-button { width: 12px }
443QTextEdit { background-position: bottom center }
448QDialog { etch-disabled-text: 1 }
453QLabel { border-color: red } /* red red red red */
454QLabel { border-color: red blue } /* red blue red blue */
455QLabel { border-color: red blue green } /* red blue green blue */
456QLabel { border-color: red blue green yellow }
457/* red blue green yellow */
462QLabel { border-width: 1px } /* 1px 1px 1px 1px */
463QLabel { border-width: 1px 2px } /* 1px 2px 1px 2px */
464QLabel { border-width: 1px 2px 3px } /* 1px 2px 3px 2px */
465QLabel { border-width: 1px 2px 3px 4px } /* 1px 2px 3px 4px */
470QLabel { border-color: red } /* opaque red */
471QLabel { border-color: #FF0000 } /* opaque red */
472QLabel { border-color: rgba(255, 0, 0, 75%) } /* 75% opaque red */
473QLabel { border-color: rgb(255, 0, 0) } /* opaque red */
474QLabel { border-color: rgb(100%, 0%, 0%) } /* opaque red */
475QLabel { border-color: hsv(60, 100%, 100%) } /* opaque yellow */
476QLabel { border-color: hsva(240, 255, 255, 75%) } /* 75% blue */
477QLabel { border-color: hsl(60, 100%, 50%) } /* opaque yellow */
478QLabel { border-color: hsla(240, 255, 50%, 75%) } /* 75% blue */
483/* linear gradient from white to green */
485 background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
486 stop:0 white, stop: 0.4 gray, stop:1 green)
489/* linear gradient from white to green */
491 background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
492 stop:0 white, stop: 0.4 rgba(10, 20, 30, 40),
493 stop:1 rgb(0, 200, 230, 200))
497/* conical gradient from white to green */
499 background: qconicalgradient(cx:0.5, cy:0.5, angle:30,
500 stop:0 white, stop:1 #00FF00)
503/* radial gradient from white to green */
505 background: qradialgradient(cx:0, cy:0, radius: 1,
506 fx:0.5, fy:0.5, stop:0 white, stop:1 green)
513 file-icon: url(file.png),
514 url(file_selected.png) selected;
518 dialogbuttonbox-buttons-have-icons: true;
519 dialog-ok-icon: url(ok.svg);
520 dialog-cancel-icon: url(cancel.png),
521 url(grayed_cancel.png) disabled;
527QPushButton { color: palette(dark); }
532*[mandatoryField="true"] { background-color: yellow }
537QPushButton#evilButton { background-color: red }
542QPushButton#evilButton {
543 background-color: red;
544 border-style: outset;
552QPushButton#evilButton {
553 background-color: red;
554 border-style: outset;
566QPushButton#evilButton {
567 background-color: red;
568 border-style: outset;
576QPushButton#evilButton:pressed {
577 background-color: rgb(224, 0, 0);
584QPushButton#evilButton::menu-indicator {
585 image: url(myindicator.png);
591QPushButton::menu-indicator {
592 image: url(myindicator.png);
593 subcontrol-position: right center;
594 subcontrol-origin: padding;
601QLineEdit { color: red }
606QLineEdit { color: red }
607QLineEdit[readOnly="true"] { color: gray }
612QLineEdit { color: red }
613QLineEdit[readOnly="true"] { color: gray }
614#registrationDialog QLineEdit { color: brown }
619QLineEdit { color: red }
620QLineEdit[readOnly="true"] { color: gray }
621QDialog QLineEdit { color: brown }
626QTextEdit, QListView {
627 background-color: white;
628 background-image: url(draft.png);
629 background-attachment: scroll;
635QTextEdit, QListView {
636 background-color: white;
637 background-image: url(draft.png);
638 background-attachment: fixed;
648QCheckBox::indicator {
653QCheckBox::indicator:unchecked {
654 image: url(:/images/checkbox_unchecked.png);
657QCheckBox::indicator:unchecked:hover {
658 image: url(:/images/checkbox_unchecked_hover.png);
661QCheckBox::indicator:unchecked:pressed {
662 image: url(:/images/checkbox_unchecked_pressed.png);
665QCheckBox::indicator:checked {
666 image: url(:/images/checkbox_checked.png);
669QCheckBox::indicator:checked:hover {
670 image: url(:/images/checkbox_checked_hover.png);
673QCheckBox::indicator:checked:pressed {
674 image: url(:/images/checkbox_checked_pressed.png);
677QCheckBox::indicator:indeterminate:hover {
678 image: url(:/images/checkbox_indeterminate_hover.png);
681QCheckBox::indicator:indeterminate:pressed {
682 image: url(:/images/checkbox_indeterminate_pressed.png);
689 border: 1px solid gray;
691 padding: 1px 18px 1px 3px;
699QComboBox:!editable, QComboBox::drop-down:editable {
700 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
701 stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
702 stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
705/* QComboBox gets the "on" state when the popup is open */
706QComboBox:!editable:on, QComboBox::drop-down:editable:on {
707 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
708 stop: 0 #D3D3D3, stop: 0.4 #D8D8D8,
709 stop: 0.5 #DDDDDD, stop: 1.0 #E1E1E1);
712QComboBox:on { /* shift the text when the popup opens */
717QComboBox::drop-down {
718 subcontrol-origin: padding;
719 subcontrol-position: top right;
722 border-left-width: 1px;
723 border-left-color: darkgray;
724 border-left-style: solid; /* just a single line */
725 border-top-right-radius: 3px; /* same radius as the QComboBox */
726 border-bottom-right-radius: 3px;
729QComboBox::down-arrow {
730 image: url(/usr/share/icons/crystalsvg/16x16/actions/1downarrow.png);
733QComboBox::down-arrow:on { /* shift the arrow when popup is open */
741QComboBox QAbstractItemView {
742 border: 2px solid darkgray;
743 selection-background-color: lightgray;
750 border: 1px solid lightgray;
751 titlebar-close-icon: url(close.png);
752 titlebar-normal-icon: url(undock.png);
756 text-align: left; /* align the text to the left */
757 background: lightgray;
761QDockWidget::close-button, QDockWidget::float-button {
762 border: 1px solid transparent;
763 background: darkgray;
767QDockWidget::close-button:hover, QDockWidget::float-button:hover {
771QDockWidget::close-button:pressed, QDockWidget::float-button:pressed {
772 padding: 1px -1px -1px 1px;
779 border: 1px solid lightgray;
780 titlebar-close-icon: url(close.png);
781 titlebar-normal-icon: url(float.png);
786 background: lightgray;
790QDockWidget::close-button, QDockWidget::float-button {
791 background: darkgray;
793 icon-size: 14px; /* maximum icon size */
796QDockWidget::close-button:hover, QDockWidget::float-button:hover {
800QDockWidget::close-button:pressed, QDockWidget::float-button:pressed {
801 padding: 1px -1px -1px 1px;
804QDockWidget::close-button {
805 subcontrol-position: top left;
806 subcontrol-origin: margin;
808 top: 0px; left: 0px; bottom: 0px;
812QDockWidget::float-button {
813 subcontrol-position: top left;
814 subcontrol-origin: margin;
816 top: 0px; left: 16px; bottom: 0px;
823QFrame, QLabel, QToolTip {
824 border: 2px solid green;
827 background-image: url(images/welcome.png);
834 background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
835 stop: 0 #E0E0E0, stop: 1 #FFFFFF);
836 border: 2px solid gray;
838 margin-top: 1ex; /* leave space at the top for the title */
842 subcontrol-origin: margin;
843 subcontrol-position: top center; /* position at the top center */
845 background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
846 stop: 0 #FF0ECE, stop: 1 #FFFFFF);
852QGroupBox::indicator {
857QGroupBox::indicator:unchecked {
858 image: url(:/images/checkbox_unchecked.png);
861/* proceed with styling just like QCheckBox */
866QHeaderView::section {
867 background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
868 stop:0 #616161, stop: 0.5 #505050,
869 stop: 0.6 #434343, stop:1 #656565);
872 border: 1px solid #6c6c6c;
875QHeaderView::section:checked
877 background-color: red;
880/* style the sort indicator */
881QHeaderView::down-arrow {
882 image: url(down_arrow.png);
885QHeaderView::up-arrow {
886 image: url(up_arrow.png);
893 border: 2px solid gray;
897 selection-background-color: darkgray;
903QLineEdit[echoMode="2"] {
904 lineedit-password-character: 9679;
911 background: lightblue;
918 alternate-background-color: yellow;
925 show-decoration-selected: 1; /* make the selection span the entire width of the view */
928QListView::item:alternate {
932QListView::item:selected {
933 border: 1px solid #6a6ea9;
936QListView::item:selected:!active {
937 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
938 stop: 0 #ABAFE5, stop: 1 #8588B2);
941QListView::item:selected:active {
942 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
943 stop: 0 #6a6ea9, stop: 1 #888dd9);
946QListView::item:hover {
947 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
948 stop: 0 #FAFBFE, stop: 1 #DCDEF1);
954QMainWindow::separator {
956 width: 10px; /* when vertical */
957 height: 10px; /* when horizontal */
960QMainWindow::separator:hover {
968 background-color: #ABABAB; /* sets background of the menu */
969 border: 1px solid black;
973 /* sets background of menu item. set this to something non-transparent
974 if you want menu color and menu item color to be different */
975 background-color: transparent;
978QMenu::item:selected { /* when user selects item using mouse or keyboard */
979 background-color: #654321;
986 background-color: white;
987 margin: 2px; /* some spacing around the menu */
991 padding: 2px 25px 2px 20px;
992 border: 1px solid transparent; /* reserve space for selection border */
995QMenu::item:selected {
996 border-color: darkblue;
997 background: rgba(100, 100, 100, 150);
1000QMenu::icon:checked { /* appearance of a 'checked' icon */
1002 border: 1px inset gray;
1012 background: lightblue;
1022/* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */
1023QMenu::indicator:non-exclusive:unchecked {
1024 image: url(:/images/checkbox_unchecked.png);
1027QMenu::indicator:non-exclusive:unchecked:selected {
1028 image: url(:/images/checkbox_unchecked_hover.png);
1031QMenu::indicator:non-exclusive:checked {
1032 image: url(:/images/checkbox_checked.png);
1035QMenu::indicator:non-exclusive:checked:selected {
1036 image: url(:/images/checkbox_checked_hover.png);
1039/* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */
1040QMenu::indicator:exclusive:unchecked {
1041 image: url(:/images/radiobutton_unchecked.png);
1044QMenu::indicator:exclusive:unchecked:selected {
1045 image: url(:/images/radiobutton_unchecked_hover.png);
1048QMenu::indicator:exclusive:checked {
1049 image: url(:/images/radiobutton_checked.png);
1052QMenu::indicator:exclusive:checked:selected {
1053 image: url(:/images/radiobutton_checked_hover.png);
1061 background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
1062 stop:0 lightgray, stop:1 darkgray);
1063 spacing: 3px; /* spacing between menu bar items */
1068 background: transparent;
1072QMenuBar::item:selected { /* when selected using mouse or keyboard */
1073 background: #a8a8a8;
1076QMenuBar::item:pressed {
1077 background: #888888;
1084 border: 2px solid grey;
1088QProgressBar::chunk {
1089 background-color: #05B8CC;
1097 border: 2px solid grey;
1105QProgressBar::chunk {
1106 background-color: #CD96CD;
1115 border: 2px solid #8f8f91;
1117 background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1118 stop: 0 #f6f7fa, stop: 1 #dadbde);
1122QPushButton:pressed {
1123 background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1124 stop: 0 #dadbde, stop: 1 #f6f7fa);
1128 border: none; /* no border for a flat push button */
1131QPushButton:default {
1132 border-color: navy; /* make the default button prominent */
1138QPushButton:open { /* when the button has its menu open */
1139 background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1140 stop: 0 #dadbde, stop: 1 #f6f7fa);
1143QPushButton::menu-indicator {
1144 image: url(menu_indicator.png);
1145 subcontrol-origin: padding;
1146 subcontrol-position: bottom right;
1149QPushButton::menu-indicator:pressed, QPushButton::menu-indicator:open {
1151 top: 2px; left: 2px; /* shift the arrow by 2 px */
1157QRadioButton::indicator {
1162QRadioButton::indicator::unchecked {
1163 image: url(:/images/radiobutton_unchecked.png);
1166QRadioButton::indicator:unchecked:hover {
1167 image: url(:/images/radiobutton_unchecked_hover.png);
1170QRadioButton::indicator:unchecked:pressed {
1171 image: url(:/images/radiobutton_unchecked_pressed.png);
1174QRadioButton::indicator::checked {
1175 image: url(:/images/radiobutton_checked.png);
1178QRadioButton::indicator:checked:hover {
1179 image: url(:/images/radiobutton_checked_hover.png);
1182QRadioButton::indicator:checked:pressed {
1183 image: url(:/images/radiobutton_checked_pressed.png);
1189QScrollBar:horizontal {
1190 border: 2px solid grey;
1191 background: #32CC99;
1193 margin: 0px 20px 0 20px;
1199QScrollBar::handle:horizontal {
1207QScrollBar::add-line:horizontal {
1208 border: 2px solid grey;
1209 background: #32CC99;
1211 subcontrol-position: right;
1212 subcontrol-origin: margin;
1215QScrollBar::sub-line:horizontal {
1216 border: 2px solid grey;
1217 background: #32CC99;
1219 subcontrol-position: left;
1220 subcontrol-origin: margin;
1226QScrollBar:left-arrow:horizontal, QScrollBar::right-arrow:horizontal {
1227 border: 2px solid grey;
1233QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
1240QScrollBar:horizontal {
1241 border: 2px solid green;
1244 margin: 0px 40px 0 0px;
1247QScrollBar::handle:horizontal {
1252QScrollBar::add-line:horizontal {
1255 subcontrol-position: right;
1256 subcontrol-origin: margin;
1257 border: 2px solid black;
1260QScrollBar::sub-line:horizontal {
1261 background: magenta;
1263 subcontrol-position: top right;
1264 subcontrol-origin: margin;
1265 border: 2px solid black;
1270QScrollBar:left-arrow:horizontal, QScrollBar::right-arrow:horizontal {
1276QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
1284 QScrollBar:vertical {
1285 border: 2px solid grey;
1286 background: #32CC99;
1288 margin: 22px 0 22px 0;
1290 QScrollBar::handle:vertical {
1294 QScrollBar::add-line:vertical {
1295 border: 2px solid grey;
1296 background: #32CC99;
1298 subcontrol-position: bottom;
1299 subcontrol-origin: margin;
1302 QScrollBar::sub-line:vertical {
1303 border: 2px solid grey;
1304 background: #32CC99;
1306 subcontrol-position: top;
1307 subcontrol-origin: margin;
1309 QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
1310 border: 2px solid grey;
1316 QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
1324 image: url(:/images/sizegrip.png);
1332QSlider::groove:horizontal {
1333 border: 1px solid #999999;
1334 height: 8px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
1335 background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #B1B1B1, stop:1 #c4c4c4);
1339QSlider::handle:horizontal {
1340 background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f);
1341 border: 1px solid #5c5c5c;
1343 margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
1350QSlider::groove:vertical {
1352 position: absolute; /* absolutely position 4px from the left and right of the widget. setting margins on the widget should work too... */
1353 left: 4px; right: 4px;
1356QSlider::handle:vertical {
1359 margin: 0 -4px; /* expand outside the groove */
1362QSlider::add-page:vertical {
1366QSlider::sub-page:vertical {
1374 padding-right: 15px; /* make room for the arrows */
1375 border-image: url(:/images/frame.png) 4;
1379QSpinBox::up-button {
1380 subcontrol-origin: border;
1381 subcontrol-position: top right; /* position at the top right corner */
1383 width: 16px; /* 16 + 2*1px border-width = 15px padding + 3px parent border */
1384 border-image: url(:/images/spinup.png) 1;
1388QSpinBox::up-button:hover {
1389 border-image: url(:/images/spinup_hover.png) 1;
1392QSpinBox::up-button:pressed {
1393 border-image: url(:/images/spinup_pressed.png) 1;
1397 image: url(:/images/up_arrow.png);
1402QSpinBox::up-arrow:disabled, QSpinBox::up-arrow:off { /* off state when value is max */
1403 image: url(:/images/up_arrow_disabled.png);
1406QSpinBox::down-button {
1407 subcontrol-origin: border;
1408 subcontrol-position: bottom right; /* position at bottom right corner */
1411 border-image: url(:/images/spindown.png) 1;
1413 border-top-width: 0;
1416QSpinBox::down-button:hover {
1417 border-image: url(:/images/spindown_hover.png) 1;
1420QSpinBox::down-button:pressed {
1421 border-image: url(:/images/spindown_pressed.png) 1;
1424QSpinBox::down-arrow {
1425 image: url(:/images/down_arrow.png);
1430QSpinBox::down-arrow:disabled,
1431QSpinBox::down-arrow:off { /* off state when value in min */
1432 image: url(:/images/down_arrow_disabled.png);
1440 image: url(images/splitter.png);
1443QSplitter::handle:horizontal {
1447QSplitter::handle:vertical {
1451QSplitter::handle:pressed {
1452 url(images/splitter_pressed.png);
1464 border: 1px solid red;
1472 border: 3px solid white;
1478QTabWidget::pane { /* The tab widget frame */
1479 border-top: 2px solid #C2C7CB;
1482QTabWidget::tab-bar {
1483 left: 5px; /* move to the right by 5px */
1486/* Style the tab using the tab sub-control. Note that
1487 it reads QTabBar _not_ QTabWidget */
1489 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1490 stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
1491 stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
1492 border: 2px solid #C4C4C3;
1493 border-bottom-color: #C2C7CB; /* same as the pane color */
1494 border-top-left-radius: 4px;
1495 border-top-right-radius: 4px;
1500QTabBar::tab:selected, QTabBar::tab:hover {
1501 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1502 stop: 0 #fafafa, stop: 0.4 #f4f4f4,
1503 stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
1506QTabBar::tab:selected {
1507 border-color: #9B9B9B;
1508 border-bottom-color: #C2C7CB; /* same as pane color */
1511QTabBar::tab:!selected {
1512 margin-top: 2px; /* make non-selected tabs look smaller */
1518QTabWidget::pane { /* The tab widget frame */
1519 border-top: 2px solid #C2C7CB;
1522QTabWidget::tab-bar {
1523 left: 5px; /* move to the right by 5px */
1526/* Style the tab using the tab sub-control. Note that
1527 it reads QTabBar _not_ QTabWidget */
1529 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1530 stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
1531 stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
1532 border: 2px solid #C4C4C3;
1533 border-bottom-color: #C2C7CB; /* same as the pane color */
1534 border-top-left-radius: 4px;
1535 border-top-right-radius: 4px;
1540QTabBar::tab:selected, QTabBar::tab:hover {
1541 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1542 stop: 0 #fafafa, stop: 0.4 #f4f4f4,
1543 stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
1546QTabBar::tab:selected {
1547 border-color: #9B9B9B;
1548 border-bottom-color: #C2C7CB; /* same as pane color */
1551QTabBar::tab:!selected {
1552 margin-top: 2px; /* make non-selected tabs look smaller */
1555/* make use of negative margins for overlapping tabs */
1556QTabBar::tab:selected {
1557 /* expand/overlap to the left and right by 4px */
1562QTabBar::tab:first:selected {
1563 margin-left: 0; /* the first selected tab has nothing to overlap with on the left */
1566QTabBar::tab:last:selected {
1567 margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
1570QTabBar::tab:only-one {
1571 margin: 0; /* if there is only one tab, we don't want overlapping margins */
1577QTabWidget::pane { /* The tab widget frame */
1578 border-top: 2px solid #C2C7CB;
1583QTabWidget::tab-bar {
1587/* Style the tab using the tab sub-control. Note that
1588 it reads QTabBar _not_ QTabWidget */
1590 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1591 stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
1592 stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
1593 border: 2px solid #C4C4C3;
1594 border-bottom-color: #C2C7CB; /* same as the pane color */
1595 border-top-left-radius: 4px;
1596 border-top-right-radius: 4px;
1601QTabBar::tab:selected, QTabBar::tab:hover {
1602 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1603 stop: 0 #fafafa, stop: 0.4 #f4f4f4,
1604 stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
1607QTabBar::tab:selected {
1608 border-color: #9B9B9B;
1609 border-bottom-color: #C2C7CB; /* same as pane color */
1616 image: url(tear_indicator.png);
1619QTabBar::scroller { /* the width of the scroll buttons */
1623QTabBar QToolButton { /* the scroll buttons are tool buttons */
1624 border-image: url(scrollbutton.png) 2;
1628QTabBar QToolButton::right-arrow { /* the arrow mark in the tool buttons */
1629 image: url(rightarrow.png);
1632QTabBar QToolButton::left-arrow {
1633 image: url(leftarrow.png);
1640 selection-background-color: qlineargradient(x1: 0, y1: 0, x2: 0.5, y2: 0.5,
1641 stop: 0 #FF92BB, stop: 1 white);
1647QTableView QTableCornerButton::section {
1649 border: 2px outset red;
1657 spacing: 3px; /* spacing between items in the tool bar */
1661 image: url(handle.png);
1668 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1669 stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
1670 stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
1675QToolBox::tab:selected { /* italicize selected tabs */
1683QToolButton { /* all types of tool button */
1684 border: 2px solid #8f8f91;
1686 background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1687 stop: 0 #f6f7fa, stop: 1 #dadbde);
1690QToolButton[popupMode="1"] { /* only for MenuButtonPopup */
1691 padding-right: 20px; /* make way for the popup button */
1694QToolButton:pressed {
1695 background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1696 stop: 0 #dadbde, stop: 1 #f6f7fa);
1699/* the subcontrols below are used only in the MenuButtonPopup mode */
1700QToolButton::menu-button {
1701 border: 2px solid gray;
1702 border-top-right-radius: 6px;
1703 border-bottom-right-radius: 6px;
1704 /* 16px width + 4px for border = 20px allocated above */
1708QToolButton::menu-arrow {
1709 image: url(downarrow.png);
1712QToolButton::menu-arrow:open {
1713 top: 1px; left: 1px; /* shift it a bit */
1720 border: 2px solid darkkhaki;
1730 alternate-background-color: yellow;
1737 show-decoration-selected: 1;
1741 border: 1px solid #d9d9d9;
1742 border-top-color: transparent;
1743 border-bottom-color: transparent;
1746QTreeView::item:hover {
1747 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);
1748 border: 1px solid #bfcde4;
1751QTreeView::item:selected {
1752 border: 1px solid #567dbc;
1755QTreeView::item:selected:active{
1756 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc);
1759QTreeView::item:selected:!active {
1760 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6b9be8, stop: 1 #577fbf);
1767 background: palette(base);
1770QTreeView::branch:has-siblings:!adjoins-item {
1774QTreeView::branch:has-siblings:adjoins-item {
1778QTreeView::branch:!has-children:!has-siblings:adjoins-item {
1782QTreeView::branch:closed:has-children:has-siblings {
1786QTreeView::branch:has-children:!has-siblings:closed {
1790QTreeView::branch:open:has-children:has-siblings {
1791 background: magenta;
1794QTreeView::branch:open:has-children:!has-siblings {
1802QTreeView::branch:has-siblings:!adjoins-item {
1803 border-image: url(vline.png) 0;
1806QTreeView::branch:has-siblings:adjoins-item {
1807 border-image: url(branch-more.png) 0;
1810QTreeView::branch:!has-children:!has-siblings:adjoins-item {
1811 border-image: url(branch-end.png) 0;
1814QTreeView::branch:has-children:!has-siblings:closed,
1815QTreeView::branch:closed:has-children:has-siblings {
1817 image: url(branch-closed.png);
1820QTreeView::branch:open:has-children:!has-siblings,
1821QTreeView::branch:open:has-children:has-siblings {
1823 image: url(branch-open.png);
1828QTabBar::close-button {
1829 image: url(close.png)
1830 subcontrol-position: left;
1832QTabBar::close-button:hover {
1833 image: url(close-hover.png)
1839* { lineedit-password-mask-delay: 1000 }
1843QTableView::indicator:unchecked {
1844 background-color: #d7d6d5
1849* { widget-animation-duration: 100 }
1853QLineEdit { placeholder-text-color: #800000ff } /* semi-transparent blue */