feat!(widget): rewrite button & icon widget APIs
This commit is contained in:
parent
18debe546d
commit
4e4eeaac12
60 changed files with 2191 additions and 1113 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue