From 63b4956c3a802ee1c0fd92d1ce56e9330b6de4d2 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 14 Nov 2021 22:44:59 +0800 Subject: ... --- src/ui/ThemeManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui/ThemeManager.cpp') diff --git a/src/ui/ThemeManager.cpp b/src/ui/ThemeManager.cpp index 4a0e08a5..a5280d40 100644 --- a/src/ui/ThemeManager.cpp +++ b/src/ui/ThemeManager.cpp @@ -36,15 +36,15 @@ void ThemeManager::Init() { } gsl::not_null> -ThemeManager::GetBrush(std::u16string key) { - std::u16string k = ToLower(key); +ThemeManager::GetBrush(StringView key) { + String k = ToLower(key); auto cached_brush_iter = brushes_.find(k); if (cached_brush_iter != brushes_.cend()) { return cached_brush_iter->second; } auto color_string = - String::FromUtf8(theme_tree_.get(ToUtf8(key))); + String::FromUtf8(theme_tree_.get(key.ToUtf8())); auto color = Color::Parse(color_string); if (!color) throw BadThemeResourceException("Value is not a valid color."); std::shared_ptr brush = -- cgit v1.2.3