cosmic-applets/cosmic-applet-time/src/config.rs
2024-07-09 16:26:27 +02:00

24 lines
656 B
Rust

// Copyright 2023 System76 <info@system76.com>
// SPDX-License-Identifier: GPL-3.0-only
use cosmic::cosmic_config::{self, cosmic_config_derive::CosmicConfigEntry, CosmicConfigEntry};
#[derive(Debug, Clone, CosmicConfigEntry, PartialEq, Eq)]
#[version = 1]
pub struct TimeAppletConfig {
pub military_time: bool,
pub first_day_of_week: u8,
pub show_date_in_top_panel: bool,
pub show_weekday: bool,
}
impl Default for TimeAppletConfig {
fn default() -> Self {
Self {
military_time: false,
first_day_of_week: 6,
show_date_in_top_panel: true,
show_weekday: false,
}
}
}