Merge pull request #4377 from Morph1984/dark-themes

qt-themes: Add Midnight Blue qdarkstyle theme (2.8.1)
This commit is contained in:
bunnei
2020-07-24 19:23:45 -07:00
committed by GitHub
247 changed files with 2891 additions and 2 deletions

View File

@ -38,7 +38,10 @@ constexpr std::array<std::array<Qt::GlobalColor, 2>, 10> WaitTreeColors{{
bool IsDarkTheme() {
const auto& theme = UISettings::values.theme;
return theme == QStringLiteral("qdarkstyle") || theme == QStringLiteral("colorful_dark");
return theme == QStringLiteral("qdarkstyle") ||
theme == QStringLiteral("qdarkstyle_midnight_blue") ||
theme == QStringLiteral("colorful_dark") ||
theme == QStringLiteral("colorful_midnight_blue");
}
} // namespace

View File

@ -11,6 +11,8 @@ const Themes themes{{
{"Light Colorful", "colorful"},
{"Dark", "qdarkstyle"},
{"Dark Colorful", "colorful_dark"},
{"Midnight Blue", "qdarkstyle_midnight_blue"},
{"Midnight Blue Colorful", "colorful_midnight_blue"},
}};
Values values = {};

View File

@ -24,7 +24,7 @@ struct Shortcut {
ContextualShortcut shortcut;
};
using Themes = std::array<std::pair<const char*, const char*>, 4>;
using Themes = std::array<std::pair<const char*, const char*>, 6>;
extern const Themes themes;
struct GameDir {