feat: quad shadows

This commit is contained in:
Nick Senger 2023-11-08 19:12:53 -08:00 committed by Héctor Ramón Jiménez
parent b3e3f6e3c9
commit cc906c83cd
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
33 changed files with 305 additions and 25 deletions

View file

@ -404,6 +404,7 @@ where
border_radius: styling.border_radius,
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
Background::Color([0.0, 0.0, 0.0, 0.5].into()),
);
@ -415,6 +416,7 @@ where
border_radius: styling.border_radius,
border_width: styling.border_width,
border_color: styling.border_color,
shadow: Default::default(),
},
styling
.background

View file

@ -287,6 +287,7 @@ where
border_radius: custom_style.border_radius,
border_width: custom_style.border_width,
border_color: custom_style.border_color,
shadow: Default::default(),
},
custom_style.background,
);

View file

@ -344,6 +344,7 @@ pub fn draw_background<Renderer>(
border_radius: appearance.border_radius,
border_width: appearance.border_width,
border_color: appearance.border_color,
shadow: Default::default(),
},
appearance
.background

View file

@ -309,6 +309,7 @@ where
border_color: appearance.border_color,
border_width: appearance.border_width,
border_radius: appearance.border_radius,
shadow: Default::default(),
},
appearance.background,
);
@ -519,6 +520,7 @@ where
border_color: Color::TRANSPARENT,
border_width: 0.0,
border_radius: appearance.border_radius,
shadow: Default::default(),
},
appearance.selected_background,
);

View file

@ -921,6 +921,7 @@ pub fn draw<Renderer, T>(
.border_radius,
border_width: hovered_region_style.border_width,
border_color: hovered_region_style.border_color,
shadow: Default::default(),
},
theme.hovered_region(style).background,
);
@ -950,6 +951,7 @@ pub fn draw<Renderer, T>(
border_radius: hovered_region_style.border_radius,
border_width: hovered_region_style.border_width,
border_color: hovered_region_style.border_color,
shadow: Default::default(),
},
theme.hovered_region(style).background,
);
@ -1013,6 +1015,7 @@ pub fn draw<Renderer, T>(
border_radius: 0.0.into(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
highlight.color,
);

View file

@ -656,6 +656,7 @@ pub fn draw<'a, T, Renderer>(
border_color: style.border_color,
border_width: style.border_width,
border_radius: style.border_radius,
shadow: Default::default(),
},
style.background,
);

View file

@ -133,6 +133,7 @@ where
border_radius: style.border_radius,
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
style.background,
);
@ -147,6 +148,7 @@ where
border_radius: style.border_radius,
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
style.bar,
);

View file

@ -315,6 +315,7 @@ where
border_radius: (size / 2.0).into(),
border_width: custom_style.border_width,
border_color: custom_style.border_color,
shadow: Default::default(),
},
custom_style.background,
);
@ -331,6 +332,7 @@ where
border_radius: (dot_size / 2.0).into(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
custom_style.dot_color,
);

View file

@ -127,6 +127,7 @@ where
border_radius: style.radius,
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
style.color,
);

View file

@ -912,6 +912,7 @@ pub fn draw<Renderer>(
border_radius: style.border_radius,
border_width: style.border_width,
border_color: style.border_color,
shadow: Default::default(),
},
style
.background
@ -932,6 +933,7 @@ pub fn draw<Renderer>(
border_radius: style.scroller.border_radius,
border_width: style.scroller.border_width,
border_color: style.scroller.border_color,
shadow: Default::default(),
},
style.scroller.color,
);

View file

@ -401,6 +401,7 @@ pub fn draw<T, R>(
border_radius: style.rail.border_radius,
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
style.rail.colors.0,
);
@ -416,6 +417,7 @@ pub fn draw<T, R>(
border_radius: style.rail.border_radius,
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
style.rail.colors.1,
);
@ -431,6 +433,7 @@ pub fn draw<T, R>(
border_radius: handle_border_radius,
border_width: style.handle.border_width,
border_color: style.handle.border_color,
shadow: Default::default(),
},
style.handle.color,
);

View file

@ -470,6 +470,7 @@ where
border_radius: appearance.border_radius,
border_width: appearance.border_width,
border_color: appearance.border_color,
shadow: Default::default(),
},
appearance.background,
);
@ -511,6 +512,7 @@ where
border_radius: 0.0.into(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
theme.value_color(&self.style),
);
@ -526,6 +528,7 @@ where
border_radius: 0.0.into(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
theme.selection_color(&self.style),
);

View file

@ -1085,6 +1085,7 @@ pub fn draw<Renderer>(
border_radius: appearance.border_radius,
border_width: appearance.border_width,
border_color: appearance.border_color,
shadow: Default::default(),
},
appearance.background,
);
@ -1134,6 +1135,7 @@ pub fn draw<Renderer>(
border_radius: 0.0.into(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
theme.value_color(style),
))
@ -1175,6 +1177,7 @@ pub fn draw<Renderer>(
border_radius: 0.0.into(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
theme.selection_color(style),
)),

View file

@ -317,6 +317,7 @@ where
border_color: style
.background_border
.unwrap_or(style.background),
shadow: Default::default(),
},
style.background,
);
@ -341,6 +342,7 @@ where
border_color: style
.foreground_border
.unwrap_or(style.foreground),
shadow: Default::default(),
},
style.foreground,
);

View file

@ -400,6 +400,7 @@ pub fn draw<T, R>(
border_radius: style.rail.border_radius,
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
style.rail.colors.1,
);
@ -415,6 +416,7 @@ pub fn draw<T, R>(
border_radius: style.rail.border_radius,
border_width: 0.0,
border_color: Color::TRANSPARENT,
shadow: Default::default(),
},
style.rail.colors.0,
);
@ -430,6 +432,7 @@ pub fn draw<T, R>(
border_radius: handle_border_radius,
border_width: style.handle.border_width,
border_color: style.handle.border_color,
shadow: Default::default(),
},
style.handle.color,
);