mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +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:
parent
024360e604
commit
02d94a303c
77 changed files with 195 additions and 188 deletions
|
@ -78,7 +78,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
Optional<unsigned> last_rounding_mode = 1;
|
||||
for (unsigned i {}; i < rounding_modes.size(); ++i) {
|
||||
auto round_action = GUI::Action::create_checkable(DeprecatedString::formatted("To &{} digits", rounding_modes[i]),
|
||||
auto round_action = GUI::Action::create_checkable(DeprecatedString::formatted("To &{} Digits", rounding_modes[i]),
|
||||
[&widget, rounding_mode = rounding_modes[i], &last_rounding_mode, i](auto&) {
|
||||
widget->set_rounding_length(rounding_mode);
|
||||
last_rounding_mode = i;
|
||||
|
@ -88,10 +88,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
round_menu.add_action(*round_action);
|
||||
}
|
||||
|
||||
constexpr auto format { "&Custom - {} ..."sv };
|
||||
constexpr auto format { "&Custom - {}..."sv };
|
||||
auto round_custom = GUI::Action::create_checkable(DeprecatedString::formatted(format, 0), [&](auto& action) {
|
||||
int custom_rounding_length = widget->rounding_length();
|
||||
auto result = GUI::InputBox::show_numeric(window, custom_rounding_length, 0, 100, "Round to"sv);
|
||||
auto result = GUI::InputBox::show_numeric(window, custom_rounding_length, 0, 100, "Digits to Round"sv);
|
||||
if (!result.is_error() && result.value() == GUI::Dialog::ExecResult::OK) {
|
||||
action.set_text(DeprecatedString::formatted(format, custom_rounding_length));
|
||||
widget->set_rounding_length(custom_rounding_length);
|
||||
|
@ -105,7 +105,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto shrink_action = GUI::Action::create("&Shrink...", TRY(Gfx::Bitmap::load_from_file("/res/icons/16x16/edit-cut.png"sv)), [&](auto&) {
|
||||
int shrink_length = widget->rounding_length();
|
||||
auto result = GUI::InputBox::show_numeric(window, shrink_length, 0, 100, "Shrink to"sv);
|
||||
auto result = GUI::InputBox::show_numeric(window, shrink_length, 0, 100, "Digits to Shrink"sv);
|
||||
if (!result.is_error() && result.value() == GUI::Dialog::ExecResult::OK) {
|
||||
round_custom->set_checked(true);
|
||||
round_custom->set_text(DeprecatedString::formatted(format, shrink_length));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue