diff --git a/Userland/Applications/ThemeEditor/MainWidget.cpp b/Userland/Applications/ThemeEditor/MainWidget.cpp index 8c817ec417..74c217a6fc 100644 --- a/Userland/Applications/ThemeEditor/MainWidget.cpp +++ b/Userland/Applications/ThemeEditor/MainWidget.cpp @@ -36,7 +36,7 @@ namespace ThemeEditor { static const PropertyTab window_tab { - "Windows", + "Windows"sv, { { "General", { { Gfx::FlagRole::IsDark }, @@ -92,7 +92,7 @@ static const PropertyTab window_tab { }; static const PropertyTab widgets_tab { - "Widgets", + "Widgets"sv, { { "General", { { Gfx::ColorRole::Accent }, @@ -161,7 +161,7 @@ static const PropertyTab widgets_tab { }; static const PropertyTab syntax_highlighting_tab { - "Syntax Highlighting", + "Syntax Highlighting"sv, { { "General", { { Gfx::ColorRole::SyntaxComment }, @@ -185,7 +185,7 @@ static const PropertyTab syntax_highlighting_tab { }; static const PropertyTab color_scheme_tab { - "Color Scheme", + "Color Scheme"sv, { { "General", { { Gfx::FlagRole::BoldTextAsBright }, @@ -435,7 +435,7 @@ void MainWidget::build_override_controls() ErrorOr MainWidget::add_property_tab(PropertyTab const& property_tab) { - auto scrollable_container = TRY(m_property_tabs->try_add_tab(TRY(String::from_deprecated_string(property_tab.title)))); + auto scrollable_container = TRY(m_property_tabs->try_add_tab(TRY(String::from_utf8(property_tab.title)))); scrollable_container->set_should_hide_unnecessary_scrollbars(true); auto properties_list = TRY(GUI::Widget::try_create()); diff --git a/Userland/Applications/ThemeEditor/MainWidget.h b/Userland/Applications/ThemeEditor/MainWidget.h index 287a165b04..269a9c6779 100644 --- a/Userland/Applications/ThemeEditor/MainWidget.h +++ b/Userland/Applications/ThemeEditor/MainWidget.h @@ -72,7 +72,7 @@ struct PropertyGroup { }; struct PropertyTab { - DeprecatedString title; + StringView title; Vector property_groups; };