aboutsummaryrefslogtreecommitdiff
path: root/src/ui/UiManager.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-18 21:09:21 +0800
committercrupest <crupest@outlook.com>2020-10-18 21:09:21 +0800
commit5729a5aa1b443e3e25f3e14dee29636d3b31a6f8 (patch)
tree264efb8b0abdbbe1bcff813d9f10288f78cab905 /src/ui/UiManager.cpp
parent58af3c346e7dd72be077bf5231bb7bf193591288 (diff)
downloadcru-5729a5aa1b443e3e25f3e14dee29636d3b31a6f8.tar.gz
cru-5729a5aa1b443e3e25f3e14dee29636d3b31a6f8.tar.bz2
cru-5729a5aa1b443e3e25f3e14dee29636d3b31a6f8.zip
...
Diffstat (limited to 'src/ui/UiManager.cpp')
-rw-r--r--src/ui/UiManager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/UiManager.cpp b/src/ui/UiManager.cpp
index 4cd38efa..8a2029b9 100644
--- a/src/ui/UiManager.cpp
+++ b/src/ui/UiManager.cpp
@@ -30,7 +30,10 @@ UiManager* UiManager::GetInstance() {
UiManager::UiManager() {
const auto factory = GetGraphFactory();
- theme_resource_.default_font = factory->CreateFont(u"等线", 24.0f);
+ theme_resource_.default_font_family = u"等线";
+
+ theme_resource_.default_font =
+ factory->CreateFont(theme_resource_.default_font_family, 24.0f);
const auto black_brush = std::shared_ptr<platform::graph::ISolidColorBrush>(
CreateSolidColorBrush(factory, colors::black));