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

Applications: Add a new NetworkSettings application

This commit is contained in:
Maciej 2022-03-25 19:31:47 +01:00 committed by Sam Atkins
parent df7b7cbfa4
commit 7dd3c5c981
9 changed files with 462 additions and 1 deletions

View file

@ -0,0 +1,83 @@
@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::Label {
fixed_width: 32
fixed_height: 32
icon: "/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 {}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
fixed_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 {}
fixed_height: 30
@GUI::Label {
text: "Default gateway:"
fixed_width: 100
text_alignment: "CenterLeft"
}
@GUI::TextBox {
name: "default_gateway_textbox"
}
}
}
}