feat!(widget): rewrite button & icon widget APIs

This commit is contained in:
Michael Aaron Murphy 2023-09-01 07:29:19 +02:00 committed by Michael Murphy
parent 18debe546d
commit 4e4eeaac12
60 changed files with 2191 additions and 1113 deletions

View file

@ -7,11 +7,14 @@ mod section;
pub use self::item::{item, item_row};
pub use self::section::{view_section, Section};
use crate::widget::{column, Column};
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([0, 24]).max_width(678)
column::with_children(children)
.spacing(24)
.padding([0, 24])
.max_width(678)
}