提交 e284289c 编写于 作者: C Clayton Groeneveld 提交者: jp9000

UI: Improve look of Dark theme

上级 4b6a1bf9
...@@ -119,12 +119,7 @@ QListWidget QLineEdit { ...@@ -119,12 +119,7 @@ QListWidget QLineEdit {
QDockWidget::title { QDockWidget::title {
text-align: center; text-align: center;
background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, background-color: rgb(70,69,70);
stop: 0 rgb(86,85,86),
stop: 0.1 rgb(82,81,82),
stop: 0.5 rgb(78,77,78),
stop: 0.9 rgb(74,73,74),
stop: 1 rgb(70,69,70));
} }
QDockWidget::close-button, QDockWidget::float-button { QDockWidget::close-button, QDockWidget::float-button {
...@@ -158,21 +153,18 @@ QGroupBox { ...@@ -158,21 +153,18 @@ QGroupBox {
} }
QScrollBar:vertical { QScrollBar:vertical {
background-color: rgb(58,57,58); /* dark */ background-color: rgb(58,57,58);
width: 14px; width: 14px;
margin: 0px; margin: 0px;
} }
QScrollBar::handle:vertical { QScrollBar::handle:vertical {
background-color: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 0, background-color: rgb(76,76,76);
stop: 0 rgb(122,121,122), /* light */
stop: 0.25 rgb(100, 99, 100),
stop: 1 rgb(88,87,88)); /* kindaDark */
min-height: 20px; min-height: 20px;
margin: 2px; margin: 2px;
border-radius: 5px; border-radius: 5px;
border-width: 1px; border-width: 1px;
border: 1px solid rgb(31,30,31); /* veryDark */ border: 1px solid rgb(76,76,76);
} }
QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
...@@ -194,15 +186,12 @@ QScrollBar:horizontal { ...@@ -194,15 +186,12 @@ QScrollBar:horizontal {
} }
QScrollBar::handle:horizontal { QScrollBar::handle:horizontal {
background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, background-color: rgb(76,76,76);
stop: 0 rgb(122,121,122), /* light */
stop: 0.25 rgb(100, 99, 100),
stop: 1 rgb(88,87,88)); /* kindaDark */
min-width: 20px; min-width: 20px;
margin: 2px; margin: 2px;
border-radius: 5px; border-radius: 5px;
border-width: 1px; border-width: 1px;
border: 1px solid rgb(31,30,31); /* veryDark */ border: 1px solid rgb(76,76,76);
} }
QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal { QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal {
...@@ -271,11 +260,11 @@ QTabWidget::pane { /* The tab widget frame */ ...@@ -271,11 +260,11 @@ QTabWidget::pane { /* The tab widget frame */
} }
QTabWidget::tab-bar { QTabWidget::tab-bar {
alignment: center; alignment: left;
} }
QTabBar::tab { QTabBar::tab {
background-color: rgb(88,87,88); /* kindaDark */ background-color: rgb(76,76,76);
border: none; border: none;
padding: 5px; padding: 5px;
min-width: 50px; min-width: 50px;
...@@ -284,16 +273,16 @@ QTabBar::tab { ...@@ -284,16 +273,16 @@ QTabBar::tab {
QTabBar::tab:top { QTabBar::tab:top {
border-bottom: 1px transparent; border-bottom: 1px transparent;
border-top-left-radius: 5px; border-top-left-radius: 3px;
border-top-right-radius: 5px; border-top-right-radius: 3px;
} }
QTabBar::tab:bottom { QTabBar::tab:bottom {
padding-top: 1px; padding-top: 1px;
margin-bottom: 4px; margin-bottom: 4px;
border-bottom-left-radius: 5px; border-bottom-left-radius: 3px;
border-bottom-right-radius: 5px; border-bottom-right-radius: 3px;
height: 14px; height: 14px;
} }
...@@ -313,25 +302,17 @@ QTabBar::tab:pressed { ...@@ -313,25 +302,17 @@ QTabBar::tab:pressed {
/* ComboBox */ /* ComboBox */
QComboBox { QComboBox {
background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, background-color: rgb(76,76,76);
stop: 0 rgb(86,85,86),
stop: 0.1 rgb(82,81,82),
stop: 0.5 rgb(78,77,78),
stop: 0.9 rgb(74,73,74),
stop: 1 rgb(70,69,70));
border-style: solid; border-style: solid;
border: 1px; border: 1px;
border-radius: 3px; border-radius: 3px;
border-color: rgb(31,30,31); /* veryDark */ border-color: rgb(76,76,76); /* veryDark */
padding: 2px; padding: 2px;
padding-left: 10px; padding-left: 10px;
} }
QComboBox:hover { QComboBox:hover {
background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, background-color: rgb(88,87,88);
stop: 0 rgb(111, 110, 101),
stop: 0.25 rgb(100, 99, 100),
stop: 1 rgb(88,87,88));
} }
QComboBox::drop-down { QComboBox::drop-down {
...@@ -395,7 +376,7 @@ QSpinBox::up-button, QDoubleSpinBox::up-button { ...@@ -395,7 +376,7 @@ QSpinBox::up-button, QDoubleSpinBox::up-button {
subcontrol-origin: margin; subcontrol-origin: margin;
subcontrol-position: top right; /* position at the top right corner */ subcontrol-position: top right; /* position at the top right corner */
background-color: rgb(88,87,88); /* kindaDark */ background-color: rgb(76,76,76);
border: 1px solid rgb(31,30,31); /* veryDark */ border: 1px solid rgb(31,30,31); /* veryDark */
border-radius: 3px; border-radius: 3px;
border-width: 0; border-width: 0;
...@@ -407,7 +388,7 @@ QSpinBox::up-button, QDoubleSpinBox::up-button { ...@@ -407,7 +388,7 @@ QSpinBox::up-button, QDoubleSpinBox::up-button {
QSpinBox::down-button, QDoubleSpinBox::down-button { QSpinBox::down-button, QDoubleSpinBox::down-button {
subcontrol-origin: margin; subcontrol-origin: margin;
subcontrol-position: bottom right; /* position at the top right corner */ subcontrol-position: bottom right; /* position at the top right corner */
background-color: rgb(88,87,88); /* kindaDark */ background-color: rgb(76,76,76);
border: 1px solid rgb(31,30,31); /* veryDark */ border: 1px solid rgb(31,30,31); /* veryDark */
border-radius: 3px; border-radius: 3px;
border-width: 0; border-width: 0;
...@@ -447,7 +428,7 @@ QSpinBox::down-arrow, QDoubleSpinBox::down-arrow { ...@@ -447,7 +428,7 @@ QSpinBox::down-arrow, QDoubleSpinBox::down-arrow {
QPushButton { QPushButton {
color: rgb(225,224,225); /* veryLight */ color: rgb(225,224,225); /* veryLight */
background-color: rgb(88,87,88); /* kindaDark */ background-color: rgb(76,76,76);
border: none; border: none;
border-radius: 3px; border-radius: 3px;
padding: 4px; padding: 4px;
...@@ -485,20 +466,15 @@ QPushButton[themeID="hotkeyButtons"] { ...@@ -485,20 +466,15 @@ QPushButton[themeID="hotkeyButtons"] {
/* Sliders */ /* Sliders */
QSlider::groove:horizontal { QSlider::groove:horizontal {
background-color: QLinearGradient(x1: 0, y1: 1, x2: 0, y2: 0, background-color: rgb(76,76,76);
stop: 0 rgb(50, 49, 50), /* dark */
stop: 0.75 rgb(88,87,88)); /* kindaDark */
height: 4px; height: 4px;
border: none; border: none;
border-radius: 2px; border-radius: 2px;
} }
QSlider::handle:horizontal { QSlider::handle:horizontal {
background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, background-color: #d2d2d2;
stop: 0 rgb(240,239,240), /* lighter */ border: 1px solid rgb(58,57,58);
stop: 0.25 rgb(200,199,200),
stop: 1 rgb(162,161,162)); /* light */
border: 1px solid rgb(58,57,58); /* dark */
border-radius: 3px; border-radius: 3px;
height: 10px; height: 10px;
width: 18px; width: 18px;
...@@ -506,10 +482,7 @@ QSlider::handle:horizontal { ...@@ -506,10 +482,7 @@ QSlider::handle:horizontal {
} }
QSlider::handle:horizontal:pressed { QSlider::handle:horizontal:pressed {
background-color: QLinearGradient(x1: 0, y1: 1, x2: 0, y2: 0, background-color: #d2d2d2;
stop: 0 rgb(240,239,240), /* lighter */
stop: 0.25 rgb(200,199,200),
stop: 1 rgb(162,161,162)); /* light */
} }
QSlider::sub-page:horizontal { QSlider::sub-page:horizontal {
...@@ -518,27 +491,20 @@ QSlider::sub-page:horizontal { ...@@ -518,27 +491,20 @@ QSlider::sub-page:horizontal {
} }
QSlider::sub-page:horizontal:disabled { QSlider::sub-page:horizontal:disabled {
background-color: QLinearGradient(x1: 0, y1: 1, x2: 0, y2: 0, background-color: rgb(50, 49, 50); /* dark */
stop: 0 rgb(31,30,31), /* veryDark */
stop: 0.75 rgb(50, 49, 50)); /* dark */
border-radius: 2px; border-radius: 2px;
} }
QSlider::groove:vertical { QSlider::groove:vertical {
background-color: QLinearGradient(x1: 1, y1: 0, x2: 0, y2: 0, background-color: rgb(76,76,76);
stop: 0 rgb(50, 49, 50), /* dark */
stop: 0.75 rgb(88,87,88)); /* kindaDark */
width: 4px; width: 4px;
border: none; border: none;
border-radius: 2px; border-radius: 2px;
} }
QSlider::handle:vertical { QSlider::handle:vertical {
background-color: QLinearGradient(x1: 1, y1: 0, x2: 0, y2: 0, background-color: #d2d2d2;
stop: 0 rgb(240,239,240), /* lighter */ border: 1px solid rgb(58,57,58);
stop: 0.25 rgb(200,199,200),
stop: 1 rgb(162,161,162)); /* light */
border: 1px solid rgb(58,57,58); /* dark */
border-radius: 3px; border-radius: 3px;
width: 10px; width: 10px;
height: 18px; height: 18px;
...@@ -546,10 +512,7 @@ QSlider::handle:vertical { ...@@ -546,10 +512,7 @@ QSlider::handle:vertical {
} }
QSlider::handle:vertical:pressed { QSlider::handle:vertical:pressed {
background-color: QLinearGradient(x1: 1, y1: 0, x2: 0, y2: 0, background-color: #d2d2d2;
stop: 0 rgb(240,239,240), /* lighter */
stop: 0.25 rgb(200,199,200),
stop: 1 rgb(162,161,162)); /* light */
} }
QSlider::add-page:vertical { QSlider::add-page:vertical {
...@@ -558,9 +521,7 @@ QSlider::add-page:vertical { ...@@ -558,9 +521,7 @@ QSlider::add-page:vertical {
} }
QSlider::add-page:vertical:disabled { QSlider::add-page:vertical:disabled {
background-color: QLinearGradient(x1: 1, y1: 0, x2: 0, y2: 0, background-color: rgb(50, 49, 50); /* dark */
stop: 0 rgb(31,30,31), /* veryDark */
stop: 0.75 rgb(50, 49, 50)); /* dark */
border-radius: 2px; border-radius: 2px;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册