aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-26 20:33:02 +0800
committercrupest <crupest@outlook.com>2022-02-26 20:33:02 +0800
commit8da596f7b5fdbcf11fbda4aa66efc87a219f58ae (patch)
treed229a293f4cc424f23648c1f22de2cf268814870 /src/theme_builder/components
parent673f1939beb1b477a23d9641a07a2e05fff903b4 (diff)
downloadcru-8da596f7b5fdbcf11fbda4aa66efc87a219f58ae.tar.gz
cru-8da596f7b5fdbcf11fbda4aa66efc87a219f58ae.tar.bz2
cru-8da596f7b5fdbcf11fbda4aa66efc87a219f58ae.zip
...
Diffstat (limited to 'src/theme_builder/components')
-rw-r--r--src/theme_builder/components/properties/ColorPropertyEditor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/theme_builder/components/properties/ColorPropertyEditor.cpp b/src/theme_builder/components/properties/ColorPropertyEditor.cpp
index 89b145a7..e9e486ac 100644
--- a/src/theme_builder/components/properties/ColorPropertyEditor.cpp
+++ b/src/theme_builder/components/properties/ColorPropertyEditor.cpp
@@ -19,7 +19,9 @@ ColorPropertyEditor::ColorPropertyEditor() {
->CreateSolidColorBrush(color_);
color_cube_.SetForegroundBrush(color_cube_brush_);
+
color_text_.SetText(color_.ToString());
+ color_text_.SetMargin(ui::Thickness(10, 0, 0, 0));
color_text_.TextChangeEvent()->AddHandler([this](std::nullptr_t) {
auto text = color_text_.GetTextView();