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;
|
2024-09-04 17:22:45 +01:00
|
|
|
pub mod section;
|
2022-12-06 16:12:59 +01:00
|
|
|
|
2024-05-30 12:38:07 +02:00
|
|
|
pub use self::item::{flex_item, flex_item_row, item, item_row};
|
2024-09-19 14:29:52 +02:00
|
|
|
pub use self::section::{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
|
|
|
}
|