chore: re-export iced row and column

This removes the custom row and column implementations and uses the iced ones directly.
This commit is contained in:
Vukašin Vojinović 2026-04-01 23:24:53 +02:00 committed by Michael Murphy
parent a9e0671075
commit fdf3369cea
20 changed files with 103 additions and 227 deletions

View file

@ -65,7 +65,7 @@ where
let selected = val.model.is_active(entity);
let context_menu = (val.item_context_builder)(item);
widget::column()
widget::column::with_capacity(2)
.spacing(val.item_spacing)
.push(
widget::divider::horizontal::default()
@ -73,7 +73,7 @@ where
.padding(val.divider_padding),
)
.push(
widget::row()
widget::row::with_capacity(2)
.spacing(space_xxxs)
.align_y(Alignment::Center)
.push_maybe(
@ -81,7 +81,7 @@ where
.map(|icon| icon.size(val.icon_size)),
)
.push(
widget::column()
widget::column::with_capacity(2)
.push(widget::text::body(item.get_text(Category::default())))
.push({
let mut elements = val

View file

@ -99,7 +99,7 @@ where
};
// Build the category header
widget::row()
widget::row::with_capacity(2)
.spacing(val.icon_spacing)
.push(widget::text::heading(category.to_string()))
.push_maybe(match sort_state {
@ -152,7 +152,7 @@ where
categories
.iter()
.map(|category| {
widget::row()
widget::row::with_capacity(2)
.spacing(val.icon_spacing)
.push_maybe(
item.get_icon(*category)