Path: blob/master/src/assets/app-styles.qss
254 views
/*
See Qt documentation:
- https://doc.qt.io/qt-5/stylesheet.html
- https://doc.qt.io/qt-5/stylesheet-reference.html
- https://doc.qt.io/qt-5/stylesheet-examples.html
This qss file is a (slightly) modified version of: https://github.com/ColinDuquesnoy/QDarkStyleSheet/blob/master/qdarkstyle/dark/style.qss
by ColinDuquesnoy[https://github.com/ColinDuquesnoy]
--------------------------------------------------------------------------- */
/* Reset elements ------------------------------------------------------------
Resetting everything helps to unify styles across different operating systems
--------------------------------------------------------------------------- */
* {
padding: 0px;
margin: 0px;
border: 0px;
border-style: none;
border-image: none;
outline: 0;
}
/* specific reset for elements inside QToolBar */
QToolBar * {
margin: 0px;
padding: 0px;
}
/* QWidget ----------------------------------------------------------------
--------------------------------------------------------------------------- */
QWidget {
background-color: #19232D;
border: 0px solid #455364;
padding: 0px;
color: #E0E1E3;
selection-background-color: #346792;
selection-color: #E0E1E3;
}
QWidget:disabled {
background-color: #19232D;
color: #9DA9B5;
selection-background-color: #26486B;
selection-color: #9DA9B5;
}
QWidget::item:selected {
background-color: #346792;
}
QWidget::item:hover:!selected {
background-color: #1A72BB;
}
/* QMainWindow ------------------------------------------------------------
This adjusts the splitter in the dock widget, not qsplitter
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmainwindow
--------------------------------------------------------------------------- */
QMainWindow::separator {
background-color: #455364;
border: 0px solid #19232D;
spacing: 0px;
padding: 2px;
}
QMainWindow::separator:hover {
background-color: #60798B;
border: 0px solid #1A72BB;
}
/* QToolTip ---------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtooltip
--------------------------------------------------------------------------- */
QToolTip {
background-color: #346792;
color: #E0E1E3;
/* If you remove the border property, background stops working on Windows */
border: none;
/* Remove padding, for fix combo box tooltip */
padding: 0px;
/* Remove opacity, fix #174 - may need to use RGBA */
}
/* QStatusBar -------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qstatusbar
--------------------------------------------------------------------------- */
QStatusBar {
border: 1px solid #455364;
/* Fixes Spyder #9120, #9121 */
background: #455364;
/* Fixes #205, white vertical borders separating items */
}
QStatusBar::item {
border: none;
}
QStatusBar QToolTip {
background-color: #1A72BB;
border: 1px solid #19232D;
color: #19232D;
/* Remove padding, for fix combo box tooltip */
padding: 0px;
/* Reducing transparency to read better */
opacity: 230;
}
QStatusBar QLabel {
/* Fixes Spyder #9120, #9121 */
background: transparent;
}
/* QCheckBox --------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcheckbox
--------------------------------------------------------------------------- */
QCheckBox {
background-color: #19232D;
color: #E0E1E3;
spacing: 4px;
outline: none;
padding-top: 4px;
padding-bottom: 4px;
}
QCheckBox:focus {
border: none;
}
QCheckBox QWidget:disabled {
background-color: #19232D;
color: #9DA9B5;
}
QCheckBox::indicator {
margin-left: 2px;
height: 14px;
width: 14px;
}
/* QGroupBox --------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qgroupbox
--------------------------------------------------------------------------- */
QGroupBox {
font-weight: bold;
border: 1px solid #455364;
border-radius: 4px;
padding: 2px;
margin-top: 6px;
margin-bottom: 4px;
}
QGroupBox::title {
subcontrol-origin: margin;
subcontrol-position: top left;
left: 4px;
padding-left: 2px;
padding-right: 4px;
padding-top: -4px;
}
QGroupBox::indicator {
margin-left: 2px;
margin-top: 2px;
padding: 0;
height: 14px;
width: 14px;
}
/* QRadioButton -----------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qradiobutton
--------------------------------------------------------------------------- */
/* QRadioButton {
background-color: #19232D;
color: #E0E1E3;
spacing: 4px;
padding-top: 4px;
padding-bottom: 4px;
border: none;
outline: none;
}
QRadioButton:focus {
border: none;
}
QRadioButton:disabled {
background-color: #19232D;
color: #9DA9B5;
border: none;
outline: none;
}
QRadioButton QWidget {
background-color: #19232D;
color: #E0E1E3;
spacing: 0px;
padding: 0px;
outline: none;
border: none;
}
QRadioButton::indicator {
border: none;
outline: none;
margin-left: 2px;
height: 14px;
width: 14px;
} */
/* QMenuBar ---------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenubar
--------------------------------------------------------------------------- */
QMenuBar {
background-color: #455364;
padding: 2px;
border: 1px solid #19232D;
color: #E0E1E3;
selection-background-color: #1A72BB;
}
QMenuBar:focus {
border: 1px solid #346792;
}
QMenuBar::item {
background: transparent;
padding: 4px;
}
QMenuBar::item:selected {
padding: 4px;
background: transparent;
border: 0px solid #455364;
background-color: #1A72BB;
}
QMenuBar::item:pressed {
padding: 4px;
border: 0px solid #455364;
background-color: #1A72BB;
color: #E0E1E3;
margin-bottom: 0px;
padding-bottom: 0px;
}
/* QMenu ------------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenu
--------------------------------------------------------------------------- */
QMenu {
border: 0px solid #455364;
color: #E0E1E3;
margin: 0px;
background-color: #37414F;
selection-background-color: #1A72BB;
}
QMenu::separator {
height: 1px;
background-color: #60798B;
color: #E0E1E3;
}
QMenu::item {
background-color: #37414F;
padding: 4px 24px 4px 28px;
/* Reserve space for selection border */
border: 1px transparent #455364;
}
QMenu::item:selected {
color: #E0E1E3;
background-color: #1A72BB;
}
QMenu::item:pressed {
background-color: #1A72BB;
}
QMenu::icon {
padding-left: 10px;
width: 14px;
height: 14px;
}
QMenu::indicator {
padding-left: 8px;
width: 12px;
height: 12px;
/* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */
/* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */
}
/* QAbstractItemView ------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
--------------------------------------------------------------------------- */
QAbstractItemView {
alternate-background-color: #19232D;
color: #E0E1E3;
border: 1px solid #455364;
border-radius: 4px;
}
QAbstractItemView QLineEdit {
padding: 2px;
}
/* QAbstractScrollArea ----------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea
--------------------------------------------------------------------------- */
QAbstractScrollArea {
background-color: #19232D;
border: 1px solid #455364;
border-radius: 4px;
/* fix #159 */
padding: 2px;
/* remove min-height to fix #244 */
color: #E0E1E3;
}
QAbstractScrollArea:disabled {
color: #9DA9B5;
}
/* QScrollArea ------------------------------------------------------------
--------------------------------------------------------------------------- */
QScrollArea QWidget QWidget:disabled {
background-color: #19232D;
}
/* QScrollBar -------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qscrollbar
--------------------------------------------------------------------------- */
QScrollBar:horizontal {
height: 16px;
margin: 2px 16px 2px 16px;
border: 1px solid #455364;
border-radius: 4px;
background-color: #19232D;
}
QScrollBar:vertical {
background-color: #19232D;
width: 16px;
margin: 16px 2px 16px 2px;
border: 1px solid #455364;
border-radius: 4px;
}
QScrollBar::handle:horizontal {
background-color: #60798B;
border: 1px solid #455364;
border-radius: 4px;
min-width: 8px;
}
QScrollBar::handle:horizontal:hover {
background-color: #346792;
border: #346792;
border-radius: 4px;
min-width: 8px;
}
QScrollBar::handle:horizontal:focus {
border: 1px solid #1A72BB;
}
QScrollBar::handle:vertical {
background-color: #60798B;
border: 1px solid #455364;
min-height: 8px;
border-radius: 4px;
}
QScrollBar::handle:vertical:hover {
background-color: #346792;
border: #346792;
border-radius: 4px;
min-height: 8px;
}
QScrollBar::handle:vertical:focus {
border: 1px solid #1A72BB;
}
QScrollBar::add-line:horizontal {
margin: 0px 0px 0px 0px;
border-image: url(":/qss_icons/dark/rc/arrow_right_disabled.png");
height: 12px;
width: 12px;
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::add-line:horizontal:hover, QScrollBar::add-line:horizontal:on {
border-image: url(":/qss_icons/dark/rc/arrow_right.png");
height: 12px;
width: 12px;
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::add-line:vertical {
margin: 3px 0px 3px 0px;
border-image: url(":/qss_icons/dark/rc/arrow_down_disabled.png");
height: 12px;
width: 12px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::add-line:vertical:hover, QScrollBar::add-line:vertical:on {
border-image: url(":/qss_icons/dark/rc/arrow_down.png");
height: 12px;
width: 12px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal {
margin: 0px 3px 0px 3px;
border-image: url(":/qss_icons/dark/rc/arrow_left_disabled.png");
height: 12px;
width: 12px;
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal:hover, QScrollBar::sub-line:horizontal:on {
border-image: url(":/qss_icons/dark/rc/arrow_left.png");
height: 12px;
width: 12px;
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical {
margin: 3px 0px 3px 0px;
border-image: url(":/qss_icons/dark/rc/arrow_up_disabled.png");
height: 12px;
width: 12px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical:hover, QScrollBar::sub-line:vertical:on {
border-image: url(":/qss_icons/dark/rc/arrow_up.png");
height: 12px;
width: 12px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::up-arrow:horizontal, QScrollBar::down-arrow:horizontal {
background: none;
}
QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
background: none;
}
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
background: none;
}
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
background: none;
}
/* QTextEdit --------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-specific-widgets
--------------------------------------------------------------------------- */
QTextEdit {
background-color: #19232D;
color: #E0E1E3;
border-radius: 4px;
border: 1px solid #455364;
}
QTextEdit:focus {
border: 1px solid #1A72BB;
}
QTextEdit:selected {
background: #346792;
color: #455364;
}
/* QPlainTextEdit ---------------------------------------------------------
--------------------------------------------------------------------------- */
QPlainTextEdit {
background-color: #19232D;
color: #E0E1E3;
border-radius: 4px;
border: 1px solid #455364;
}
QPlainTextEdit:focus {
border: 1px solid #1A72BB;
}
QPlainTextEdit:selected {
background: #346792;
color: #455364;
}
/* QToolBar ---------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbar
--------------------------------------------------------------------------- */
QToolBar {
background-color: #455364;
border-bottom: 1px solid #19232D;
padding: 1px;
font-weight: bold;
spacing: 2px;
}
QToolBar:disabled {
/* Fixes #272 */
background-color: #455364;
}
QToolBar::handle:horizontal {
width: 16px;
image: url(":/qss_icons/dark/rc/toolbar_move_horizontal.png");
}
QToolBar::handle:vertical {
height: 16px;
image: url(":/qss_icons/dark/rc/toolbar_move_vertical.png");
}
QToolBar::separator:horizontal {
width: 16px;
image: url(":/qss_icons/dark/rc/toolbar_separator_horizontal.png");
}
QToolBar::separator:vertical {
height: 16px;
image: url(":/qss_icons/dark/rc/toolbar_separator_vertical.png");
}
QToolButton#qt_toolbar_ext_button {
background: #455364;
border: 0px;
color: #E0E1E3;
image: url(":/qss_icons/dark/rc/arrow_right.png");
}
/* QAbstractSpinBox -------------------------------------------------------
--------------------------------------------------------------------------- */
QAbstractSpinBox {
background-color: #19232D;
border: 1px solid #455364;
color: #E0E1E3;
/* This fixes 103, 111 */
padding-top: 2px;
/* This fixes 103, 111 */
padding-bottom: 2px;
padding-left: 4px;
padding-right: 4px;
border-radius: 4px;
/* min-width: 5px; removed to fix 109 */
}
QAbstractSpinBox:up-button {
background-color: transparent #19232D;
subcontrol-origin: border;
subcontrol-position: top right;
border-left: 1px solid #455364;
border-bottom: 1px solid #455364;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
margin: 1px;
width: 12px;
margin-bottom: -1px;
}
QAbstractSpinBox::up-arrow, QAbstractSpinBox::up-arrow:disabled, QAbstractSpinBox::up-arrow:off {
image: url(":/qss_icons/dark/rc/arrow_up_disabled.png");
height: 8px;
width: 8px;
}
QAbstractSpinBox::up-arrow:hover {
image: url(":/qss_icons/dark/rc/arrow_up.png");
}
QAbstractSpinBox:down-button {
background-color: transparent #19232D;
subcontrol-origin: border;
subcontrol-position: bottom right;
border-left: 1px solid #455364;
border-top: 1px solid #455364;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
margin: 1px;
width: 12px;
margin-top: -1px;
}
QAbstractSpinBox::down-arrow, QAbstractSpinBox::down-arrow:disabled, QAbstractSpinBox::down-arrow:off {
image: url(":/qss_icons/dark/rc/arrow_down_disabled.png");
height: 8px;
width: 8px;
}
QAbstractSpinBox::down-arrow:hover {
image: url(":/qss_icons/dark/rc/arrow_down.png");
}
QAbstractSpinBox:hover {
border: 1px solid #346792;
color: #E0E1E3;
}
QAbstractSpinBox:focus {
border: 1px solid #1A72BB;
}
QAbstractSpinBox:selected {
background: #346792;
color: #455364;
}
/* ------------------------------------------------------------------------ */
/* DISPLAYS --------------------------------------------------------------- */
/* ------------------------------------------------------------------------ */
/* QLabel -----------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
--------------------------------------------------------------------------- */
QLabel {
background-color: #19232D;
border: 0px solid #455364;
padding: 2px;
margin: 0px;
color: #E0E1E3;
}
QLabel:disabled {
background-color: #19232D;
border: 0px solid #455364;
color: #9DA9B5;
}
/* QProgressBar -----------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qprogressbar
--------------------------------------------------------------------------- */
QProgressBar {
background-color: #19232D;
border: 1px solid #455364;
color: #E0E1E3;
border-radius: 4px;
text-align: center;
}
QProgressBar:disabled {
background-color: #19232D;
border: 1px solid #455364;
color: #9DA9B5;
border-radius: 4px;
text-align: center;
}
QProgressBar::chunk {
background-color: #346792;
color: #19232D;
border-radius: 4px;
}
QProgressBar::chunk:disabled {
background-color: #26486B;
color: #9DA9B5;
border-radius: 4px;
}
/* ------------------------------------------------------------------------ */
/* BUTTONS ---------------------------------------------------------------- */
/* ------------------------------------------------------------------------ */
/* QPushButton ------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qpushbutton
--------------------------------------------------------------------------- */
QPushButton {
background-color: #455364;
color: #E0E1E3;
border-radius: 4px;
padding: 2px;
outline: none;
border: none;
}
QPushButton:disabled {
background-color: #455364;
color: #9DA9B5;
border-radius: 4px;
padding: 2px;
}
QPushButton:checked {
background-color: #60798B;
border-radius: 4px;
padding: 2px;
outline: none;
}
QPushButton:checked:disabled {
background-color: #60798B;
color: #9DA9B5;
border-radius: 4px;
padding: 2px;
outline: none;
}
QPushButton:checked:selected {
background: #60798B;
}
QPushButton:hover {
background-color: #54687A;
color: #E0E1E3;
}
QPushButton:pressed {
background-color: #60798B;
}
QPushButton:selected {
background: #60798B;
color: #E0E1E3;
}
QPushButton::menu-indicator {
subcontrol-origin: padding;
subcontrol-position: bottom right;
bottom: 4px;
}
QDialogButtonBox QPushButton {
/* Issue #194 #248 - Special case of QPushButton inside dialogs, for better UI */
min-width: 80px;
}
/* QToolButton ------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbutton
--------------------------------------------------------------------------- */
QToolButton {
background-color: #455364;
color: #E0E1E3;
border-radius: 4px;
padding: 2px;
outline: none;
border: none;
/* The subcontrols below are used only in the DelayedPopup mode */
/* The subcontrols below are used only in the MenuButtonPopup mode */
/* The subcontrol below is used only in the InstantPopup or DelayedPopup mode */
}
QToolButton:disabled {
background-color: #455364;
color: #9DA9B5;
border-radius: 4px;
padding: 2px;
}
QToolButton:checked {
background-color: #60798B;
border-radius: 4px;
padding: 2px;
outline: none;
}
QToolButton:checked:disabled {
background-color: #60798B;
color: #9DA9B5;
border-radius: 4px;
padding: 2px;
outline: none;
}
QToolButton:checked:hover {
background-color: #54687A;
color: #E0E1E3;
}
QToolButton:checked:pressed {
background-color: #60798B;
}
QToolButton:checked:selected {
background: #60798B;
color: #E0E1E3;
}
QToolButton:hover {
background-color: #54687A;
color: #E0E1E3;
}
QToolButton:pressed {
background-color: #60798B;
}
QToolButton:selected {
background: #60798B;
color: #E0E1E3;
}
QToolButton[popupMode="0"] {
/* Only for DelayedPopup */
padding-right: 2px;
}
QToolButton[popupMode="1"] {
/* Only for MenuButtonPopup */
padding-right: 20px;
}
QToolButton[popupMode="1"]::menu-button {
border: none;
}
QToolButton[popupMode="1"]::menu-button:hover {
border: none;
border-left: 1px solid #455364;
border-radius: 0;
}
QToolButton[popupMode="2"] {
/* Only for InstantPopup */
padding-right: 2px;
}
QToolButton::menu-button {
padding: 2px;
border-radius: 4px;
width: 12px;
border: none;
outline: none;
}
QToolButton::menu-button:hover {
border: 1px solid #346792;
}
QToolButton::menu-button:checked:hover {
border: 1px solid #346792;
}
/* ------------------------------------------------------------------------ */
/* INPUTS - NO FIELDS ----------------------------------------------------- */
/* ------------------------------------------------------------------------ */
/* QComboBox --------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
--------------------------------------------------------------------------- */
QComboBox {
border: 1px solid #455364;
border-radius: 4px;
selection-background-color: #346792;
padding-left: 4px;
padding-right: 4px;
/* padding-right = 36; 4 + 16*2 See scrollbar size */
/* changed to 4px to fix #239 */
/* Fixes #103, #111 */
min-height: 2em;
/* padding-top: 2px; removed to fix #132 */
/* padding-bottom: 2px; removed to fix #132 */
/* min-width: 75px; removed to fix #109 */
/* Needed to remove indicator - fix #132 */
}
QComboBox QAbstractItemView {
border: 1px solid #455364;
border-radius: 0;
background-color: #19232D;
selection-background-color: #346792;
}
QComboBox QAbstractItemView:hover {
background-color: #19232D;
color: #E0E1E3;
}
QComboBox QAbstractItemView:selected {
background: #346792;
color: #455364;
}
QComboBox QAbstractItemView:alternate {
background: #19232D;
}
QComboBox:disabled {
background-color: #19232D;
color: #9DA9B5;
}
QComboBox:hover {
border: 1px solid #346792;
}
QComboBox:focus {
border: 1px solid #1A72BB;
}
QComboBox:on {
selection-background-color: #346792;
}
QComboBox::indicator {
border: none;
border-radius: 0;
background-color: transparent;
selection-background-color: transparent;
color: transparent;
selection-color: transparent;
/* Needed to remove indicator - fix #132 */
}
QComboBox::indicator:alternate {
background: #19232D;
}
QComboBox::item:alternate {
background: #19232D;
}
QComboBox::item:checked {
font-weight: bold;
}
QComboBox::item:selected {
border: 0px solid transparent;
}
QComboBox::drop-down {
subcontrol-origin: padding;
subcontrol-position: top right;
width: 12px;
border-left: 1px solid #455364;
}
/* QLineEdit --------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlineedit
--------------------------------------------------------------------------- */
QLineEdit {
background-color: #19232D;
padding-top: 2px;
/* This QLineEdit fix 103, 111 */
padding-bottom: 2px;
/* This QLineEdit fix 103, 111 */
padding-left: 4px;
padding-right: 4px;
border-style: solid;
border: 1px solid #455364;
border-radius: 4px;
color: #E0E1E3;
}
QLineEdit:disabled {
background-color: #0B1014;
color: #9DA9B5;
}
QLineEdit:hover {
border: 1px solid #346792;
color: #E0E1E3;
}
QLineEdit:focus {
border: 1px solid #1A72BB;
}
QLineEdit:selected {
background-color: #346792;
color: #455364;
}
/* QTabWiget --------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
--------------------------------------------------------------------------- */
QTabWidget {
padding: 2px;
selection-background-color: #455364;
}
QTabWidget QWidget {
/* Fixes #189 */
border-radius: 4px;
}
QTabWidget::pane {
border: 1px solid #455364;
border-radius: 4px;
margin: 0px;
/* Fixes double border inside pane with pyqt5 */
padding: 0px;
}
QTabWidget::pane:selected {
background-color: #455364;
border: 1px solid #346792;
}
/* QTabBar ----------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
--------------------------------------------------------------------------- */
QTabBar, QDockWidget QTabBar {
qproperty-drawBase: 0;
border-radius: 4px;
margin: 0px;
padding: 2px;
border: 0;
/* left: 5px; move to the right by 5px - removed for fix */
}
QTabBar::tab, QDockWidget QTabBar::tab {
/* !selected and disabled ----------------------------------------- */
/* selected ------------------------------------------------------- */
}
QTabBar::tab:top:selected:disabled, QDockWidget QTabBar::tab:top:selected:disabled {
border-bottom: 3px solid #26486B;
color: #9DA9B5;
background-color: #455364;
}
QTabBar::tab:bottom:selected:disabled, QDockWidget QTabBar::tab:bottom:selected:disabled {
border-top: 3px solid #26486B;
color: #9DA9B5;
background-color: #455364;
}
QTabBar::tab:left:selected:disabled, QDockWidget QTabBar::tab:left:selected:disabled {
border-right: 3px solid #26486B;
color: #9DA9B5;
background-color: #455364;
}
QTabBar::tab:right:selected:disabled, QDockWidget QTabBar::tab:right:selected:disabled {
border-left: 3px solid #26486B;
color: #9DA9B5;
background-color: #455364;
}
QTabBar::tab:top:!selected:disabled, QDockWidget QTabBar::tab:top:!selected:disabled {
border-bottom: 3px solid #19232D;
color: #9DA9B5;
background-color: #19232D;
}
QTabBar::tab:bottom:!selected:disabled, QDockWidget QTabBar::tab:bottom:!selected:disabled {
border-top: 3px solid #19232D;
color: #9DA9B5;
background-color: #19232D;
}
QTabBar::tab:left:!selected:disabled, QDockWidget QTabBar::tab:left:!selected:disabled {
border-right: 3px solid #19232D;
color: #9DA9B5;
background-color: #19232D;
}
QTabBar::tab:right:!selected:disabled, QDockWidget QTabBar::tab:right:!selected:disabled {
border-left: 3px solid #19232D;
color: #9DA9B5;
background-color: #19232D;
}
QTabBar::tab:top:!selected, QDockWidget QTabBar::tab:top:!selected {
border-bottom: 2px solid #19232D;
margin-top: 2px;
}
QTabBar::tab:bottom:!selected, QDockWidget QTabBar::tab:bottom:!selected {
border-top: 2px solid #19232D;
margin-bottom: 2px;
}
QTabBar::tab:left:!selected, QDockWidget QTabBar::tab:left:!selected {
border-left: 2px solid #19232D;
margin-right: 2px;
}
QTabBar::tab:right:!selected, QDockWidget QTabBar::tab:right:!selected {
border-right: 2px solid #19232D;
margin-left: 2px;
}
QTabBar::tab:top, QDockWidget QTabBar::tab:top {
background-color: #455364;
margin-left: 2px;
padding-left: 4px;
padding-right: 4px;
padding-top: 2px;
padding-bottom: 2px;
min-width: 5px;
border-bottom: 3px solid #455364;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
QTabBar::tab:top:selected, QDockWidget QTabBar::tab:top:selected {
background-color: #54687A;
border-bottom: 3px solid #259AE9;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
QTabBar::tab:top:!selected:hover, QDockWidget QTabBar::tab:top:!selected:hover {
border: 1px solid #1A72BB;
border-bottom: 3px solid #1A72BB;
/* Fixes spyder-ide/spyder#9766 and #243 */
padding-left: 3px;
padding-right: 3px;
}
QTabBar::tab:bottom, QDockWidget QTabBar::tab:bottom {
border-top: 3px solid #455364;
background-color: #455364;
margin-left: 2px;
padding-left: 4px;
padding-right: 4px;
padding-top: 2px;
padding-bottom: 2px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
min-width: 5px;
}
QTabBar::tab:bottom:selected, QDockWidget QTabBar::tab:bottom:selected {
background-color: #54687A;
border-top: 3px solid #259AE9;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
QTabBar::tab:bottom:!selected:hover, QDockWidget QTabBar::tab:bottom:!selected:hover {
border: 1px solid #1A72BB;
border-top: 3px solid #1A72BB;
/* Fixes spyder-ide/spyder#9766 and #243 */
padding-left: 3px;
padding-right: 3px;
}
QTabBar::tab:left, QDockWidget QTabBar::tab:left {
background-color: #455364;
margin-top: 2px;
padding-left: 2px;
padding-right: 2px;
padding-top: 4px;
padding-bottom: 4px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
min-height: 5px;
}
QTabBar::tab:left:selected, QDockWidget QTabBar::tab:left:selected {
background-color: #54687A;
border-right: 3px solid #259AE9;
}
QTabBar::tab:left:!selected:hover, QDockWidget QTabBar::tab:left:!selected:hover {
border: 1px solid #1A72BB;
border-right: 3px solid #1A72BB;
/* Fixes different behavior #271 */
margin-right: 0px;
padding-right: -1px;
}
QTabBar::tab:right, QDockWidget QTabBar::tab:right {
background-color: #455364;
margin-top: 2px;
padding-left: 2px;
padding-right: 2px;
padding-top: 4px;
padding-bottom: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
min-height: 5px;
}
QTabBar::tab:right:selected, QDockWidget QTabBar::tab:right:selected {
background-color: #54687A;
border-left: 3px solid #259AE9;
}
QTabBar::tab:right:!selected:hover, QDockWidget QTabBar::tab:right:!selected:hover {
border: 1px solid #1A72BB;
border-left: 3px solid #1A72BB;
/* Fixes different behavior #271 */
margin-left: 0px;
padding-left: 0px;
}
QTabBar QToolButton, QDockWidget QTabBar QToolButton {
/* Fixes #136 */
background-color: #455364;
height: 12px;
width: 12px;
}
QTabBar QToolButton:pressed, QDockWidget QTabBar QToolButton:pressed {
background-color: #455364;
}
QTabBar QToolButton:pressed:hover, QDockWidget QTabBar QToolButton:pressed:hover {
border: 1px solid #346792;
}
/* QTreeView QListView QTableView -----------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlistview
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtableview
--------------------------------------------------------------------------- */
QTreeView,
QListView,
QTableView,
QColumnView {
background-color: #19232D;
border: 1px solid #455364;
color: #E0E1E3;
gridline-color: #455364;
border-radius: 4px;
}
QTreeView:disabled,
QListView:disabled,
QTableView:disabled,
QColumnView:disabled {
background-color: #19232D;
color: #9DA9B5;
}
QTreeView:selected,
QListView:selected,
QTableView:selected,
QColumnView:selected {
background-color: #346792;
color: #455364;
}
QTreeView:focus,
QListView:focus,
QTableView:focus,
QColumnView:focus {
border: 1px solid #1A72BB;
}
QTreeView::item:pressed,
QListView::item:pressed,
QTableView::item:pressed,
QColumnView::item:pressed {
background-color: #346792;
}
QTreeView::item:selected:active,
QListView::item:selected:active,
QTableView::item:selected:active,
QColumnView::item:selected:active {
background-color: #346792;
}
QTreeView::item:selected:!active,
QListView::item:selected:!active,
QTableView::item:selected:!active,
QColumnView::item:selected:!active {
color: #E0E1E3;
background-color: #37414F;
}
QTreeView::item:!selected:hover,
QListView::item:!selected:hover,
QTableView::item:!selected:hover,
QColumnView::item:!selected:hover {
outline: 0;
color: #E0E1E3;
background-color: #37414F;
}
QTableCornerButton::section {
background-color: #19232D;
border: 1px transparent #455364;
border-radius: 0px;
}
QHeaderView::section {
background-color: #19232D
}
/* QFrame -----------------------------------------------------------------
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
https://doc.qt.io/qt-5/qframe.html#-prop
https://doc.qt.io/qt-5/qframe.html#details
https://stackoverflow.com/questions/14581498/qt-stylesheet-for-hline-vline-color
--------------------------------------------------------------------------- */
/* (dot) .QFrame fix #141, #126, #123 */
.QFrame {
border-radius: 4px;
border: 1px solid #455364;
/* No frame */
/* HLine */
/* HLine */
}
.QFrame[frameShape="0"] {
border-radius: 4px;
border: 1px transparent #455364;
}
.QFrame[frameShape="4"] {
max-height: 2px;
border: none;
background-color: #455364;
}
.QFrame[frameShape="5"] {
max-width: 2px;
border: none;
background-color: #455364;
}
/* QAbstractView ---------------------------------------------------------- */
QAbstractView:hover {
border: 1px solid #346792;
color: #E0E1E3;
}
QAbstractView:selected {
background: #346792;
color: #455364;
}