wip: Various refactorings and improvements
This commit is contained in:
parent
702ea033af
commit
37f978d1b3
33 changed files with 744 additions and 1229 deletions
17
src/widget/settings/mod.rs
Normal file
17
src/widget/settings/mod.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2022 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
mod item;
|
||||
mod section;
|
||||
|
||||
pub use self::item::{item, item_row};
|
||||
pub use self::section::{Section, view_section};
|
||||
|
||||
use crate::{Element, Renderer};
|
||||
use iced::widget::{Column, column};
|
||||
|
||||
/// A column with a predefined style for creating a settings panel
|
||||
#[must_use]
|
||||
pub fn view_column<Message: 'static>(children: Vec<Element<Message>>) -> Column<Message, Renderer> {
|
||||
column(children).spacing(24).padding(24).max_width(600)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue