Enables convenient handling of spin messages, and specifying steppings, minimum, and maximum values
17 lines
506 B
Rust
17 lines
506 B
Rust
// 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::{view_section, 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)
|
|
}
|