1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 01:48:11 +00:00
serenity/Userland/Applications/ClockSettings/ClockSettingsWidget.gml
Sam Atkins 3cc1a86ef5 ClockSettings: Add a preview of the current time format
When writing a custom format especially, it's nice to be able to see how
it will look as you write it.
2022-04-23 10:48:51 -07:00

74 lines
1.7 KiB
Text

@GUI::Frame {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [10]
spacing: 5
}
@GUI::GroupBox {
title: "Time Format"
shrink_to_fit: false
fixed_height: 240
layout: @GUI::VerticalBoxLayout {
margins: [16, 8, 8]
}
@GUI::Label {
text: "Set the date/time format used by the taskbar clock."
text_alignment: "TopLeft"
}
@GUI::Widget {
shrink_to_fit: true
layout: @GUI::VerticalBoxLayout {
spacing: 4
}
@GUI::RadioButton {
name: "24hour_radio"
text: "24-hour"
}
@GUI::RadioButton {
name: "12hour_radio"
text: "12-hour"
}
@GUI::CheckBox {
name: "seconds_checkbox"
text: "Show seconds"
}
@GUI::HorizontalSeparator {}
@GUI::RadioButton {
name: "custom_radio"
text: "Custom:"
}
@GUI::TextBox {
name: "custom_format_input"
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 4
}
@GUI::Label {
text: "Preview:"
text_alignment: "CenterLeft"
}
@GUI::Frame {
layout: @GUI::VerticalBoxLayout {}
@GUI::Label {
name: "clock_preview"
text: "12:34:56"
}
}
}
}
}