mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:47:45 +00:00
DisplaySettings: Set icons from GML
This commit is contained in:
parent
362df5b6dd
commit
caecb6ba72
2 changed files with 5 additions and 4 deletions
|
@ -50,20 +50,24 @@
|
||||||
|
|
||||||
layout: @GUI::HorizontalBoxLayout {
|
layout: @GUI::HorizontalBoxLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
name: "light_bulb_label"
|
|
||||||
fixed_height: 32
|
fixed_height: 32
|
||||||
fixed_width: 32
|
fixed_width: 32
|
||||||
|
icon: "/res/icons/32x32/app-welcome.png"
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
margins: [6]
|
margins: [6]
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
text: "Use the Ctrl+Alt+Arrow hotkeys to move between workspaces."
|
text: "Use the Ctrl+Alt+Arrow hotkeys to move between workspaces."
|
||||||
text_alignment: "TopLeft"
|
text_alignment: "TopLeft"
|
||||||
word_wrap: true
|
word_wrap: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::Label {
|
@GUI::Label {
|
||||||
text: "Use the Ctrl+Shift+Alt+Arrow hotkeys to move between\nworkspaces and move the active window."
|
text: "Use the Ctrl+Shift+Alt+Arrow hotkeys to move between\nworkspaces and move the active window."
|
||||||
text_alignment: "TopLeft"
|
text_alignment: "TopLeft"
|
||||||
|
|
|
@ -29,9 +29,6 @@ void DesktopSettingsWidget::create_frame()
|
||||||
{
|
{
|
||||||
load_from_gml(desktop_settings_gml);
|
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_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");
|
m_workspace_columns_spinbox = *find_descendant_of_type_named<GUI::SpinBox>("workspace_columns_spinbox");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue