Created
July 15, 2021 09:50
-
-
Save X-m7/c380614236353e62e0ccf5cf9464bb38 to your computer and use it in GitHub Desktop.
https://github.com/Alexhuszagh/BreezeStyleSheets/blob/master/dark.qss modified to require no assets (for easy use in qt6ct as a dark theme for Qt6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* BreezeDark stylesheet. | |
* | |
* :author: Colin Duquesnoy | |
* :editor: Alex Huszagh | |
* :license: MIT, see LICENSE.md | |
* | |
* This is originally a fork of QDarkStyleSheet, and is based on Breeze/ | |
* BreezeDark color scheme, but is in no way affiliated with KDE. | |
* | |
* --------------------------------------------------------------------- | |
* The MIT License (MIT) | |
* | |
* Copyright (c) <2013-2014> <Colin Duquesnoy> | |
* Copyright (c) <2015-2016> <Alex Huszagh> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, | |
* distribute, sublicense, and/or sell copies of the Software, and to | |
* permit persons to whom the Software is furnished to do so, subject to | |
* the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
* --------------------------------------------------------------------- | |
*/ | |
QToolTip | |
{ | |
border: 0.1ex solid #eff0f1; | |
background-color: #31363b; | |
alternate-background-color: #3b4045; | |
color: #eff0f1; | |
padding: 0.5ex; | |
opacity: 200; | |
} | |
QWidget | |
{ | |
color: #eff0f1; | |
background-color: #31363b; | |
selection-background-color:#3daee9; | |
selection-color: #eff0f1; | |
background-clip: border; | |
border-image: none; | |
border: 0px transparent black; | |
outline: 0; | |
} | |
QWidget:item:hover | |
{ | |
background-color: #3daee9; | |
color: #eff0f1; | |
} | |
QWidget:item:selected | |
{ | |
background-color: #3daee9; | |
} | |
QCheckBox | |
{ | |
spacing: 0.5ex; | |
outline: none; | |
color: #eff0f1; | |
margin-bottom: 0.2ex; | |
opacity: 200; | |
} | |
QCheckBox:disabled | |
{ | |
color: #76797c; | |
} | |
QGroupBox::indicator | |
{ | |
margin-left: 0.2ex; | |
} | |
QRadioButton | |
{ | |
spacing: 0.5ex; | |
outline: none; | |
color: #eff0f1; | |
margin-bottom: 0.2ex; | |
} | |
QRadioButton:disabled | |
{ | |
color: #76797c; | |
} | |
QMenuBar | |
{ | |
background-color: #31363b; | |
color: #eff0f1; | |
} | |
QMenuBar::item | |
{ | |
background: transparent; | |
} | |
QMenuBar::item:selected | |
{ | |
background: transparent; | |
border: 0.1ex solid #76797c; | |
} | |
QMenuBar::item:pressed | |
{ | |
border: 0.1ex solid #76797c; | |
background-color: #3daee9; | |
color: #eff0f1; | |
margin-bottom: -0.1ex; | |
padding-bottom: 0.1ex; | |
} | |
QMenu | |
{ | |
border: 0.1ex solid #76797c; | |
color: #eff0f1; | |
margin: 0.2ex; | |
} | |
QMenu::icon | |
{ | |
margin: 0.5ex; | |
} | |
QMenu::item | |
{ | |
padding: 0.5ex 3ex 0.5ex 3ex; | |
margin-left: 0.5ex; | |
border: 0.1ex solid transparent; /* reserve space for selection border */ | |
} | |
QMenu::item:selected | |
{ | |
color: #eff0f1; | |
} | |
QMenu::separator | |
{ | |
height: 0.2ex; | |
background: lightblue; | |
margin-left: 1ex; | |
margin-right: 0.5ex; | |
} | |
QMenu::right-arrow | |
{ | |
margin: 0.5ex; | |
width: 0.6ex; | |
height: 0.9ex; | |
} | |
QWidget:disabled | |
{ | |
color: #454545; | |
background-color: #31363b; | |
} | |
QAbstractItemView | |
{ | |
alternate-background-color: #31363b; | |
color: #eff0f1; | |
border: 0.1ex solid 3A3939; | |
border-radius: 0.2ex; | |
} | |
QWidget:focus, | |
QMenuBar:focus | |
{ | |
border: 0.1ex solid #3daee9; | |
} | |
QTabWidget:focus, | |
QCheckBox:focus, | |
QRadioButton:focus, | |
QSlider:focus | |
{ | |
border: none; | |
} | |
QLineEdit | |
{ | |
background-color: #232629; | |
padding: 0.5ex; | |
border-style: solid; | |
border: 0.1ex solid #76797c; | |
border-radius: 0.2ex; | |
color: #eff0f1; | |
} | |
QGroupBox | |
{ | |
border: 0.1ex solid #76797c; | |
border-radius: 0.2ex; | |
padding-top: 1ex; | |
margin-top: 1ex; | |
} | |
QGroupBox::title | |
{ | |
subcontrol-origin: margin; | |
subcontrol-position: top center; | |
padding-left: 0.1ex; | |
padding-right: 0.1ex; | |
margin-top: -0.7ex; | |
} | |
QAbstractScrollArea | |
{ | |
border-radius: 0.2ex; | |
border: 0.1ex solid #76797c; | |
background-color: transparent; | |
} | |
QScrollBar:horizontal | |
{ | |
height: 1.5ex; | |
margin: 0.3ex 1.5ex 0.3ex 1.5ex; | |
border: 0.1ex transparent #2A2929; | |
border-radius: 0.4ex; | |
background-color: #2A2929; | |
} | |
QScrollBar::handle:horizontal | |
{ | |
background-color: #3daee9; | |
min-width: 0.5ex; | |
border-radius: 0.4ex; | |
} | |
QScrollBar::add-line:horizontal | |
{ | |
margin: 0px 0.3ex 0px 0.3ex; | |
width: 1ex; | |
height: 1ex; | |
subcontrol-position: right; | |
subcontrol-origin: margin; | |
} | |
QScrollBar::sub-line:horizontal | |
{ | |
margin: 0ex 0.3ex 0ex 0.3ex; | |
width: 1ex; | |
height: 1ex; | |
subcontrol-position: left; | |
subcontrol-origin: margin; | |
} | |
QScrollBar::add-line:horizontal:hover, | |
QScrollBar::add-line:horizontal:on | |
{ | |
width: 1ex; | |
height: 1ex; | |
subcontrol-position: right; | |
subcontrol-origin: margin; | |
} | |
QScrollBar::sub-line:horizontal:hover, | |
QScrollBar::sub-line:horizontal:on | |
{ | |
width: 1ex; | |
height: 1ex; | |
subcontrol-position: left; | |
subcontrol-origin: margin; | |
} | |
QScrollBar::up-arrow:horizontal, | |
QScrollBar::down-arrow:horizontal | |
{ | |
background: none; | |
} | |
QScrollBar::add-page:horizontal, | |
QScrollBar::sub-page:horizontal | |
{ | |
background: none; | |
} | |
QScrollBar:vertical | |
{ | |
background-color: #2A2929; | |
width: 1.5ex; | |
margin: 1.5ex 0.3ex 1.5ex 0.3ex; | |
border: 0.1ex transparent #2A2929; | |
border-radius: 0.4ex; | |
} | |
QScrollBar::handle:vertical | |
{ | |
background-color: #3daee9; | |
min-height: 0.5ex; | |
border-radius: 0.4ex; | |
} | |
QScrollBar::sub-line:vertical | |
{ | |
margin: 0.3ex 0ex 0.3ex 0ex; | |
height: 1ex; | |
width: 1ex; | |
subcontrol-position: top; | |
subcontrol-origin: margin; | |
} | |
QScrollBar::add-line:vertical | |
{ | |
margin: 0.3ex 0ex 0.3ex 0ex; | |
height: 1ex; | |
width: 1ex; | |
subcontrol-position: bottom; | |
subcontrol-origin: margin; | |
} | |
QScrollBar::sub-line:vertical:hover, | |
QScrollBar::sub-line:vertical:on | |
{ | |
height: 1ex; | |
width: 1ex; | |
subcontrol-position: top; | |
subcontrol-origin: margin; | |
} | |
QScrollBar::add-line:vertical:hover, | |
QScrollBar::add-line:vertical:on | |
{ | |
height: 1ex; | |
width: 1ex; | |
subcontrol-position: bottom; | |
subcontrol-origin: margin; | |
} | |
QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical | |
{ | |
background: none; | |
} | |
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical | |
{ | |
background: none; | |
} | |
QTextEdit | |
{ | |
background-color: #232629; | |
color: #eff0f1; | |
border: 0.1ex solid #76797c; | |
} | |
QPlainTextEdit | |
{ | |
background-color: #232629;; | |
color: #eff0f1; | |
border-radius: 0.2ex; | |
border: 0.1ex solid #76797c; | |
} | |
QHeaderView::section | |
{ | |
background-color: #76797c; | |
color: #eff0f1; | |
padding: 0.5ex; | |
border: 0.1ex solid #76797c; | |
} | |
QSizeGrip | |
{ | |
width: 1.2ex; | |
height: 1.2ex; | |
} | |
QMainWindow::separator | |
{ | |
background-color: #31363b; | |
color: white; | |
padding-left: 0.4ex; | |
spacing: 0.2ex; | |
border: 0.1ex dashed #76797c; | |
} | |
QMainWindow::separator:hover | |
{ | |
background-color: #787876; | |
color: white; | |
padding-left: 0.4ex; | |
border: 0.1ex solid #76797c; | |
spacing: 0.2ex; | |
} | |
QMenu::separator | |
{ | |
height: 0.1ex; | |
background-color: #76797c; | |
color: white; | |
padding-left: 0.4ex; | |
margin-left: 1ex; | |
margin-right: 0.5ex; | |
} | |
QFrame[frameShape="2"], /* QFrame::Panel == 0x0003 */ | |
QFrame[frameShape="3"], /* QFrame::WinPanel == 0x0003 */ | |
QFrame[frameShape="4"], /* QFrame::HLine == 0x0004 */ | |
QFrame[frameShape="5"], /* QFrame::VLine == 0x0005 */ | |
QFrame[frameShape="6"] /* QFrame::StyledPanel == 0x0006 */ | |
{ | |
border-width: 0.1ex; | |
padding: 0.1ex; | |
border-style: solid; | |
border-color: #31363b; | |
background-color: #76797c; | |
border-radius: 0.5ex; | |
} | |
QStackedWidget | |
{ | |
border: 0.1ex transparent black; | |
} | |
QToolBar | |
{ | |
border: 0.1ex transparent #393838; | |
background: 0.1ex solid #31363b; | |
font-weight: bold; | |
} | |
QToolBar::handle:horizontal | |
{ | |
width = 1.6ex; | |
height = 6.4ex; | |
} | |
QToolBar::handle:vertical | |
{ | |
width = 5.4ex; | |
height = 1ex; | |
} | |
QToolBar::separator:horizontal | |
{ | |
width = 0.7ex; | |
height = 6.3ex; | |
} | |
QToolBar::separator:vertical | |
{ | |
width = 6.3ex; | |
height = 0.7ex; | |
} | |
QPushButton | |
{ | |
color: #eff0f1; | |
background-color: qlineargradient(x1: 0.5, y1: 0.5 x2: 0.5, y2: 1, stop: 0 #3b4045, stop: 0.5 #31363b); | |
border-width: 0.1ex; | |
border-color: #76797c; | |
border-style: solid; | |
padding: 0.5ex; | |
border-radius: 0.2ex; | |
outline: none; | |
} | |
QPushButton:disabled | |
{ | |
background-color: #31363b; | |
border-width: 0.1ex; | |
border-color: #454545; | |
border-style: solid; | |
padding-top: 0.5ex; | |
padding-bottom: 0.5ex; | |
padding-left: 1ex; | |
padding-right: 1ex; | |
border-radius: 0.2ex; | |
color: #454545; | |
} | |
QPushButton:focus | |
{ | |
color: white; | |
} | |
QPushButton:pressed | |
{ | |
background-color: #31363b; | |
padding-top: -1.5ex; | |
padding-bottom: -1.7ex; | |
} | |
QComboBox | |
{ | |
selection-background-color: #3daee9; | |
border-style: solid; | |
border: 0.1ex solid #76797c; | |
border-radius: 0.2ex; | |
padding: 0.5ex; | |
min-width: 7.5ex; | |
} | |
QPushButton:checked | |
{ | |
background-color: #76797c; | |
border-color: #6A6969; | |
} | |
QPushButton:hover | |
{ | |
background-color: qlineargradient(x1: 0.5, y1: 0.5 x2: 0.5, y2: 1, stop: 0 #454a4f, stop: 0.5 #3b4045); | |
border: 0.1ex solid #3daee9; | |
color: #eff0f1; | |
} | |
QPushButton:checked:hover | |
{ | |
background-color: qlineargradient(x1: 0.5, y1: 0.5 x2: 0.5, y2: 1, stop: 0 #808386, stop: 0.5 #76797c); | |
border: 0.1ex solid #3daee9; | |
color: #eff0f1; | |
} | |
QComboBox:hover, | |
QAbstractSpinBox:hover, | |
QLineEdit:hover, | |
QTextEdit:hover, | |
QPlainTextEdit:hover, | |
QAbstractView:hover, | |
QTreeView:hover | |
{ | |
border: 0.1ex solid #3daee9; | |
color: #eff0f1; | |
} | |
QComboBox:hover:pressed, | |
QPushButton:hover:pressed, | |
QAbstractSpinBox:hover:pressed, | |
QLineEdit:hover:pressed, | |
QTextEdit:hover:pressed, | |
QPlainTextEdit:hover:pressed, | |
QAbstractView:hover:pressed, | |
QTreeView:hover:pressed | |
{ | |
background-color: #31363b; | |
} | |
QComboBox:on | |
{ | |
padding-top: 0.3ex; | |
padding-left: 0.4ex; | |
selection-background-color: #4a4a4a; | |
} | |
QComboBox QAbstractItemView | |
{ | |
background-color: #232629; | |
border-radius: 0.2ex; | |
border: 0.1ex solid #76797c; | |
selection-background-color: #3daee9; | |
} | |
QComboBox::drop-down | |
{ | |
subcontrol-origin: padding; | |
subcontrol-position: top right; | |
width: 1.5ex; | |
border-left-width: 0ex; | |
border-left-color: darkgray; | |
border-left-style: solid; | |
border-top-right-radius: 0.3ex; | |
border-bottom-right-radius: 0.3ex; | |
} | |
QComboBox::down-arrow | |
{ | |
width: 0.9ex; | |
height: 0.6ex; | |
} | |
QComboBox::down-arrow:on, | |
QComboBox::down-arrow:hover, | |
QComboBox::down-arrow:focus | |
{ | |
width: 0.9ex; | |
height: 0.6ex; | |
} | |
QAbstractSpinBox | |
{ | |
padding: 0.5ex; | |
border: 0.1ex solid #76797c; | |
background-color: #232629; | |
color: #eff0f1; | |
border-radius: 0.2ex; | |
min-width: 7.5ex; | |
} | |
QAbstractSpinBox:up-button | |
{ | |
background-color: transparent; | |
subcontrol-origin: border; | |
subcontrol-position: center right; | |
} | |
QAbstractSpinBox:down-button | |
{ | |
background-color: transparent; | |
subcontrol-origin: border; | |
subcontrol-position: center left; | |
} | |
QAbstractSpinBox::up-arrow, | |
QAbstractSpinBox::up-arrow:disabled, | |
QAbstractSpinBox::up-arrow:off | |
{ | |
width: 0.9ex; | |
height: 0.6ex; | |
} | |
QAbstractSpinBox::up-arrow:hover | |
{ | |
width: 0.9ex; | |
height: 0.6ex; | |
} | |
QAbstractSpinBox::down-arrow, | |
QAbstractSpinBox::down-arrow:disabled, | |
QAbstractSpinBox::down-arrow:off | |
{ | |
width: 0.9ex; | |
height: 0.6ex; | |
} | |
QAbstractSpinBox::down-arrow:hover | |
{ | |
width: 0.9ex; | |
height: 0.6ex; | |
} | |
QLabel | |
{ | |
border: 0ex solid black; | |
} | |
/* BORDERS */ | |
QTabWidget::pane | |
{ | |
padding: 0.5ex; | |
margin: 0.1ex; | |
} | |
QTabWidget::pane:top | |
{ | |
border: 0.1ex solid #76797c; | |
top: -0.1ex; | |
} | |
QTabWidget::pane:bottom | |
{ | |
border: 0.1ex solid #76797c; | |
bottom: -0.1ex; | |
} | |
QTabWidget::pane:left | |
{ | |
border: 0.1ex solid #76797c; | |
right: -0.1ex; | |
} | |
QTabWidget::pane:right | |
{ | |
border: 0.1ex solid #76797c; | |
left: -0.1ex; | |
} | |
QTabBar | |
{ | |
qproperty-drawBase: 0; | |
left: 0.5ex; /* move to the right by 0.5ex */ | |
border-radius: 0.3ex; | |
} | |
QTabBar:focus | |
{ | |
border: 0ex transparent black; | |
} | |
QTabBar::close-button:hover | |
{ | |
width: 1.2ex; | |
height: 1.2ex; | |
} | |
QTabBar::close-button:pressed | |
{ | |
width: 1.2ex; | |
height: 1.2ex; | |
} | |
/* TOP TABS */ | |
QTabBar::tab:top | |
{ | |
color: #eff0f1; | |
border: 0.1ex transparent black; | |
border-left: 0.1ex solid #76797c; | |
border-top: 0.1ex solid #76797c; | |
background-color: #31363b; | |
padding: 0.5ex; | |
min-width: 50px; | |
border-top-left-radius: 0.2ex; | |
border-top-right-radius: 0.2ex; | |
} | |
QTabBar::tab:top:last, | |
QTabBar::tab:top:only-one | |
{ | |
color: #eff0f1; | |
border: 0.1ex transparent black; | |
border-left: 0.1ex solid #76797c; | |
border-right: 0.1ex solid #76797c; | |
border-top: 0.1ex solid #76797c; | |
background-color: #31363b; | |
padding: 0.5ex; | |
min-width: 50px; | |
border-top-left-radius: 0.2ex; | |
border-top-right-radius: 0.2ex; | |
} | |
QTabBar::tab:top:!selected | |
{ | |
color: #eff0f1; | |
background-color: #54575B; | |
border: 0.1ex transparent black; | |
border-left: 0.1ex solid #76797c; | |
border-top-left-radius: 0.2ex; | |
border-top-right-radius: 0.2ex; | |
} | |
QTabBar::tab:top:first:!selected | |
{ | |
color: #eff0f1; | |
background-color: #54575B; | |
border: 0.1ex transparent black; | |
border-top-left-radius: 0.2ex; | |
border-top-right-radius: 0.2ex; | |
} | |
QTabBar::tab:top:!selected:hover | |
{ | |
background-color: rgba(61, 173, 232, 0.2); | |
border: 0.1ex rgba(61, 173, 232, 0.2); | |
border-left: 0.1ex solid #76797c; | |
} | |
QTabBar::tab:top:!selected:first:hover | |
{ | |
background-color: rgba(61, 173, 232, 0.2); | |
border: 0.1ex rgba(61, 173, 232, 0.2); | |
} | |
/* BOTTOM TABS */ | |
QTabBar::tab:bottom | |
{ | |
color: #eff0f1; | |
border: 0.1ex transparent black; | |
border-left: 0.1ex solid #76797c; | |
border-bottom: 0.1ex solid #76797c; | |
background-color: #31363b; | |
padding: 0.5ex; | |
border-bottom-left-radius: 0.2ex; | |
border-bottom-right-radius: 0.2ex; | |
min-width: 50px; | |
} | |
QTabBar::tab:bottom:last, | |
QTabBar::tab:bottom:only-one | |
{ | |
color: #eff0f1; | |
border: 0.1ex transparent black; | |
border-left: 0.1ex solid #76797c; | |
border-right: 0.1ex solid #76797c; | |
border-bottom: 0.1ex solid #76797c; | |
background-color: #31363b; | |
padding: 0.5ex; | |
border-bottom-left-radius: 0.2ex; | |
border-bottom-right-radius: 0.2ex; | |
min-width: 50px; | |
} | |
QTabBar::tab:bottom:!selected | |
{ | |
color: #eff0f1; | |
background-color: #54575B; | |
border: 0.1ex transparent black; | |
border-left: 0.1ex solid #76797c; | |
border-bottom-left-radius: 0.2ex; | |
border-bottom-right-radius: 0.2ex; | |
} | |
QTabBar::tab:bottom:first:!selected | |
{ | |
color: #eff0f1; | |
background-color: #54575B; | |
border: 0.1ex transparent black; | |
border-top-left-radius: 0.2ex; | |
border-top-right-radius: 0.2ex; | |
} | |
QTabBar::tab:bottom:!selected:hover | |
{ | |
background-color: rgba(61, 173, 232, 0.2); | |
border: 0.1ex rgba(61, 173, 232, 0.2); | |
border-left: 0.1ex solid #76797c; | |
} | |
QTabBar::tab:bottom:!selected:first:hover | |
{ | |
background-color: rgba(61, 173, 232, 0.2); | |
border: 0.1ex rgba(61, 173, 232, 0.2); | |
} | |
/* LEFT TABS */ | |
QTabBar::tab:left | |
{ | |
color: #eff0f1; | |
border: 0.1ex transparent black; | |
border-top: 0.1ex solid #76797c; | |
border-right: 0.1ex solid #76797c; | |
background-color: #31363b; | |
padding: 0.5ex; | |
border-top-right-radius: 0.2ex; | |
border-bottom-right-radius: 0.2ex; | |
min-height: 50px; | |
} | |
QTabBar::tab:left:last, | |
QTabBar::tab:left:only-one | |
{ | |
color: #eff0f1; | |
border: 0.1ex transparent black; | |
border-top: 0.1ex solid #76797c; | |
border-bottom: 0.1ex solid #76797c; | |
border-right: 0.1ex solid #76797c; | |
background-color: #31363b; | |
padding: 0.5ex; | |
border-top-right-radius: 0.2ex; | |
border-bottom-right-radius: 0.2ex; | |
min-height: 50px; | |
} | |
QTabBar::tab:left:!selected | |
{ | |
color: #eff0f1; | |
background-color: #54575B; | |
border: 0.1ex transparent black; | |
border-top: 0.1ex solid #76797c; | |
border-top-right-radius: 0.2ex; | |
border-bottom-right-radius: 0.2ex; | |
} | |
QTabBar::tab:left:!selected:hover | |
{ | |
background-color: rgba(61, 173, 232, 0.2); | |
border: 0.1ex rgba(61, 173, 232, 0.2); | |
border-top: 0.1ex solid #76797c; | |
} | |
QTabBar::tab:left:!selected:first:hover | |
{ | |
background-color: rgba(61, 173, 232, 0.2); | |
border: 0.1ex rgba(61, 173, 232, 0.2); | |
} | |
/* RIGHT TABS */ | |
QTabBar::tab:right | |
{ | |
color: #eff0f1; | |
border: 0.1ex transparent black; | |
border-top: 0.1ex solid #76797c; | |
border-left: 0.1ex solid #76797c; | |
background-color: #31363b; | |
padding: 0.5ex; | |
border-top-left-radius: 0.2ex; | |
border-bottom-left-radius: 0.2ex; | |
min-height: 50px; | |
} | |
QTabBar::tab:right:last, | |
QTabBar::tab:right:only-one | |
{ | |
color: #eff0f1; | |
border: 0.1ex transparent black; | |
border-top: 0.1ex solid #76797c; | |
border-bottom: 0.1ex solid #76797c; | |
border-left: 0.1ex solid #76797c; | |
background-color: #31363b; | |
padding: 0.5ex; | |
border-top-left-radius: 0.2ex; | |
border-bottom-left-radius: 0.2ex; | |
min-height: 50px; | |
} | |
QTabBar::tab:right:!selected | |
{ | |
color: #eff0f1; | |
background-color: #54575B; | |
border: 0.1ex transparent black; | |
border-top: 0.1ex solid #76797c; | |
border-top-left-radius: 0.2ex; | |
border-bottom-left-radius: 0.2ex; | |
} | |
QTabBar::tab:right:!selected:hover | |
{ | |
background-color: rgba(61, 173, 232, 0.2); | |
border: 0.1ex rgba(61, 173, 232, 0.2); | |
border-top: 0.1ex solid #76797c; | |
} | |
QTabBar::tab:right:!selected:first:hover | |
{ | |
background-color: rgba(61, 173, 232, 0.2); | |
border: 0.1ex rgba(61, 173, 232, 0.2); | |
} | |
QDockWidget | |
{ | |
background: #31363b; | |
border: 0.1ex solid #403F3F; | |
} | |
QDockWidget::close-button, | |
QDockWidget::float-button | |
{ | |
border: 0.1ex solid transparent; | |
border-radius: 0.2ex; | |
background: transparent; | |
} | |
QTreeView, | |
QListView | |
{ | |
border: 0.1ex solid #76797c; | |
background-color: #232629; | |
} | |
/* | |
QTreeView::branch:has-siblings:!adjoins-item { | |
background: cyan; | |
} | |
QTreeView::branch:has-siblings:adjoins-item { | |
background: red; | |
} | |
QTreeView::branch:!has-children:!has-siblings:adjoins-item { | |
background: blue; | |
} | |
QTreeView::branch:closed:has-children:has-siblings { | |
background: pink; | |
} | |
QTreeView::branch:has-children:!has-siblings:closed { | |
background: gray; | |
} | |
QTreeView::branch:open:has-children:has-siblings { | |
background: magenta; | |
} | |
QTreeView::branch:open:has-children:!has-siblings { | |
background: green; | |
} | |
*/ | |
QTableView::item, | |
QListView::item, | |
QTreeView::item | |
{ | |
padding: 0.3ex; | |
} | |
QTableView::item:!selected:hover, | |
QListView::item:!selected:hover, | |
QTreeView::item:!selected:hover | |
{ | |
background-color: rgba(61, 173, 232, 0.2); | |
outline: 0; | |
color: #eff0f1; | |
padding: 0.3ex; | |
} | |
QSlider::groove:horizontal | |
{ | |
border: 0.1ex solid #31363b; | |
height: 0.4ex; | |
background: #565a5e; | |
margin: 0ex; | |
border-radius: 0.2ex; | |
} | |
QSlider::handle:horizontal | |
{ | |
background: #232629; | |
border: 0.1ex solid #626568; | |
width: 1.6ex; | |
height: 1.6ex; | |
margin: -0.8ex 0; | |
border-radius: 0.9ex; | |
} | |
QSlider::groove:vertical | |
{ | |
border: 0.1ex solid #31363b; | |
width: 0.4ex; | |
background: #565a5e; | |
margin: 0ex; | |
border-radius: 0.3ex; | |
} | |
QSlider::handle:vertical | |
{ | |
background: #232629; | |
border: 0.1ex solid #626568; | |
width: 1.6ex; | |
height: 1.6ex; | |
margin: 0 -0.8ex; | |
border-radius: 0.9ex; | |
} | |
QSlider::handle:horizontal:hover, | |
QSlider::handle:horizontal:focus, | |
QSlider::handle:vertical:hover, | |
QSlider::handle:vertical:focus | |
{ | |
border: 0.1ex solid #3daee9; | |
} | |
QSlider::sub-page:horizontal, | |
QSlider::add-page:vertical | |
{ | |
background: #3daee9; | |
border-radius: 0.3ex; | |
} | |
QSlider::add-page:horizontal, | |
QSlider::sub-page:vertical | |
{ | |
background: #626568; | |
border-radius: 0.3ex; | |
} | |
QToolButton | |
{ | |
background-color: transparent; | |
border: 0.1ex solid #76797c; | |
border-radius: 0.2ex; | |
margin: 0.3ex; | |
padding: 0.5ex; | |
} | |
QToolButton[popupMode="1"] /* only for MenuButtonPopup */ | |
{ | |
padding-right: 2ex; /* make way for the popup button */ | |
} | |
QToolButton[popupMode="2"] /* only for InstantPopup */ | |
{ | |
padding-right: 1ex; /* make way for the popup button */ | |
} | |
QToolButton::menu-indicator | |
{ | |
top: -0.7ex; | |
left: -0.2ex; | |
} | |
QToolButton:hover, | |
QToolButton::menu-button:hover | |
{ | |
background-color: transparent; | |
border: 0.1ex solid #3daee9; | |
} | |
QToolButton:checked, | |
QToolButton:pressed, | |
QToolButton::menu-button:pressed | |
{ | |
background-color: #3daee9; | |
border: 0.1ex solid #3daee9; | |
padding: 0.5ex; | |
} | |
QToolButton::menu-button | |
{ | |
border: 0.1ex solid #76797c; | |
border-top-right-radius: 6px; | |
border-bottom-right-radius: 6px; | |
/* 1ex width + 0.4ex for border + no text = 2ex allocated above */ | |
width: 1ex; | |
padding: 0.5ex; | |
outline: none; | |
} | |
QToolButton::menu-arrow:open | |
{ | |
border: 0.1ex solid #76797c; | |
} | |
QPushButton::menu-indicator | |
{ | |
subcontrol-origin: padding; | |
subcontrol-position: bottom right; | |
left: 0.8ex; | |
} | |
QTableView | |
{ | |
border: 0.1ex solid #76797c; | |
gridline-color: #31363b; | |
background-color: #232629; | |
} | |
QTableView, | |
QHeaderView | |
{ | |
border-radius: 0px; | |
} | |
QTableView::item:pressed, | |
QListView::item:pressed, | |
QTreeView::item:pressed | |
{ | |
background: #3daee9; | |
color: #eff0f1; | |
} | |
QTableView::item:selected:active, | |
QTreeView::item:selected:active, | |
QListView::item:selected:active | |
{ | |
background: #3daee9; | |
color: #eff0f1; | |
} | |
QListView::item:selected:hover, | |
QTreeView::item:selected:hover | |
{ | |
background-color: #47b8f3; | |
color: #eff0f1; | |
} | |
QHeaderView | |
{ | |
background-color: #31363b; | |
border: 0.1ex transparent; | |
border-radius: 0px; | |
margin: 0px; | |
padding: 0px; | |
} | |
QHeaderView::section | |
{ | |
background-color: #31363b; | |
color: #eff0f1; | |
padding: 0.5ex; | |
border: 0.1ex solid #76797c; | |
border-radius: 0px; | |
text-align: center; | |
} | |
QHeaderView::section::vertical::first, | |
QHeaderView::section::vertical::only-one | |
{ | |
border-top: 0.1ex solid #76797c; | |
} | |
QHeaderView::section::vertical | |
{ | |
border-top: transparent; | |
} | |
QHeaderView::section::horizontal::first, | |
QHeaderView::section::horizontal::only-one | |
{ | |
border-left: 0.1ex solid #76797c; | |
} | |
QHeaderView::section::horizontal | |
{ | |
border-left: transparent; | |
} | |
QHeaderView::section:checked | |
{ | |
color: white; | |
background-color: #334e5e; | |
} | |
QTableCornerButton::section | |
{ | |
background-color: #31363b; | |
border: 0.1ex transparent #76797c; | |
border-radius: 0px; | |
} | |
QToolBox | |
{ | |
padding: 0.5ex; | |
border: 0.1ex transparent black; | |
} | |
QToolBox:selected | |
{ | |
background-color: #31363b; | |
border-color: #3daee9; | |
} | |
QToolBox:hover | |
{ | |
border-color: #3daee9; | |
} | |
QStatusBar::item | |
{ | |
border: 0px transparent dark; | |
} | |
QFrame[height="3"], | |
QFrame[width="3"] | |
{ | |
background-color: #76797c; | |
} | |
QSplitter::handle | |
{ | |
border: 0.1ex dashed #76797c; | |
} | |
QSplitter::handle:hover | |
{ | |
background-color: #787876; | |
border: 0.1ex solid #76797c; | |
} | |
QSplitter::handle:horizontal | |
{ | |
width: 0.1ex; | |
} | |
QSplitter::handle:vertical | |
{ | |
height: 0.1ex; | |
} | |
QProgressBar:horizontal | |
{ | |
background-color: #626568; | |
border: 0.1ex solid #31363b; | |
border-radius: 0.3ex; | |
height: 0.5ex; | |
text-align: right; | |
margin-top: 0.5ex; | |
margin-bottom: 0.5ex; | |
margin-right: 5ex; | |
padding: 0px; | |
} | |
QProgressBar::chunk:horizontal | |
{ | |
background-color: #3daee9; | |
border: 0.1ex transparent; | |
border-radius: 0.3ex; | |
} | |
QSpinBox, | |
QDoubleSpinBox | |
{ | |
padding-right: 1.5ex; | |
} | |
QSpinBox::up-button, | |
QDoubleSpinBox::up-button | |
{ | |
subcontrol-origin: content; | |
subcontrol-position: right top; | |
width: 1.6ex; | |
border-width: 0.1ex; | |
} | |
QSpinBox::up-arrow, | |
QDoubleSpinBox::up-arrow | |
{ | |
width: 0.9ex; | |
height: 0.6ex; | |
} | |
QSpinBox::up-arrow:hover, | |
QSpinBox::up-arrow:pressed, | |
QDoubleSpinBox::up-arrow:hover, | |
QDoubleSpinBox::up-arrow:pressed | |
{ | |
width: 0.9ex; | |
height: 0.6ex; | |
} | |
QSpinBox::down-button, | |
QDoubleSpinBox::down-button | |
{ | |
subcontrol-origin: content; | |
subcontrol-position: right bottom; | |
width: 1.6ex; | |
border-width: 0.1ex; | |
} | |
QSpinBox::down-arrow, | |
QDoubleSpinBox::down-arrow | |
{ | |
width: 0.9ex; | |
height: 0.6ex; | |
} | |
QSpinBox::down-arrow:hover, | |
QSpinBox::down-arrow:pressed, | |
QDoubleSpinBox::down-arrow:hover, | |
QDoubleSpinBox::down-arrow:pressed | |
{ | |
width: 0.9ex; | |
height: 0.6ex; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment