aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/ThemeManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/ThemeManager.hpp')
-rw-r--r--include/cru/ui/ThemeManager.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/cru/ui/ThemeManager.hpp b/include/cru/ui/ThemeManager.hpp
index 1da29a0e..9908658c 100644
--- a/include/cru/ui/ThemeManager.hpp
+++ b/include/cru/ui/ThemeManager.hpp
@@ -35,7 +35,7 @@ class ThemeManager : public Object {
}
gsl::not_null<std::shared_ptr<platform::graphics::IBrush>> GetBrush(
- std::u16string key);
+ StringView key);
private:
void Init();
@@ -43,8 +43,7 @@ class ThemeManager : public Object {
private:
Event<std::nullptr_t> theme_resource_change_event_;
boost::property_tree::ptree theme_tree_;
- std::unordered_map<std::u16string,
- std::shared_ptr<platform::graphics::IBrush>>
+ std::unordered_map<String, std::shared_ptr<platform::graphics::IBrush>>
brushes_;
};
} // namespace cru::ui