diff options
Diffstat (limited to 'src/ThemeBuilder/components/stylers')
6 files changed, 22 insertions, 22 deletions
| diff --git a/src/ThemeBuilder/components/stylers/BorderStylerEditor.cpp b/src/ThemeBuilder/components/stylers/BorderStylerEditor.cpp index 1329a08a..5f046a44 100644 --- a/src/ThemeBuilder/components/stylers/BorderStylerEditor.cpp +++ b/src/ThemeBuilder/components/stylers/BorderStylerEditor.cpp @@ -8,17 +8,17 @@  namespace cru::theme_builder::components::stylers {  BorderStylerEditor::BorderStylerEditor() { -  SetLabel(u"Border Styler"); +  SetLabel("Border Styler");    GetContainer()->AddChild(corner_radius_editor_.GetRootControl());    GetContainer()->AddChild(thickness_editor_.GetRootControl());    GetContainer()->AddChild(brush_editor_.GetRootControl());    GetContainer()->AddChild(foreground_brush_editor_.GetRootControl());    GetContainer()->AddChild(background_brush_editor_.GetRootControl()); -  thickness_editor_.GetEditor()->SetLabel(u"Thickness"); -  brush_editor_.GetEditor()->SetLabel(u"Border"); -  foreground_brush_editor_.GetEditor()->SetLabel(u"Foreground"); -  background_brush_editor_.GetEditor()->SetLabel(u"Background"); +  thickness_editor_.GetEditor()->SetLabel("Thickness"); +  brush_editor_.GetEditor()->SetLabel("Border"); +  foreground_brush_editor_.GetEditor()->SetLabel("Foreground"); +  background_brush_editor_.GetEditor()->SetLabel("Background");    ConnectChangeEvent(corner_radius_editor_);    ConnectChangeEvent(thickness_editor_); diff --git a/src/ThemeBuilder/components/stylers/CompoundStylerEditor.cpp b/src/ThemeBuilder/components/stylers/CompoundStylerEditor.cpp index c8b2a871..af22217b 100644 --- a/src/ThemeBuilder/components/stylers/CompoundStylerEditor.cpp +++ b/src/ThemeBuilder/components/stylers/CompoundStylerEditor.cpp @@ -12,7 +12,7 @@  namespace cru::theme_builder::components::stylers {  CompoundStylerEditor::CompoundStylerEditor() { -  SetLabel(u"Compound Styler"); +  SetLabel("Compound Styler");    GetContainer()->AddChild(&children_container_);    children_container_.SetFlexDirection(ui::controls::FlexDirection::Vertical);    children_container_.SetItemCrossAlign( @@ -21,16 +21,16 @@ CompoundStylerEditor::CompoundStylerEditor() {    GetHeadContainer()->AddChild(add_child_button_.GetRootControl());    add_child_button_.GetButton()->GetStyleRuleSet()->SetParent(        ui::ThemeManager::GetInstance()->GetResourceStyleRuleSet( -          u"cru.theme_builder.icon-button.style")); +          "cru.theme_builder.icon-button.style"));    add_child_button_.GetButton()->SetIconWithSvgPathDataStringResourceKey( -      u"icon.plus", {0, 0, 16, 16}); +      "icon.plus", {0, 0, 16, 16});    add_child_button_.GetButton()->SetPreferredSize({24, 24});    add_child_button_.GetButton()->SetPadding(ui::Thickness(2));    add_child_button_.GetButton()->SetIconFillColor(ui::colors::green); -  add_child_button_.SetMenuItems({u"Compound Styler", u"Border Styler", -                                  u"Cursor Styler", u"Content Brush Styler", -                                  u"Font Styler", u"Margin Styler", -                                  u"Padding Styler", u"Preferred Size Styler"}); +  add_child_button_.SetMenuItems({"Compound Styler", "Border Styler", +                                  "Cursor Styler", "Content Brush Styler", +                                  "Font Styler", "Margin Styler", +                                  "Padding Styler", "Preferred Size Styler"});    add_child_button_.MenuItemSelectedEvent()->AddHandler([this](Index index) {      std::unique_ptr<StylerEditor> editor;      switch (index) { diff --git a/src/ThemeBuilder/components/stylers/CursorStylerEditor.cpp b/src/ThemeBuilder/components/stylers/CursorStylerEditor.cpp index 9984d81a..71de739a 100644 --- a/src/ThemeBuilder/components/stylers/CursorStylerEditor.cpp +++ b/src/ThemeBuilder/components/stylers/CursorStylerEditor.cpp @@ -4,11 +4,11 @@  namespace cru::theme_builder::components::stylers {  CursorStylerEditor::CursorStylerEditor() { -  SetLabel(u"Cursor Styler"); +  SetLabel("Cursor Styler");    GetContainer()->AddChild(cursor_select_.GetRootControl()); -  cursor_select_.SetLabel(u"Cursor"); -  cursor_select_.SetItems({u"arrow", u"hand", u"ibeam"}); +  cursor_select_.SetLabel("Cursor"); +  cursor_select_.SetItems({"arrow", "hand", "ibeam"});    cursor_select_.SetSelectedIndex(0);    ConnectChangeEvent(cursor_select_); diff --git a/src/ThemeBuilder/components/stylers/MarginStylerEditor.cpp b/src/ThemeBuilder/components/stylers/MarginStylerEditor.cpp index d7d89acb..c750e9b6 100644 --- a/src/ThemeBuilder/components/stylers/MarginStylerEditor.cpp +++ b/src/ThemeBuilder/components/stylers/MarginStylerEditor.cpp @@ -3,10 +3,10 @@  namespace cru::theme_builder::components::stylers {  MarginStylerEditor::MarginStylerEditor() { -  SetLabel(u"Margin Styler"); +  SetLabel("Margin Styler");    GetContainer()->AddChild(thickness_editor_.GetRootControl()); -  thickness_editor_.SetLabel(u"Thickness"); +  thickness_editor_.SetLabel("Thickness");    ConnectChangeEvent(thickness_editor_);  } diff --git a/src/ThemeBuilder/components/stylers/PaddingStylerEditor.cpp b/src/ThemeBuilder/components/stylers/PaddingStylerEditor.cpp index 476d21f1..5cf9d3d8 100644 --- a/src/ThemeBuilder/components/stylers/PaddingStylerEditor.cpp +++ b/src/ThemeBuilder/components/stylers/PaddingStylerEditor.cpp @@ -3,10 +3,10 @@  namespace cru::theme_builder::components::stylers {  PaddingStylerEditor::PaddingStylerEditor() { -  SetLabel(u"Padding Styler"); +  SetLabel("Padding Styler");    GetContainer()->AddChild(thickness_editor_.GetRootControl()); -  thickness_editor_.SetLabel(u"Thickness"); +  thickness_editor_.SetLabel("Thickness");    ConnectChangeEvent(thickness_editor_);  } diff --git a/src/ThemeBuilder/components/stylers/PreferredSizeStylerEditor.cpp b/src/ThemeBuilder/components/stylers/PreferredSizeStylerEditor.cpp index fb713c8c..f0e700a1 100644 --- a/src/ThemeBuilder/components/stylers/PreferredSizeStylerEditor.cpp +++ b/src/ThemeBuilder/components/stylers/PreferredSizeStylerEditor.cpp @@ -3,12 +3,12 @@  namespace cru::theme_builder::components::stylers {  PreferredSizeStylerEditor::PreferredSizeStylerEditor() { -  SetLabel(u"Preferred Size Styler"); +  SetLabel("Preferred Size Styler");    GetContainer()->AddChild(width_editor_.GetRootControl());    GetContainer()->AddChild(height_editor_.GetRootControl()); -  width_editor_.SetLabel(u"Width"); -  height_editor_.SetLabel(u"Height"); +  width_editor_.SetLabel("Width"); +  height_editor_.SetLabel("Height");    ConnectChangeEvent(width_editor_);    ConnectChangeEvent(height_editor_); | 
