From 0dcf8e686b93cca54a424affe0455d0a97d6c2ef Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 3 Mar 2020 23:36:45 +0800 Subject: ... --- src/ui/ui_manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ui/ui_manager.cpp') 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( + 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)); -- cgit v1.2.3