mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
Welcome: Update GML
Moves more settings to GML to simplify construction and replaces deprecated GML properties.
This commit is contained in:
parent
ca54a965a0
commit
9fe5cadcc8
3 changed files with 87 additions and 100 deletions
|
@ -1,74 +1,87 @@
|
|||
@GUI::Widget {
|
||||
fill_with_background_color: true
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8, 8, 8, 8]
|
||||
margins: [8]
|
||||
spacing: 4
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
name: "welcome_banner"
|
||||
fixed_height: 30
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
min_height: 160
|
||||
layout: @GUI::HorizontalBoxLayout {}
|
||||
|
||||
@GUI::Frame {
|
||||
name: "tip_frame"
|
||||
min_width: 340
|
||||
min_height: 160
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
margins: [0, 16, 0, 0]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_width: 60
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
name: "light_bulb_label"
|
||||
fixed_height: 60
|
||||
}
|
||||
|
||||
@GUI::Layout::Spacer {}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
fixed_height: 60
|
||||
name: "did_you_know_label"
|
||||
text: "Did you know..."
|
||||
text_alignment: "CenterLeft"
|
||||
font_size: 12
|
||||
font_weight: "Bold"
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
name: "tip_label"
|
||||
text_alignment: "TopLeft"
|
||||
word_wrap: true
|
||||
font_size: 12
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@WebView::OutOfProcessWebView {
|
||||
name: "web_view"
|
||||
min_width: 340
|
||||
min_height: 160
|
||||
visible: false
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 8
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_width: 3
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
spacing: 8
|
||||
}
|
||||
|
||||
@GUI::Frame {
|
||||
name: "tip_frame"
|
||||
min_width: 340
|
||||
min_height: 170
|
||||
fill_with_background_color: true
|
||||
background_role: "Base"
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
margins: [0, 16, 0, 0]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_width: 60
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
name: "light_bulb_label"
|
||||
fixed_height: 60
|
||||
icon: "/res/icons/32x32/app-welcome.png"
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
|
||||
@GUI::Label {
|
||||
fixed_height: 60
|
||||
name: "did_you_know_label"
|
||||
text: "Did you know..."
|
||||
text_alignment: "CenterLeft"
|
||||
font_size: 12
|
||||
font_weight: "Bold"
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
name: "tip_label"
|
||||
text_alignment: "TopLeft"
|
||||
word_wrap: true
|
||||
font_size: 12
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@WebView::OutOfProcessWebView {
|
||||
name: "web_view"
|
||||
min_width: 340
|
||||
min_height: 170
|
||||
visible: false
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "startup_checkbox"
|
||||
text: "Show Welcome the next time SerenityOS starts"
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
name: "navigation_column"
|
||||
fixed_width: 115
|
||||
min_height: 160
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
fixed_width: 116
|
||||
min_height: 170
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
spacing: 4
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
name: "new_button"
|
||||
|
@ -78,42 +91,25 @@
|
|||
@GUI::Button {
|
||||
name: "help_button"
|
||||
text: "Help Contents"
|
||||
icon: "/res/icons/16x16/book-open.png"
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
name: "next_button"
|
||||
text: "Next Tip"
|
||||
icon: "/res/icons/16x16/go-forward.png"
|
||||
}
|
||||
|
||||
@GUI::Layout::Spacer {}
|
||||
|
||||
@GUI::HorizontalSeparator {
|
||||
fixed_height: 2
|
||||
fixed_height: 10
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
name: "close_button"
|
||||
text: "Close"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_height: 5
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_height: 24
|
||||
layout: @GUI::HorizontalBoxLayout {}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "startup_checkbox"
|
||||
text: "Show Welcome the next time SerenityOS starts"
|
||||
autosize: true
|
||||
}
|
||||
|
||||
@GUI::Layout::Spacer {}
|
||||
|
||||
@GUI::Button {
|
||||
name: "close_button"
|
||||
text: "Close"
|
||||
fixed_width: 115
|
||||
fixed_height: 24
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue