Restructure config to fix debian builds
This commit is contained in:
parent
edaf5b994e
commit
515dbb3337
6 changed files with 5 additions and 2 deletions
|
|
@ -1,2 +1 @@
|
|||
#[path = "../../cosmic-applet-time/src/config.rs"]
|
||||
pub mod time;
|
||||
26
cosmic-applets-config/src/time.rs
Normal file
26
cosmic-applets-config/src/time.rs
Normal 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,
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue