Restructure config to fix debian builds

This commit is contained in:
Jeremy Soller 2025-05-09 19:17:28 -06:00
parent edaf5b994e
commit 515dbb3337
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA
6 changed files with 5 additions and 2 deletions

View file

@ -1,2 +1 @@
#[path = "../../cosmic-applet-time/src/config.rs"]
pub mod time;

View file

@ -0,0 +1,26 @@
// Copyright 2023 System76 <info@system76.com>
// SPDX-License-Identifier: GPL-3.0-only
use cosmic_config::{self, cosmic_config_derive::CosmicConfigEntry, CosmicConfigEntry};
#[derive(Debug, Clone, CosmicConfigEntry, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
#[version = 1]
pub struct TimeAppletConfig {
pub military_time: bool,
pub show_seconds: 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,
show_seconds: false,
first_day_of_week: 6,
show_date_in_top_panel: true,
show_weekday: false,
}
}
}