mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
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.
This commit is contained in:
committed by
Brian Gianforcaro
parent
bd7e896c76
commit
3cc1a86ef5
Notes:
sideshowbarker
2024-07-17 11:34:06 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/3cc1a86ef5 Pull-request: https://github.com/SerenityOS/serenity/pull/13764
@@ -8,7 +8,7 @@
|
||||
@GUI::GroupBox {
|
||||
title: "Time Format"
|
||||
shrink_to_fit: false
|
||||
fixed_height: 200
|
||||
fixed_height: 240
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8]
|
||||
}
|
||||
@@ -50,5 +50,25 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user