feat(time): formattable datetime strings with strftime

This commit is contained in:
Joshua Megnauth 2025-11-07 13:42:36 -05:00 committed by GitHub
parent ba1e379a75
commit bd98de8228
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 96 additions and 58 deletions

View file

@ -11,6 +11,8 @@ pub struct TimeAppletConfig {
pub first_day_of_week: u8,
pub show_date_in_top_panel: bool,
pub show_weekday: bool,
#[serde(default, skip_serializing_if = "str::is_empty")]
pub format_strftime: String,
}
impl Default for TimeAppletConfig {
@ -21,6 +23,7 @@ impl Default for TimeAppletConfig {
first_day_of_week: 6,
show_date_in_top_panel: true,
show_weekday: false,
format_strftime: Default::default(),
}
}
}