feat (panel): hook up more panel settings
This commit is contained in:
parent
f1f12b5e21
commit
882bf047db
4 changed files with 376 additions and 208 deletions
22
app/src/pages/desktop/panel/applets.rs
Normal file
22
app/src/pages/desktop/panel/applets.rs
Normal 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 {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue