mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibGUI+Applications: Port SettingsWindow::add_tab() to the new string
This commit is contained in:
parent
797968c310
commit
446c600d09
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/krkk
Commit: 446c600d09
Pull-request: https://github.com/SerenityOS/serenity/pull/17800
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/awesomekling
11 changed files with 25 additions and 25 deletions
|
@ -34,9 +34,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto app_icon = GUI::Icon::default_icon("app-mouse"sv);
|
||||
|
||||
auto window = TRY(GUI::SettingsWindow::create("Mouse Settings", GUI::SettingsWindow::ShowDefaultsButton::Yes));
|
||||
(void)TRY(window->add_tab<MouseWidget>("Mouse"sv, "mouse"sv));
|
||||
(void)TRY(window->add_tab<ThemeWidget>("Cursor Theme"sv, "cursor-theme"sv));
|
||||
(void)TRY(window->add_tab<HighlightWidget>("Cursor Highlight"sv, "cursor-highlight"sv));
|
||||
(void)TRY(window->add_tab<MouseWidget>("Mouse"_short_string, "mouse"sv));
|
||||
(void)TRY(window->add_tab<ThemeWidget>(TRY("Cursor Theme"_string), "cursor-theme"sv));
|
||||
(void)TRY(window->add_tab<HighlightWidget>(TRY("Cursor Highlight"_string), "cursor-highlight"sv));
|
||||
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
window->set_active_tab(selected_tab);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue