2024-03-22 17:22:43 +01:00
|
|
|
use cosmic::cosmic_config::cosmic_config_derive::CosmicConfigEntry;
|
|
|
|
|
use cosmic::cosmic_config::{self, CosmicConfigEntry};
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, CosmicConfigEntry, PartialEq, Eq)]
|
|
|
|
|
#[version = 1]
|
|
|
|
|
pub struct TimeAppletConfig {
|
|
|
|
|
pub military_time: bool,
|
2024-03-22 17:34:24 +01:00
|
|
|
pub first_day_of_week: u8,
|
2024-03-22 17:22:43 +01:00
|
|
|
pub show_date_in_top_panel: bool,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Default for TimeAppletConfig {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
Self {
|
|
|
|
|
military_time: false,
|
2024-03-22 17:34:24 +01:00
|
|
|
first_day_of_week: 6,
|
2024-03-22 17:22:43 +01:00
|
|
|
show_date_in_top_panel: true,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|