feat: quad shadows
This commit is contained in:
parent
b3e3f6e3c9
commit
cc906c83cd
33 changed files with 305 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ where
|
|||
border_radius: style.radius,
|
||||
border_width: 0.0,
|
||||
border_color: Color::TRANSPARENT,
|
||||
shadow: Default::default(),
|
||||
},
|
||||
style.color,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
)),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue