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

DisplaySettings: Set icons from GML

This commit is contained in:
Dylan Katz 2022-01-28 23:29:55 -08:00 committed by Andreas Kling
parent 362df5b6dd
commit caecb6ba72
2 changed files with 5 additions and 4 deletions

View file

@ -50,20 +50,24 @@
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Label {
name: "light_bulb_label"
fixed_height: 32
fixed_width: 32
icon: "/res/icons/32x32/app-welcome.png"
}
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {
margins: [6]
}
@GUI::Label {
text: "Use the Ctrl+Alt+Arrow hotkeys to move between workspaces."
text_alignment: "TopLeft"
word_wrap: true
}
@GUI::Label {
text: "Use the Ctrl+Shift+Alt+Arrow hotkeys to move between\nworkspaces and move the active window."
text_alignment: "TopLeft"

View file

@ -29,9 +29,6 @@ void DesktopSettingsWidget::create_frame()
{
load_from_gml(desktop_settings_gml);
auto& light_bulb_label = *find_descendant_of_type_named<GUI::Label>("light_bulb_label");
light_bulb_label.set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/32x32/app-welcome.png").release_value_but_fixme_should_propagate_errors());
m_workspace_rows_spinbox = *find_descendant_of_type_named<GUI::SpinBox>("workspace_rows_spinbox");
m_workspace_columns_spinbox = *find_descendant_of_type_named<GUI::SpinBox>("workspace_columns_spinbox");
}