From 5da4f511e85de9e79bee40e3c5e04f899a48723c Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 19 Mar 2020 19:11:33 +0800 Subject: ... --- src/ui/ui_manager.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/ui/ui_manager.cpp') diff --git a/src/ui/ui_manager.cpp b/src/ui/ui_manager.cpp index 5c7e4577..905d29ad 100644 --- a/src/ui/ui_manager.cpp +++ b/src/ui/ui_manager.cpp @@ -59,6 +59,22 @@ UiManager::UiManager() { theme_resource_.button_style.press.border_radius = theme_resource_.button_style.press_cancel.border_radius = CornerRadius({5, 5}); + + theme_resource_.text_box_border_style.normal.border_brush = + CreateSolidColorBrush(factory, Color::FromHex(0xced4da)); + theme_resource_.text_box_border_style.normal.border_radius = CornerRadius(5); + theme_resource_.text_box_border_style.normal.border_thickness = Thickness(1); + + theme_resource_.text_box_border_style.hover = + theme_resource_.text_box_border_style.normal; + + theme_resource_.text_box_border_style.normal.border_brush = + CreateSolidColorBrush(factory, Color::FromHex(0x495057)); + theme_resource_.text_box_border_style.normal.border_radius = CornerRadius(5); + theme_resource_.text_box_border_style.normal.border_thickness = Thickness(1); + + theme_resource_.text_box_border_style.focus_hover = + theme_resource_.text_box_border_style.focus; } UiManager::~UiManager() = default; -- cgit v1.2.3