aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-05-10 22:32:07 +0800
committercrupest <crupest@outlook.com>2021-05-10 22:32:07 +0800
commit358bfe253232aa4c435cb6724d49a47aefdedda5 (patch)
treeef06333f3fadbb25c66767889d09848ddbeb50d9 /src
parent704289ff1f487989138e85ebe8a77e92cdf30e14 (diff)
downloadcru-358bfe253232aa4c435cb6724d49a47aefdedda5.tar.gz
cru-358bfe253232aa4c435cb6724d49a47aefdedda5.tar.bz2
cru-358bfe253232aa4c435cb6724d49a47aefdedda5.zip
..
Diffstat (limited to 'src')
-rw-r--r--src/ui/ThemeManager.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/ui/ThemeManager.cpp b/src/ui/ThemeManager.cpp
index 9311a3df..be986bb5 100644
--- a/src/ui/ThemeManager.cpp
+++ b/src/ui/ThemeManager.cpp
@@ -17,22 +17,22 @@ ThemeManager::ThemeManager() { Init(); }
void ThemeManager::Init() {
theme_tree_.put("scrollbar.collapse-thumb.color",
colors::gray.WithAlpha(128).ToUtf8String());
- theme_tree_.put("scrollbar.arrow.normal.color", "black");
- theme_tree_.put("scrollbar.arrow.hover.color", "black");
- theme_tree_.put("scrollbar.arrow.press.color", "black");
- theme_tree_.put("scrollbar.arrow.disable.color", "black");
- theme_tree_.put("scrollbar.arrow-background.normal.color", "seashell");
- theme_tree_.put("scrollbar.arrow-background.hover.color", "seashell");
- theme_tree_.put("scrollbar.arrow-background.press.color", "seashell");
- theme_tree_.put("scrollbar.arrow-background.disable.color", "seashell");
- theme_tree_.put("scrollbar.slot.normal.color", "seashell");
- theme_tree_.put("scrollbar.slot.hover.color", "seashell");
- theme_tree_.put("scrollbar.slot.press.color", "seashell");
- theme_tree_.put("scrollbar.slot.disable.color", "seashell");
- theme_tree_.put("scrollbar.thumb.normal.color", "gray");
- theme_tree_.put("scrollbar.thumb.hover.color", "gray");
- theme_tree_.put("scrollbar.thumb.press.color", "gray");
- theme_tree_.put("scrollbar.thumb.disable.color", "gray");
+ theme_tree_.put("scrollbar.arrow.normal.color", "#505050");
+ theme_tree_.put("scrollbar.arrow.hover.color", "#505050");
+ theme_tree_.put("scrollbar.arrow.press.color", "#ffffff");
+ theme_tree_.put("scrollbar.arrow.disable.color", "#a3a3a3");
+ theme_tree_.put("scrollbar.arrow-background.normal.color", "#f1f1f1");
+ theme_tree_.put("scrollbar.arrow-background.hover.color", "#d2d2d2");
+ theme_tree_.put("scrollbar.arrow-background.press.color", "#787878");
+ theme_tree_.put("scrollbar.arrow-background.disable.color", "#f1f1f1");
+ theme_tree_.put("scrollbar.slot.normal.color", "#f1f1f1");
+ theme_tree_.put("scrollbar.slot.hover.color", "#f1f1f1");
+ theme_tree_.put("scrollbar.slot.press.color", "#f1f1f1");
+ theme_tree_.put("scrollbar.slot.disable.color", "#f1f1f1");
+ theme_tree_.put("scrollbar.thumb.normal.color", "#c1c1c1");
+ theme_tree_.put("scrollbar.thumb.hover.color", "#a8a8a8");
+ theme_tree_.put("scrollbar.thumb.press.color", "#787878");
+ theme_tree_.put("scrollbar.thumb.disable.color", "#c1c1c1");
}
gsl::not_null<std::shared_ptr<platform::graphics::IBrush>>
@@ -43,7 +43,7 @@ ThemeManager::GetBrush(std::u16string key) {
return cached_brush_iter->second;
}
- auto color_string = ToUtf16(theme_tree_.get_value<std::string>(ToUtf8(key)));
+ auto color_string = ToUtf16(theme_tree_.get<std::string>(ToUtf8(key)));
auto color = Color::Parse(color_string);
if (!color) throw BadThemeResourceException("Value is not a valid color.");
std::shared_ptr<platform::graphics::IBrush> brush =