mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +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
@@ -19,10 +19,14 @@ private:
|
||||
virtual void reset_default_values() override;
|
||||
|
||||
void update_time_format_string();
|
||||
void update_clock_preview();
|
||||
|
||||
RefPtr<GUI::RadioButton> m_24_hour_radio;
|
||||
RefPtr<GUI::CheckBox> m_show_seconds_checkbox;
|
||||
RefPtr<GUI::TextBox> m_custom_format_input;
|
||||
RefPtr<GUI::Label> m_clock_preview;
|
||||
|
||||
String m_date_format;
|
||||
RefPtr<Core::Timer> m_clock_preview_update_timer;
|
||||
|
||||
String m_time_format;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user