From e6380ecf77f47cf8cbde86d06ebf8175fa893781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 10 Jan 2023 15:36:32 +0100 Subject: [PATCH] Add new "Dark" theme --- UI/Theme.cpp | 3 +-- assets/themes/defaultthemes.ini | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/UI/Theme.cpp b/UI/Theme.cpp index 464c4ab2db..5adf6ff0ca 100644 --- a/UI/Theme.cpp +++ b/UI/Theme.cpp @@ -108,13 +108,12 @@ static void LoadThemeInfo(const std::vector &directories) { if (ini.LoadFromVFS(name.ToString()) || ini.Load(fileInfo[f].fullName)) { success = true; - // vsh load. meh. } if (!success) continue; - // Alright, let's loop through the sections and see if any is a themes. + // Alright, let's loop through the sections and see if any is a theme. for (size_t i = 0; i < ini.Sections().size(); i++) { Section §ion = ini.Sections()[i]; ThemeInfo info; diff --git a/assets/themes/defaultthemes.ini b/assets/themes/defaultthemes.ini index a9a4313e71..4b6f353367 100644 --- a/assets/themes/defaultthemes.ini +++ b/assets/themes/defaultthemes.ini @@ -19,4 +19,23 @@ UIAtlas = "../ui_atlas" # Colors are either in the format "#RGBA" or 0xABGR (e.g. green is "#00FF00FF" or 0xFF00FF00) # Atlas should be in the format path/to/filename where both filename.zim and filename.meta are -# Unprovided entry will use the default value \ No newline at end of file +# Unprovided entry will use the default value + +[Dark] +Name = "Dark" +ItemStyleFg = "#FFFFFFFF" +ItemStyleBg = "#13405255" +ItemFocusedStyleFg = "#FFFFFFFF" +ItemFocusedStyleBg = "#3799bdFF" +ItemDownStyleFg = "#FFFFFFFF" +ItemDownStyleBg = "#2b7b99FF" +ItemDisabledStyleFg = "#EEEEEE80" +ItemDisabledStyleBg = "#1b1c1c55" +HeaderStyleFg = "#FFFFFFFF" +InfoStyleFg = "#FFFFFFFF" +InfoStyleBg = "#00000000" +PopupTitleStyleFg = "#59BEE3FF" +PopupStyleFg = "#FFFFFFFF" +PopupStyleBg = "#303030FF" +BackgroundColor = "#000000FF" +UIAtlas = "../ui_atlas"