fix!(widget): rename button function to button::custom

This commit is contained in:
Michael Aaron Murphy 2024-09-16 19:11:29 +02:00 committed by Jeremy Soller
parent 914d989049
commit f12de010ec
15 changed files with 28 additions and 32 deletions

View file

@ -143,7 +143,7 @@ where
pub fn menu_button<'a, Message: 'a>(
children: Vec<crate::Element<'a, Message>>,
) -> crate::widget::Button<'a, Message> {
widget::button(
widget::button::custom(
widget::Row::with_children(children)
.align_items(Alignment::Center)
.height(Length::Fill)
@ -192,7 +192,7 @@ pub fn menu_root<'a, Message, Renderer: renderer::Renderer>(
where
Element<'a, Message, crate::Theme, Renderer>: From<widget::Button<'a, Message>>,
{
widget::button(widget::text(label))
widget::button::custom(widget::text(label))
.padding([4, 12])
.style(theme::Button::MenuRoot)
.into()