aboutsummaryrefslogtreecommitdiff
path: root/src/ui/ui_manager.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-03 23:36:45 +0800
committercrupest <crupest@outlook.com>2020-03-03 23:36:45 +0800
commit0dcf8e686b93cca54a424affe0455d0a97d6c2ef (patch)
tree744897a3b6a29f6142f1943dab5d9957e670919b /src/ui/ui_manager.cpp
parent47053829c322c43032244937cb63f9da178b852d (diff)
downloadcru-0dcf8e686b93cca54a424affe0455d0a97d6c2ef.tar.gz
cru-0dcf8e686b93cca54a424affe0455d0a97d6c2ef.tar.bz2
cru-0dcf8e686b93cca54a424affe0455d0a97d6c2ef.zip
...
Diffstat (limited to 'src/ui/ui_manager.cpp')
-rw-r--r--src/ui/ui_manager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/ui_manager.cpp b/src/ui/ui_manager.cpp
index f71f900f..2a6d6e5b 100644
--- a/src/ui/ui_manager.cpp
+++ b/src/ui/ui_manager.cpp
@@ -32,9 +32,12 @@ UiManager::UiManager() {
theme_resource_.default_font = factory->CreateFont("等线", 24.0f);
- theme_resource_.text_brush = CreateSolidColorBrush(factory, colors::black);
+ const auto black_brush = std::shared_ptr<platform::graph::ISolidColorBrush>(
+ CreateSolidColorBrush(factory, colors::black));
+ theme_resource_.text_brush = black_brush;
theme_resource_.text_selection_brush =
CreateSolidColorBrush(factory, colors::skyblue);
+ theme_resource_.caret_brush = black_brush;
theme_resource_.button_style.normal.border_brush =
CreateSolidColorBrush(factory, Color::FromHex(0x00bfff));