2022-12-06 16:12:59 +01:00
|
|
|
// Copyright 2022 System76 <info@system76.com>
|
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
2023-01-25 04:13:29 +01:00
|
|
|
pub mod item;
|
2022-12-06 16:12:59 +01:00
|
|
|
mod section;
|
|
|
|
|
|
|
|
|
|
pub use self::item::{item, item_row};
|
2022-12-07 03:03:41 +01:00
|
|
|
pub use self::section::{view_section, Section};
|
2022-12-06 16:12:59 +01:00
|
|
|
|
2023-09-01 07:29:19 +02:00
|
|
|
use crate::widget::{column, Column};
|
2023-09-13 15:40:57 +02:00
|
|
|
use crate::Element;
|
2022-12-06 16:12:59 +01:00
|
|
|
|
|
|
|
|
/// A column with a predefined style for creating a settings panel
|
|
|
|
|
#[must_use]
|
2023-09-13 15:40:57 +02:00
|
|
|
pub fn view_column<Message: 'static>(children: Vec<Element<Message>>) -> Column<Message> {
|
2023-09-19 16:41:59 +02:00
|
|
|
column::with_children(children).spacing(24).padding([0, 24])
|
2022-12-06 16:12:59 +01:00
|
|
|
}
|