// Copyright 2023 System76 // SPDX-License-Identifier: GPL-3.0-only use cosmic_settings_page::Section; use cosmic_settings_page::{self as page, section}; use slotmap::SlotMap; #[derive(Default)] pub struct Page; impl page::Page for Page { fn content( &self, sections: &mut SlotMap>, ) -> Option { Some(vec![sections.insert(Section::default())]) } fn info(&self) -> page::Info { page::Info::new("firmware", "firmware-manager-symbolic") .title(fl!("firmware")) .description(fl!("firmware", "desc")) } } impl page::AutoBind for Page {}