feat: transparent button style

This commit is contained in:
Ashley Wulber 2022-11-17 20:49:20 -05:00
parent 3850def414
commit a8c753d429
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
4 changed files with 36 additions and 9 deletions

View file

@ -14,7 +14,10 @@ use crate::{
widget::icon,
};
pub fn icon_button<'a, M: 'a, Renderer>(name: &str, icon_style: <Renderer::Theme as iced_native::svg::StyleSheet>::Style) -> Button<'a, M, Renderer>
pub fn icon_button<'a, M: 'a, Renderer>(
name: &str,
icon_style: <Renderer::Theme as iced_native::svg::StyleSheet>::Style,
) -> Button<'a, M, Renderer>
where
Renderer::Theme: iced_native::svg::StyleSheet + iced_style::button::StyleSheet,
Renderer: iced_native::Renderer + iced_native::svg::Renderer + 'a,