summaryrefslogtreecommitdiffstats
path: root/widget/src
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src')
-rw-r--r--widget/src/button.rs2
-rw-r--r--widget/src/checkbox.rs1
-rw-r--r--widget/src/container.rs1
-rw-r--r--widget/src/overlay/menu.rs2
-rw-r--r--widget/src/pane_grid.rs3
-rw-r--r--widget/src/pick_list.rs1
-rw-r--r--widget/src/progress_bar.rs2
-rw-r--r--widget/src/radio.rs2
-rw-r--r--widget/src/rule.rs1
-rw-r--r--widget/src/scrollable.rs2
-rw-r--r--widget/src/slider.rs3
-rw-r--r--widget/src/text_editor.rs3
-rw-r--r--widget/src/text_input.rs3
-rw-r--r--widget/src/toggler.rs2
-rw-r--r--widget/src/vertical_slider.rs3
15 files changed, 31 insertions, 0 deletions
diff --git a/widget/src/button.rs b/widget/src/button.rs
index 0ebb8dcc..44628a6a 100644
--- a/widget/src/button.rs
+++ b/widget/src/button.rs
@@ -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
diff --git a/widget/src/checkbox.rs b/widget/src/checkbox.rs
index 0353b3ad..5cc79b08 100644
--- a/widget/src/checkbox.rs
+++ b/widget/src/checkbox.rs
@@ -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,
);
diff --git a/widget/src/container.rs b/widget/src/container.rs
index cffb0458..519d4f15 100644
--- a/widget/src/container.rs
+++ b/widget/src/container.rs
@@ -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
diff --git a/widget/src/overlay/menu.rs b/widget/src/overlay/menu.rs
index f83eebea..03935e59 100644
--- a/widget/src/overlay/menu.rs
+++ b/widget/src/overlay/menu.rs
@@ -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,
);
diff --git a/widget/src/pane_grid.rs b/widget/src/pane_grid.rs
index cf1f0455..fc30716d 100644
--- a/widget/src/pane_grid.rs
+++ b/widget/src/pane_grid.rs
@@ -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,
);
diff --git a/widget/src/pick_list.rs b/widget/src/pick_list.rs
index 2e3aab6f..8931aa99 100644
--- a/widget/src/pick_list.rs
+++ b/widget/src/pick_list.rs
@@ -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,
);
diff --git a/widget/src/progress_bar.rs b/widget/src/progress_bar.rs
index 15f1277b..1e0f2a82 100644
--- a/widget/src/progress_bar.rs
+++ b/widget/src/progress_bar.rs
@@ -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,
);
diff --git a/widget/src/radio.rs b/widget/src/radio.rs
index f91b20b1..0a33825f 100644
--- a/widget/src/radio.rs
+++ b/widget/src/radio.rs
@@ -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,
);
diff --git a/widget/src/rule.rs b/widget/src/rule.rs
index cded9cb1..4a83e9d1 100644
--- a/widget/src/rule.rs
+++ b/widget/src/rule.rs
@@ -127,6 +127,7 @@ where
border_radius: style.radius,
border_width: 0.0,
border_color: Color::TRANSPARENT,
+ shadow: Default::default(),
},
style.color,
);
diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs
index 70db490a..82602a41 100644
--- a/widget/src/scrollable.rs
+++ b/widget/src/scrollable.rs
@@ -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,
);
diff --git a/widget/src/slider.rs b/widget/src/slider.rs
index 1bc94661..d89f50e0 100644
--- a/widget/src/slider.rs
+++ b/widget/src/slider.rs
@@ -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,
);
diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs
index 09a0cac0..3f3ccf72 100644
--- a/widget/src/text_editor.rs
+++ b/widget/src/text_editor.rs
@@ -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),
);
diff --git a/widget/src/text_input.rs b/widget/src/text_input.rs
index c3dce8be..f8e6c7f8 100644
--- a/widget/src/text_input.rs
+++ b/widget/src/text_input.rs
@@ -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),
)),
diff --git a/widget/src/toggler.rs b/widget/src/toggler.rs
index 941159ea..f7fb5d58 100644
--- a/widget/src/toggler.rs
+++ b/widget/src/toggler.rs
@@ -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,
);
diff --git a/widget/src/vertical_slider.rs b/widget/src/vertical_slider.rs
index a3029d76..4fdad861 100644
--- a/widget/src/vertical_slider.rs
+++ b/widget/src/vertical_slider.rs
@@ -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,
);