feat: settings application architecture
This commit is contained in:
commit
2709dcfee5
43 changed files with 7244 additions and 0 deletions
25
src/page/desktop/notifications.rs
Normal file
25
src/page/desktop/notifications.rs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2023 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use slotmap::SlotMap;
|
||||
|
||||
use crate::page::{self, section, Content, Section};
|
||||
|
||||
pub struct Page;
|
||||
|
||||
impl page::Page for Page {
|
||||
type Model = super::Model;
|
||||
|
||||
const PERSISTENT_ID: &'static str = "notifications";
|
||||
|
||||
fn page() -> page::Meta {
|
||||
page::Meta::default()
|
||||
.title(fl!("notifications"))
|
||||
.description(fl!("notifications", "desc"))
|
||||
.icon_name("preferences-system-notifications-symbolic")
|
||||
}
|
||||
|
||||
fn content(sections: &mut SlotMap<section::Entity, Section>) -> Option<Content> {
|
||||
Some(vec![sections.insert(Section::new())])
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue