diff options
| author | 2020-01-22 18:39:21 -0500 | |
|---|---|---|
| committer | 2020-01-22 18:39:21 -0500 | |
| commit | d8e0d839bd9c958233e6c57ff7e35b783daaf2d5 (patch) | |
| tree | 696731d9e95c6aa6bd05ef98cd95be5c9e81d61f | |
| parent | Merge pull request #3330 from ReinUsesLisp/vk-blit-screen (diff) | |
| parent | fix qss stylesheet whitespaces (diff) | |
| download | yuzu-d8e0d839bd9c958233e6c57ff7e35b783daaf2d5.tar.gz yuzu-d8e0d839bd9c958233e6c57ff7e35b783daaf2d5.tar.xz yuzu-d8e0d839bd9c958233e6c57ff7e35b783daaf2d5.zip | |
Merge pull request #3339 from Simek/dark-theme-update
GUI: fix minor issues with dark themes + rename and reorder themes
Diffstat (limited to '')
| -rw-r--r-- | dist/qt_themes/qdarkstyle/style.qss | 33 | ||||
| -rw-r--r-- | src/yuzu/uisettings.cpp | 6 |
2 files changed, 20 insertions, 19 deletions
diff --git a/dist/qt_themes/qdarkstyle/style.qss b/dist/qt_themes/qdarkstyle/style.qss index 399c38dce..a3983b27e 100644 --- a/dist/qt_themes/qdarkstyle/style.qss +++ b/dist/qt_themes/qdarkstyle/style.qss | |||
| @@ -181,7 +181,7 @@ QMenu::icon { | |||
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | QMenu::item { | 183 | QMenu::item { |
| 184 | padding: 5px 30px 5px 30px; | 184 | padding: 5px 16px 5px 40px; |
| 185 | border: 1px solid transparent; | 185 | border: 1px solid transparent; |
| 186 | /* reserve space for selection border */ | 186 | /* reserve space for selection border */ |
| 187 | } | 187 | } |
| @@ -192,12 +192,13 @@ QMenu::item:selected { | |||
| 192 | 192 | ||
| 193 | QMenu::separator { | 193 | QMenu::separator { |
| 194 | height: 2px; | 194 | height: 2px; |
| 195 | background: lightblue; | 195 | background: #76797C; |
| 196 | margin-left: 10px; | 196 | margin-left: 10px; |
| 197 | margin-right: 5px; | 197 | margin-right: 5px; |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | QMenu::indicator { | 200 | QMenu::indicator { |
| 201 | margin: 0 -26px 0 8px; | ||
| 201 | width: 18px; | 202 | width: 18px; |
| 202 | height: 18px; | 203 | height: 18px; |
| 203 | } | 204 | } |
| @@ -252,7 +253,7 @@ QWidget:disabled { | |||
| 252 | } | 253 | } |
| 253 | 254 | ||
| 254 | QAbstractItemView { | 255 | QAbstractItemView { |
| 255 | alternate-background-color: #31363b; | 256 | alternate-background-color: #2c2f32; |
| 256 | color: #eff0f1; | 257 | color: #eff0f1; |
| 257 | border: 1px solid #3A3939; | 258 | border: 1px solid #3A3939; |
| 258 | border-radius: 2px; | 259 | border-radius: 2px; |
| @@ -577,8 +578,6 @@ QTreeView:hover { | |||
| 577 | } | 578 | } |
| 578 | 579 | ||
| 579 | QComboBox:on { | 580 | QComboBox:on { |
| 580 | padding-top: 3px; | ||
| 581 | padding-left: 4px; | ||
| 582 | selection-background-color: #4a4a4a; | 581 | selection-background-color: #4a4a4a; |
| 583 | } | 582 | } |
| 584 | 583 | ||
| @@ -703,10 +702,10 @@ QTabBar::close-button:pressed { | |||
| 703 | QTabBar::tab:top { | 702 | QTabBar::tab:top { |
| 704 | color: #eff0f1; | 703 | color: #eff0f1; |
| 705 | border: 1px solid #76797C; | 704 | border: 1px solid #76797C; |
| 706 | border-bottom: 1px transparent black; | 705 | border-bottom: 2px transparent; |
| 707 | background-color: #31363b; | 706 | background-color: #31363b; |
| 708 | padding: 5px; | 707 | padding: 4px 16px 2px; |
| 709 | min-width: 50px; | 708 | min-width: 38px; |
| 710 | border-top-left-radius: 2px; | 709 | border-top-left-radius: 2px; |
| 711 | border-top-right-radius: 2px; | 710 | border-top-right-radius: 2px; |
| 712 | } | 711 | } |
| @@ -1078,7 +1077,7 @@ QListView::item:selected:active { | |||
| 1078 | } | 1077 | } |
| 1079 | 1078 | ||
| 1080 | QHeaderView { | 1079 | QHeaderView { |
| 1081 | background-color: #31363b; | 1080 | background-color: #403F3F; |
| 1082 | border: 1px transparent; | 1081 | border: 1px transparent; |
| 1083 | border-radius: 0px; | 1082 | border-radius: 0px; |
| 1084 | margin: 0px; | 1083 | margin: 0px; |
| @@ -1086,30 +1085,32 @@ QHeaderView { | |||
| 1086 | } | 1085 | } |
| 1087 | 1086 | ||
| 1088 | QHeaderView::section { | 1087 | QHeaderView::section { |
| 1089 | background-color: #31363b; | 1088 | background-color: #232629; |
| 1090 | color: #eff0f1; | 1089 | color: #eff0f1; |
| 1091 | padding: 5px; | 1090 | padding: 0 5px; |
| 1092 | border: 1px solid #76797C; | 1091 | border: 1px solid #403F3F; |
| 1092 | border-bottom: 0; | ||
| 1093 | border-radius: 0px; | 1093 | border-radius: 0px; |
| 1094 | text-align: center; | 1094 | text-align: center; |
| 1095 | } | 1095 | } |
| 1096 | 1096 | ||
| 1097 | QHeaderView::section::vertical::first, | 1097 | QHeaderView::section::vertical::first, |
| 1098 | QHeaderView::section::vertical::only-one { | 1098 | QHeaderView::section::vertical::only-one { |
| 1099 | border-top: 1px solid #76797C; | 1099 | border-top: 1px solid #31363b; |
| 1100 | } | 1100 | } |
| 1101 | 1101 | ||
| 1102 | QHeaderView::section::vertical { | 1102 | QHeaderView::section::vertical { |
| 1103 | border-top: transparent; | 1103 | border-top: transparent; |
| 1104 | } | 1104 | } |
| 1105 | 1105 | ||
| 1106 | QHeaderView::section::horizontal, | ||
| 1106 | QHeaderView::section::horizontal::first, | 1107 | QHeaderView::section::horizontal::first, |
| 1107 | QHeaderView::section::horizontal::only-one { | 1108 | QHeaderView::section::horizontal::only-one { |
| 1108 | border-left: 1px solid #76797C; | 1109 | border-left: transparent; |
| 1109 | } | 1110 | } |
| 1110 | 1111 | ||
| 1111 | QHeaderView::section::horizontal { | 1112 | QHeaderView::section::horizontal::last { |
| 1112 | border-left: transparent; | 1113 | border-right: transparent; |
| 1113 | } | 1114 | } |
| 1114 | 1115 | ||
| 1115 | QHeaderView::section:checked { | 1116 | QHeaderView::section:checked { |
diff --git a/src/yuzu/uisettings.cpp b/src/yuzu/uisettings.cpp index 43bad9678..738c4b2fc 100644 --- a/src/yuzu/uisettings.cpp +++ b/src/yuzu/uisettings.cpp | |||
| @@ -7,10 +7,10 @@ | |||
| 7 | namespace UISettings { | 7 | namespace UISettings { |
| 8 | 8 | ||
| 9 | const Themes themes{{ | 9 | const Themes themes{{ |
| 10 | {"Default", "default"}, | 10 | {"Light", "default"}, |
| 11 | {"Light Colorful", "colorful"}, | ||
| 11 | {"Dark", "qdarkstyle"}, | 12 | {"Dark", "qdarkstyle"}, |
| 12 | {"Colorful", "colorful"}, | 13 | {"Dark Colorful", "colorful_dark"}, |
| 13 | {"Colorful Dark", "colorful_dark"}, | ||
| 14 | }}; | 14 | }}; |
| 15 | 15 | ||
| 16 | Values values = {}; | 16 | Values values = {}; |