feat(button): add ImageButton widget variant
This commit is contained in:
parent
470b966e8d
commit
34386561b3
6 changed files with 191 additions and 20 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue