cosmic-applets/cosmic-applet-time/src/config.rs

25 lines
656 B
Rust
Raw Normal View History

2024-05-06 15:39:04 +02:00
// Copyright 2023 System76 <info@system76.com>
// SPDX-License-Identifier: GPL-3.0-only
2024-07-09 15:17:44 +02:00
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,
2024-03-22 17:34:24 +01:00
pub first_day_of_week: u8,
pub show_date_in_top_panel: bool,
2024-05-25 05:16:25 +02:00
pub show_weekday: 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,
show_date_in_top_panel: true,
2024-05-25 05:16:25 +02:00
show_weekday: false,
}
}
}