mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 00:37:35 +00:00
LibGUI+Userland: Port Labels to String
This commit is contained in:
parent
3d53dc8228
commit
91bafc2653
92 changed files with 240 additions and 242 deletions
|
@ -37,7 +37,7 @@ ErrorOr<void> DesktopSettingsWidget::create_frame()
|
|||
};
|
||||
|
||||
auto& keyboard_shortcuts_label = *find_descendant_of_type_named<GUI::Label>("keyboard_shortcuts_label");
|
||||
keyboard_shortcuts_label.set_text("\xE2\x84\xB9\tCtrl+Alt+{Shift}+Arrows moves between workspaces");
|
||||
keyboard_shortcuts_label.set_text(TRY("\xE2\x84\xB9\tCtrl+Alt+{Shift}+Arrows moves between workspaces"_string));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ ErrorOr<void> FontSettingsWidget::setup_interface()
|
|||
|
||||
static void update_label_with_font(GUI::Label& label, Gfx::Font const& font)
|
||||
{
|
||||
label.set_text(font.human_readable_name());
|
||||
label.set_text(String::from_deprecated_string(font.human_readable_name()).release_value_but_fixme_should_propagate_errors());
|
||||
label.set_font(font);
|
||||
}
|
||||
|
||||
|
|
|
@ -217,7 +217,7 @@ ErrorOr<void> MonitorSettingsWidget::selected_screen_index_or_resolution_changed
|
|||
auto dpi_label_value = String::formatted("{} dpi", screen_dpi.value());
|
||||
if (screen_dpi.has_value() && !dpi_label_value.is_error()) {
|
||||
m_dpi_label->set_tooltip(screen_dpi_tooltip.to_deprecated_string());
|
||||
m_dpi_label->set_text(dpi_label_value.release_value().to_deprecated_string());
|
||||
m_dpi_label->set_text(dpi_label_value.release_value());
|
||||
m_dpi_label->set_visible(true);
|
||||
} else {
|
||||
m_dpi_label->set_visible(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue