From 9a22b6dced0e6ca9746269db5389fa8bff534ac2 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Wed, 22 Jan 2020 21:12:45 +0100 Subject: GUI: fix minor issues with dark themes GUI: rename and reorder themes --- dist/qt_themes/qdarkstyle/style.qss | 33 +++++++++++++++++---------------- 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..564e13e78 100644 --- a/dist/qt_themes/qdarkstyle/style.qss +++ b/dist/qt_themes/qdarkstyle/style.qss @@ -181,7 +181,7 @@ QMenu::icon { } QMenu::item { - padding: 5px 30px 5px 30px; + padding: 5px 16px 5px 40px; border: 1px solid transparent; /* reserve space for selection border */ } @@ -192,12 +192,13 @@ QMenu::item:selected { QMenu::separator { height: 2px; - background: lightblue; + background: #76797C; margin-left: 10px; margin-right: 5px; } QMenu::indicator { + margin: 0 -26px 0 8px; width: 18px; height: 18px; } @@ -252,7 +253,7 @@ QWidget:disabled { } QAbstractItemView { - alternate-background-color: #31363b; + alternate-background-color: #2c2f32; color: #eff0f1; border: 1px solid #3A3939; border-radius: 2px; @@ -577,8 +578,6 @@ QTreeView:hover { } QComboBox:on { - padding-top: 3px; - padding-left: 4px; selection-background-color: #4a4a4a; } @@ -703,10 +702,10 @@ QTabBar::close-button:pressed { QTabBar::tab:top { color: #eff0f1; border: 1px solid #76797C; - border-bottom: 1px transparent black; + border-bottom: 2px transparent; background-color: #31363b; - padding: 5px; - min-width: 50px; + padding: 4px 16px 2px; + min-width: 38px; border-top-left-radius: 2px; border-top-right-radius: 2px; } @@ -1078,7 +1077,7 @@ QListView::item:selected:active { } QHeaderView { - background-color: #31363b; + background-color: #403F3F; border: 1px transparent; border-radius: 0px; margin: 0px; @@ -1086,30 +1085,32 @@ QHeaderView { } QHeaderView::section { - background-color: #31363b; + background-color: #232629; color: #eff0f1; - padding: 5px; - border: 1px solid #76797C; + padding: 0 5px; + border: 1px solid #403F3F; + border-bottom: 0; border-radius: 0px; text-align: center; } QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one { - border-top: 1px solid #76797C; + border-top: 1px solid #31363b; } QHeaderView::section::vertical { border-top: transparent; } +QHeaderView::section::horizontal, QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one { - border-left: 1px solid #76797C; + border-left: transparent; } -QHeaderView::section::horizontal { - border-left: transparent; +QHeaderView::section::horizontal::last { + border-right: transparent; } 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 @@ namespace UISettings { const Themes themes{{ - {"Default", "default"}, + {"Light", "default"}, + {"Light Colorful", "colorful"}, {"Dark", "qdarkstyle"}, - {"Colorful", "colorful"}, - {"Colorful Dark", "colorful_dark"}, + {"Dark Colorful", "colorful_dark"}, }}; Values values = {}; -- cgit v1.2.3 From c7055f3670f48b82e01d11b9ea2abf0117c3dfba Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Wed, 22 Jan 2020 22:36:42 +0100 Subject: fix qss stylesheet whitespaces --- dist/qt_themes/qdarkstyle/style.qss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/qt_themes/qdarkstyle/style.qss b/dist/qt_themes/qdarkstyle/style.qss index 564e13e78..a3983b27e 100644 --- a/dist/qt_themes/qdarkstyle/style.qss +++ b/dist/qt_themes/qdarkstyle/style.qss @@ -198,7 +198,7 @@ QMenu::separator { } QMenu::indicator { - margin: 0 -26px 0 8px; + margin: 0 -26px 0 8px; width: 18px; height: 18px; } @@ -1089,7 +1089,7 @@ QHeaderView::section { color: #eff0f1; padding: 0 5px; border: 1px solid #403F3F; - border-bottom: 0; + border-bottom: 0; border-radius: 0px; text-align: center; } @@ -1110,7 +1110,7 @@ QHeaderView::section::horizontal::only-one { } QHeaderView::section::horizontal::last { - border-right: transparent; + border-right: transparent; } QHeaderView::section:checked { -- cgit v1.2.3