refactor(widget): improvements to button and icon widgets
This commit is contained in:
parent
7f0943924a
commit
9dbc1be269
20 changed files with 399 additions and 558 deletions
|
|
@ -165,7 +165,7 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
|
|||
/// Creates the widget for window controls.
|
||||
fn window_controls(&mut self) -> Element<'a, Message> {
|
||||
let icon = |name, size, on_press| {
|
||||
widget::icon::handle::from_name(name)
|
||||
widget::icon::from_name(name)
|
||||
.size(size)
|
||||
.handle()
|
||||
.apply(widget::button::icon)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue