diff options
author | crupest <crupest@outlook.com> | 2020-03-19 19:11:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-19 19:11:33 +0800 |
commit | 5da4f511e85de9e79bee40e3c5e04f899a48723c (patch) | |
tree | 8c07925417fc1f062bb6f4ec64dc9226199e6099 /src/ui/ui_manager.cpp | |
parent | ad29543fe081d2a0a5e6737f9073399e4e91383f (diff) | |
download | cru-5da4f511e85de9e79bee40e3c5e04f899a48723c.tar.gz cru-5da4f511e85de9e79bee40e3c5e04f899a48723c.tar.bz2 cru-5da4f511e85de9e79bee40e3c5e04f899a48723c.zip |
...
Diffstat (limited to 'src/ui/ui_manager.cpp')
-rw-r--r-- | src/ui/ui_manager.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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; |