feat: mpris support for audio applet

This commit is contained in:
Ashley Wulber 2023-10-23 21:12:35 -04:00 • committed by Ashley Wulber
parent 3f0f632d41
commit 557a43517d
5 changed files with 460 additions and 20 deletions

View file

@ -0,0 +1,15 @@
use cosmic::cosmic_config::cosmic_config_derive::CosmicConfigEntry;
use cosmic::cosmic_config::{self, Config, ConfigGet, ConfigSet, CosmicConfigEntry};
use serde::{Deserialize, Serialize};
#[derive(Default, Debug, Clone, Serialize, Deserialize, CosmicConfigEntry, PartialEq, Eq)]
pub struct AudioAppletConfig {
pub show_media_controls_in_top_panel: bool,
}
impl AudioAppletConfig {
/// Returns the version of the config
pub fn version() -> u64 {
1
}
}