diff options
author | 杨宇千 <crupest@outlook.com> | 2019-09-17 16:40:12 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-09-17 16:40:12 +0800 |
commit | bea876a3b1a241e6127c06a14684a6dc9fcc9516 (patch) | |
tree | d06e40306671cb7c48290f65fdc5d39f219210c9 /src/ui/ui_manager.cpp | |
parent | e8dd10eec26d26c3fb30f2712ccf58ac72edc8a2 (diff) | |
download | cru-bea876a3b1a241e6127c06a14684a6dc9fcc9516.tar.gz cru-bea876a3b1a241e6127c06a14684a6dc9fcc9516.tar.bz2 cru-bea876a3b1a241e6127c06a14684a6dc9fcc9516.zip |
...
Diffstat (limited to 'src/ui/ui_manager.cpp')
-rw-r--r-- | src/ui/ui_manager.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/ui/ui_manager.cpp b/src/ui/ui_manager.cpp index fa3304fb..f60f6355 100644 --- a/src/ui/ui_manager.cpp +++ b/src/ui/ui_manager.cpp @@ -28,5 +28,27 @@ UiManager* UiManager::GetInstance() { return instance; } -UiManager::UiManager() : predefine_resources_(new PredefineResources()) {} +UiManager::UiManager() : predefine_resources_(new PredefineResources()) { + const auto factory = GraphFactory::GetInstance(); + theme_resource_.button_style.normal.border_brush = std::shared_ptr<platform::graph::Brush>( + factory->CreateSolidColorBrush(Color::FromHex(0x00bfff))); + theme_resource_.button_style.hover.border_brush = std::shared_ptr<platform::graph::Brush>( + factory->CreateSolidColorBrush(Color::FromHex(0x47d1ff))); + theme_resource_.button_style.press.border_brush = std::shared_ptr<platform::graph::Brush>( + factory->CreateSolidColorBrush(Color::FromHex(0x91e4ff))); + theme_resource_.button_style.press_cancel.border_brush = std::shared_ptr<platform::graph::Brush>( + factory->CreateSolidColorBrush(Color::FromHex(0x91e4ff))); + + theme_resource_.button_style.normal.border_thickness = + theme_resource_.button_style.hover.border_thickness = + theme_resource_.button_style.press.border_thickness = + theme_resource_.button_style.press_cancel.border_thickness = + Thickness(3); + + theme_resource_.button_style.normal.border_radius = + theme_resource_.button_style.hover.border_radius = + theme_resource_.button_style.press.border_radius = + theme_resource_.button_style.press_cancel.border_radius = + controls::CornerRadius({5, 5}); +} } // namespace cru::ui |