diff options
author | crupest <crupest@outlook.com> | 2022-02-16 20:28:51 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-16 20:28:51 +0800 |
commit | c6de932f727ed324cf875ea3fca9ca44775a820e (patch) | |
tree | 070fcd65ba0664ab8138874829c0324b2cd833c6 | |
parent | 3cd44092c44651650a760752a3d374f610ca4f77 (diff) | |
download | cru-c6de932f727ed324cf875ea3fca9ca44775a820e.tar.gz cru-c6de932f727ed324cf875ea3fca9ca44775a820e.tar.bz2 cru-c6de932f727ed324cf875ea3fca9ca44775a820e.zip |
...
7 files changed, 13 insertions, 0 deletions
diff --git a/src/theme_builder/components/conditions/CheckedConditionEditor.cpp b/src/theme_builder/components/conditions/CheckedConditionEditor.cpp index 756bd2af..bd2dbe0c 100644 --- a/src/theme_builder/components/conditions/CheckedConditionEditor.cpp +++ b/src/theme_builder/components/conditions/CheckedConditionEditor.cpp @@ -4,6 +4,9 @@ namespace cru::theme_builder::components::conditions { CheckedConditionEditor::CheckedConditionEditor() { + SetLabel(u"Checked Condition"); + + checked_check_box_.SetLabel(u"Checked"); GetContainer()->AddChild(checked_check_box_.GetRootControl()); checked_check_box_.ChangeEvent()->AddSpyOnlyHandler( diff --git a/src/theme_builder/components/conditions/ClickStateConditionEditor.cpp b/src/theme_builder/components/conditions/ClickStateConditionEditor.cpp index 65238700..3929c29c 100644 --- a/src/theme_builder/components/conditions/ClickStateConditionEditor.cpp +++ b/src/theme_builder/components/conditions/ClickStateConditionEditor.cpp @@ -43,8 +43,10 @@ ClickState ConvertIndexToClickState(Index index) { } // namespace ClickStateConditionEditor::ClickStateConditionEditor() { + SetLabel(u"Click State Condition"); GetContainer()->AddChild(click_state_select_.GetRootControl()); + click_state_select_.SetLabel(u"Click State"); click_state_select_.SetItems(kClickStates); click_state_select_.SetSelectedIndex(0, false); diff --git a/src/theme_builder/components/conditions/CompoundConditionEditor.cpp b/src/theme_builder/components/conditions/CompoundConditionEditor.cpp index 76198dc0..c53b2b69 100644 --- a/src/theme_builder/components/conditions/CompoundConditionEditor.cpp +++ b/src/theme_builder/components/conditions/CompoundConditionEditor.cpp @@ -27,6 +27,8 @@ CompoundConditionEditorChild::~CompoundConditionEditorChild() { } CompoundConditionEditor::CompoundConditionEditor() { + SetLabel(u"Compound Condition"); + GetContainer()->AddChild(&children_container_); GetContainer()->AddChild(add_child_button_.GetRootControl()); add_child_button_.SetButtonText(u"+"); diff --git a/src/theme_builder/components/conditions/FocusConditionEditor.cpp b/src/theme_builder/components/conditions/FocusConditionEditor.cpp index c4ac0dc9..7e650071 100644 --- a/src/theme_builder/components/conditions/FocusConditionEditor.cpp +++ b/src/theme_builder/components/conditions/FocusConditionEditor.cpp @@ -4,8 +4,10 @@ namespace cru::theme_builder::components::conditions { FocusConditionEditor::FocusConditionEditor() { + SetLabel(u"Focus Condition"); GetContainer()->AddChild(focus_check_box_.GetRootControl()); + focus_check_box_.SetLabel(u"Focus"); focus_check_box_.ChangeEvent()->AddSpyOnlyHandler( [this] { change_event_.Raise(nullptr); }); } diff --git a/src/theme_builder/components/stylers/BorderStylerEditor.cpp b/src/theme_builder/components/stylers/BorderStylerEditor.cpp index 36fc61d0..2b169dcf 100644 --- a/src/theme_builder/components/stylers/BorderStylerEditor.cpp +++ b/src/theme_builder/components/stylers/BorderStylerEditor.cpp @@ -8,6 +8,7 @@ namespace cru::theme_builder::components::stylers { BorderStylerEditor::BorderStylerEditor() { + SetLabel(u"Border Styler"); GetContainer()->AddChild(corner_radius_editor_.GetRootControl()); GetContainer()->AddChild(thickness_editor_.GetRootControl()); GetContainer()->AddChild(brush_editor_.GetRootControl()); diff --git a/src/theme_builder/components/stylers/CompoundStylerEditor.cpp b/src/theme_builder/components/stylers/CompoundStylerEditor.cpp index 52f911bc..27a29c59 100644 --- a/src/theme_builder/components/stylers/CompoundStylerEditor.cpp +++ b/src/theme_builder/components/stylers/CompoundStylerEditor.cpp @@ -25,6 +25,7 @@ CompoundStylerEditorChild::~CompoundStylerEditorChild() { } CompoundStylerEditor::CompoundStylerEditor() { + SetLabel(u"Compound Styler"); children_container_.SetFlexDirection(ui::controls::FlexDirection::Vertical); GetContainer()->AddChild(&children_container_); diff --git a/src/theme_builder/components/stylers/CursorStylerEditor.cpp b/src/theme_builder/components/stylers/CursorStylerEditor.cpp index 4cbd69cd..d7e5c351 100644 --- a/src/theme_builder/components/stylers/CursorStylerEditor.cpp +++ b/src/theme_builder/components/stylers/CursorStylerEditor.cpp @@ -4,8 +4,10 @@ namespace cru::theme_builder::components::stylers { CursorStylerEditor::CursorStylerEditor() { + SetLabel(u"Cursor Styler"); GetContainer()->AddChild(cursor_select_.GetRootControl()); + cursor_select_.SetLabel(u"Cursor"); cursor_select_.SetItems({u"arrow", u"hand", u"ibeam"}); cursor_select_.SetSelectedIndex(0); } |