feat(button): add ImageButton widget variant

This commit is contained in:
Michael Aaron Murphy 2023-10-30 16:32:10 +01:00 committed by Michael Murphy
parent 470b966e8d
commit 34386561b3
6 changed files with 191 additions and 20 deletions

View file

@ -8,9 +8,6 @@ use apply::Apply;
use iced_core::{font::Weight, text::LineHeight, widget::Id, Alignment, Length, Padding};
use std::borrow::Cow;
/// A [`Button`] with the highest level of attention.
///
/// There should only be one primary button used per page.
pub type Button<'a, Message> = Builder<'a, Message, Text>;
pub fn destructive<'a, Message>(label: impl Into<Cow<'a, str>>) -> Button<'a, Message> {