Expose applet configs, starting with time applet
This commit is contained in:
parent
b6bb982f2d
commit
edaf5b994e
6 changed files with 25 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ edition = "2021"
|
|||
license = "GPL-3.0-only"
|
||||
|
||||
[dependencies]
|
||||
cosmic-config.workspace = true
|
||||
chrono = { version = "0.4.39", features = ["clock"] }
|
||||
chrono-tz = "0.10"
|
||||
i18n-embed-fl.workspace = true
|
||||
|
|
@ -21,5 +22,6 @@ icu = { version = "1.5.0", features = [
|
|||
"compiled_data",
|
||||
"icu_datetime_experimental",
|
||||
] }
|
||||
serde.workspace = true
|
||||
zbus.workspace = true
|
||||
timedate-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings" }
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright 2023 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use cosmic::cosmic_config::{self, cosmic_config_derive::CosmicConfigEntry, CosmicConfigEntry};
|
||||
use cosmic_config::{self, cosmic_config_derive::CosmicConfigEntry, CosmicConfigEntry};
|
||||
|
||||
#[derive(Debug, Clone, CosmicConfigEntry, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, CosmicConfigEntry, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
|
||||
#[version = 1]
|
||||
pub struct TimeAppletConfig {
|
||||
pub military_time: bool,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue