Fix Material Slider appearence

regression since 4b9fb89332
This commit is contained in:
Olivier Goffart 2023-08-22 09:20:44 +02:00
parent 439ce4455e
commit 7994579c1e

View file

@ -59,8 +59,8 @@ export component Slider {
background: Palette.primary;
x: vertical ? (parent.width - self.width) / 2 : (parent.width - i-handle.width) * (root.value - root.minimum) / (root.maximum - root.minimum);
y: vertical ? (parent.height - i-handle.height) * (root.value - root.minimum) / (root.maximum - root.minimum) : (parent.height - self.height) / 2;
width: i-state-layer.width;
height: i-state-layer.height;
width: vertical ? root.width : root.height;
height: vertical ? root.width : root.height;
border-radius: max(self.width, self.height) / 2;
drop-shadow-color: Palette.shadow;
drop-shadow-blur: Elevation.level1;