cosmic-settings/src/page/desktop/appearance.rs
2023-01-26 23:20:45 +01:00

24 lines
669 B
Rust

// Copyright 2023 System76 <info@system76.com>
// SPDX-License-Identifier: GPL-3.0-only
use crate::page::{self, section, Content, Section};
use slotmap::SlotMap;
pub struct Page;
impl page::Page for Page {
type Model = super::Model;
const PERSISTENT_ID: &'static str = "appearance";
fn page() -> page::Meta {
page::Meta::default()
.title(fl!("appearance"))
.description(fl!("appearance", "desc"))
.icon_name("preferences-pop-desktop-appearance-symbolic")
}
fn content(sections: &mut SlotMap<section::Entity, Section>) -> Option<Content> {
Some(vec![sections.insert(Section::new())])
}
}