mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
parent
439ce4455e
commit
7994579c1e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue