diff options
author | crupest <crupest@outlook.com> | 2022-02-26 19:46:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-26 19:46:37 +0800 |
commit | 65e288c40a593965b41378755f7111c56e123295 (patch) | |
tree | 3c329d8453f3514a374e5a0c47edcffe9231173b /src/theme_builder/components | |
parent | e80f44385dee8636b747848ecb6193c41a99d89c (diff) | |
download | cru-65e288c40a593965b41378755f7111c56e123295.tar.gz cru-65e288c40a593965b41378755f7111c56e123295.tar.bz2 cru-65e288c40a593965b41378755f7111c56e123295.zip |
...
Diffstat (limited to 'src/theme_builder/components')
-rw-r--r-- | src/theme_builder/components/properties/ColorPropertyEditor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/theme_builder/components/properties/ColorPropertyEditor.cpp b/src/theme_builder/components/properties/ColorPropertyEditor.cpp index 49911f77..89b145a7 100644 --- a/src/theme_builder/components/properties/ColorPropertyEditor.cpp +++ b/src/theme_builder/components/properties/ColorPropertyEditor.cpp @@ -1,6 +1,7 @@ #include "ColorPropertyEditor.h" #include "cru/platform/graphics/Factory.h" #include "cru/ui/Base.h" +#include "cru/ui/ThemeManager.h" namespace cru::theme_builder::components::properties { ColorPropertyEditor::ColorPropertyEditor() { @@ -8,9 +9,15 @@ ColorPropertyEditor::ColorPropertyEditor() { container_.AddChild(&color_cube_); container_.AddChild(&color_text_); + color_cube_.SetBorderEnabled(true); + color_cube_.GetStyleRuleSet()->SetParent( + ui::ThemeManager::GetInstance()->GetResourceStyleRuleSet( + u"cru.theme_builder.color_cube.style")); + color_cube_brush_ = platform::gui::IUiApplication::GetInstance() ->GetGraphicsFactory() ->CreateSolidColorBrush(color_); + color_cube_.SetForegroundBrush(color_cube_brush_); color_text_.SetText(color_.ToString()); |