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 /src/theme_builder/components/conditions | |
| parent | 3cd44092c44651650a760752a3d374f610ca4f77 (diff) | |
| download | cru-c6de932f727ed324cf875ea3fca9ca44775a820e.tar.gz cru-c6de932f727ed324cf875ea3fca9ca44775a820e.tar.bz2 cru-c6de932f727ed324cf875ea3fca9ca44775a820e.zip | |
...
Diffstat (limited to 'src/theme_builder/components/conditions')
4 files changed, 9 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); }); } |
