summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-13 05:53:40 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-13 05:53:40 +0200
commit52c84c4975d75baf313243d422d96581daca19bf (patch)
tree510da2f730af56b364438176b7b44a94369e052c /style
parent1de7da1091c697e4f3f746b5df0e02aff7e2bc3e (diff)
downloadiced-52c84c4975d75baf313243d422d96581daca19bf.tar.gz
iced-52c84c4975d75baf313243d422d96581daca19bf.tar.bz2
iced-52c84c4975d75baf313243d422d96581daca19bf.zip
Remove `border_radius` support for `slider::Rail`
Our current quad shader may produce weird-looking results with non-integral scaling factors.
Diffstat (limited to 'style')
-rw-r--r--style/src/slider.rs2
-rw-r--r--style/src/theme.rs1
2 files changed, 0 insertions, 3 deletions
diff --git a/style/src/slider.rs b/style/src/slider.rs
index d5db1853..884d3871 100644
--- a/style/src/slider.rs
+++ b/style/src/slider.rs
@@ -17,8 +17,6 @@ pub struct Rail {
pub colors: (Color, Color),
/// The width of the stroke of a slider rail.
pub width: f32,
- /// The border radius of the slider.
- pub border_radius: f32,
}
/// The appearance of the handle of a slider.
diff --git a/style/src/theme.rs b/style/src/theme.rs
index b195940e..6711fd72 100644
--- a/style/src/theme.rs
+++ b/style/src/theme.rs
@@ -422,7 +422,6 @@ impl slider::StyleSheet for Theme {
palette.primary.base.color,
),
width: 2.0,
- border_radius: 2.0,
},
handle: slider::Handle {
color: palette.background.base.color,