1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 12:05:07 +00:00
serenity/Userland/Applications/NetworkSettings/NetworkSettings.gml
thankyouverycool 4c9933bfb7 LibGUI: Remove Label icons and replace instances with ImageWidget
These icons are a relic of GLabel and were never implemented to
accomodate both image and text. This convenience can always be added
in the future, but no current instance assumes or needs it, so let's
replace them all with ImageWidget to show clearer intent.
2023-04-30 05:48:14 +02:00

91 lines
2 KiB
Text

@GUI::Frame {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [10]
spacing: 5
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 20
}
fixed_height: 40
@GUI::ImageWidget {
fixed_width: 32
fixed_height: 32
bitmap: "/res/icons/32x32/network.png"
}
@GUI::Label {
text: "Select adapter:"
fixed_width: 100
text_alignment: "CenterLeft"
}
@GUI::ComboBox {
model_only: true
name: "adapters_combobox"
}
}
@GUI::GroupBox {
title: "Network"
shrink_to_fit: true
layout: @GUI::VerticalBoxLayout {
margins: [10]
}
@GUI::CheckBox {
text: "Enabled"
name: "enabled_checkbox"
}
@GUI::CheckBox {
text: "Obtain settings automatically (using DHCP)"
name: "dhcp_checkbox"
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
preferred_height: 30
@GUI::Label {
text: "IP Address:"
fixed_width: 100
text_alignment: "CenterLeft"
}
@GUI::TextBox {
name: "ip_address_textbox"
}
@GUI::Label {
text: "/"
fixed_width: 10
}
@GUI::SpinBox {
name: "cidr_spinbox"
fixed_width: 50
min: 1
max: 32
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
preferred_height: 30
@GUI::Label {
text: "Default gateway:"
fixed_width: 100
text_alignment: "CenterLeft"
}
@GUI::TextBox {
name: "default_gateway_textbox"
}
}
}
}