input: Use cosmic-comp-config crate
This commit is contained in:
parent
a5fcd5326e
commit
154c67ee6a
4 changed files with 61 additions and 9 deletions
|
|
@ -26,6 +26,7 @@ rust-embed = "6.6.1"
|
|||
slotmap = "1.0.6"
|
||||
tokio = "1.28.2"
|
||||
downcast-rs = "1.2.0"
|
||||
cosmic-comp-config = { workspace = true }
|
||||
# TODO: migrate this dependency to the pages/desktop crate.
|
||||
cosmic-panel-config = { workspace = true }
|
||||
tracing = "0.1.37"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ use cosmic::{
|
|||
iced_sctk::commands,
|
||||
iced_widget::core::layout,
|
||||
};
|
||||
use cosmic_comp_config::XkbConfig;
|
||||
use cosmic_settings_page as page;
|
||||
use itertools::Itertools;
|
||||
use tracing::error;
|
||||
|
|
@ -12,15 +13,6 @@ use tracing::error;
|
|||
pub mod keyboard;
|
||||
mod mouse;
|
||||
|
||||
#[derive(Debug, Default, Clone, serde::Deserialize, serde::Serialize)]
|
||||
pub struct XkbConfig {
|
||||
pub rules: String,
|
||||
pub model: String,
|
||||
pub layout: String,
|
||||
pub variant: String,
|
||||
pub options: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum Message {
|
||||
SetAcceleration(bool),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue