fix(button): icon style variant to inherit colors from container

This commit is contained in:
Michael Aaron Murphy 2023-09-13 17:37:45 +02:00 committed by Michael Murphy
parent 2e11d62de5
commit c2d62bad52
3 changed files with 13 additions and 3 deletions

View file

@ -167,8 +167,8 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
let icon = |name, size, on_press| {
widget::icon::from_name(name)
.size(size)
.handle()
.apply(widget::button::icon)
.inherit_colors()
.on_press(on_press)
};