aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/StyleRuleEditor.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-03-11 21:18:10 +0800
committercrupest <crupest@outlook.com>2022-03-11 21:18:10 +0800
commit3d74364e78fadbc0b36081097e4a3a22a8ee26f2 (patch)
tree7c0e8eca39dc63d388963d348d1e2e8fbd92b9d0 /src/theme_builder/components/StyleRuleEditor.cpp
parentf99d56cf4091baf34636436de42ac84f4f92ae66 (diff)
downloadcru-3d74364e78fadbc0b36081097e4a3a22a8ee26f2.tar.gz
cru-3d74364e78fadbc0b36081097e4a3a22a8ee26f2.tar.bz2
cru-3d74364e78fadbc0b36081097e4a3a22a8ee26f2.zip
...
Diffstat (limited to 'src/theme_builder/components/StyleRuleEditor.cpp')
-rw-r--r--src/theme_builder/components/StyleRuleEditor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/theme_builder/components/StyleRuleEditor.cpp b/src/theme_builder/components/StyleRuleEditor.cpp
index 6aef6455..d4556825 100644
--- a/src/theme_builder/components/StyleRuleEditor.cpp
+++ b/src/theme_builder/components/StyleRuleEditor.cpp
@@ -21,9 +21,9 @@ StyleRuleEditor::StyleRuleEditor() {
remove_button_.GetStyleRuleSet()->SetParent(
ui::ThemeManager::GetInstance()->GetResourceStyleRuleSet(
u"cru.theme_builder.icon-button.style"));
- remove_button_.SetChild(&remove_button_text_);
- remove_button_text_.SetText(u"x");
- remove_button_text_.SetTextColor(ui::colors::red);
+ remove_button_.SetIconWithSvgPathDataStringResourceKey(u"icon.close",
+ {0, 0, 16, 16});
+ remove_button_.SetIconFillColor(ui::colors::red);
main_layout_.AddChild(&body_layout_);
body_layout_.SetFlexDirection(ui::controls::FlexDirection::Vertical);