feat (panel): hook up more panel settings

This commit is contained in:
Ashley Wulber 2023-05-23 17:46:49 -04:00 committed by Michael Aaron Murphy
parent f1f12b5e21
commit 882bf047db
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
4 changed files with 376 additions and 208 deletions

View file

@ -0,0 +1,22 @@
use cosmic_settings_page::{self as page, section, Section};
use slotmap::SlotMap;
#[derive(Default)]
pub struct Page;
impl page::Page<crate::pages::Message> for Page {
#[allow(clippy::too_many_lines)]
fn content(
&self,
sections: &mut SlotMap<section::Entity, Section<crate::pages::Message>>,
) -> Option<page::Content> {
Some(vec![sections.insert(Section::default())])
}
fn info(&self) -> page::Info {
page::Info::new("panel_applets", "preferences-pop-desktop-dock-symbolic")
.title(fl!("applets"))
}
}
impl page::AutoBind<crate::pages::Message> for Page {}