1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +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

@ -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");
}