1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 10:27:36 +00:00

Base+Userland: Apply Human Interface Guidelines to Object text

Corrects a slew of titles, buttons, labels, menu items and status bars
for capitalization, ellipses and punctuation.

Rewords a few actions and dialogs to use uniform language and
punctuation.
This commit is contained in:
thankyouverycool 2023-05-22 13:07:09 -04:00 committed by Andreas Kling
parent 024360e604
commit 02d94a303c
77 changed files with 195 additions and 188 deletions

View file

@ -417,7 +417,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto& export_submenu = file_menu->add_submenu("&Export"_short_string);
TRY(export_submenu.try_add_action(GUI::Action::create("As &BMP",
TRY(export_submenu.try_add_action(GUI::Action::create("As &BMP...",
[&](GUI::Action&) {
Optional<DeprecatedString> export_path = GUI::FilePicker::get_save_filepath(window, "untitled", "bmp");
if (!export_path.has_value())
@ -425,7 +425,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (auto result = mandelbrot->export_image(export_path.value(), ImageType::BMP); result.is_error())
GUI::MessageBox::show_error(window, DeprecatedString::formatted("{}", result.error()));
})));
TRY(export_submenu.try_add_action(GUI::Action::create("As &PNG", { Mod_Ctrl | Mod_Shift, Key_S },
TRY(export_submenu.try_add_action(GUI::Action::create("As &PNG...", { Mod_Ctrl | Mod_Shift, Key_S },
[&](GUI::Action&) {
Optional<DeprecatedString> export_path = GUI::FilePicker::get_save_filepath(window, "untitled", "png");
if (!export_path.has_value())
@ -433,7 +433,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (auto result = mandelbrot->export_image(export_path.value(), ImageType::PNG); result.is_error())
GUI::MessageBox::show_error(window, DeprecatedString::formatted("{}", result.error()));
})));
TRY(export_submenu.try_add_action(GUI::Action::create("As &QOI",
TRY(export_submenu.try_add_action(GUI::Action::create("As &QOI...",
[&](GUI::Action&) {
Optional<DeprecatedString> export_path = GUI::FilePicker::get_save_filepath(window, "untitled", "qoi");
if (!export_path.has_value())

View file

@ -113,7 +113,7 @@
@GUI::Button {
name: "enabled_coolbar_button"
text: "Coolbar button"
text: "Coolbar Button"
button_style: "Coolbar"
}
@ -190,7 +190,7 @@
@GUI::Button {
name: "icon_button"
text: "Icon button"
text: "Icon Button"
}
@GUI::Button {
@ -265,7 +265,7 @@
@GUI::ColorInput {
name: "font_colorinput"
placeholder: "Color dialog"
placeholder: "Color Picker"
}
@GUI::ColorInput {
@ -278,17 +278,17 @@
@GUI::Button {
name: "font_button"
text: "Font picker dialog..."
text: "Font Picker"
}
@GUI::Button {
name: "file_button"
text: "File picker dialog..."
text: "File Picker"
}
@GUI::Button {
name: "input_button"
text: "Input dialog..."
text: "Input Box"
}
@GUI::Layout::Spacer {}
@ -322,7 +322,7 @@
@GUI::Button {
name: "msgbox_button"
text: "Message box dialog..."
text: "Message Box"
}
}
}

View file

@ -11,7 +11,7 @@
@GUI::Button {
name: "wizard_button"
text: "Start wizard"
text: "Start Wizard"
}
@GUI::HorizontalSeparator {}