lock: fix rounding
Fix rounding on status and buttons
This commit is contained in:
parent
d7d4d86da2
commit
6455f6c719
1 changed files with 6 additions and 6 deletions
|
|
@ -354,13 +354,13 @@ Item {
|
||||||
fillColor: root.isLarge ? Config.border.colour : "transparent"
|
fillColor: root.isLarge ? Config.border.colour : "transparent"
|
||||||
|
|
||||||
startX: Math.ceil(innerMask.width)
|
startX: Math.ceil(innerMask.width)
|
||||||
startY: Math.ceil(innerMask.height) - height - roundingY
|
startY: Math.ceil(innerMask.height) - height - rounding
|
||||||
|
|
||||||
PathArc {
|
PathArc {
|
||||||
relativeX: -buttonsPath.roundingX
|
relativeX: -buttonsPath.roundingX
|
||||||
relativeY: buttonsPath.roundingY
|
relativeY: buttonsPath.rounding
|
||||||
radiusX: Math.min(buttonsPath.rounding, buttonsPath.width)
|
radiusX: Math.min(buttonsPath.rounding, buttonsPath.width)
|
||||||
radiusY: Math.min(buttonsPath.rounding, buttonsPath.height)
|
radiusY: buttonsPath.rounding, buttonsPath.height
|
||||||
}
|
}
|
||||||
PathLine {
|
PathLine {
|
||||||
relativeX: -(buttonsPath.width - buttonsPath.roundingX * 2)
|
relativeX: -(buttonsPath.width - buttonsPath.roundingX * 2)
|
||||||
|
|
@ -419,13 +419,13 @@ Item {
|
||||||
fillColor: root.isLarge ? Config.border.colour : "transparent"
|
fillColor: root.isLarge ? Config.border.colour : "transparent"
|
||||||
|
|
||||||
startX: Math.ceil(innerMask.width)
|
startX: Math.ceil(innerMask.width)
|
||||||
startY: height + roundingY
|
startY: height + rounding
|
||||||
|
|
||||||
PathArc {
|
PathArc {
|
||||||
relativeX: -statusPath.roundingX
|
relativeX: -statusPath.roundingX
|
||||||
relativeY: -statusPath.roundingY
|
relativeY: -statusPath.rounding
|
||||||
radiusX: Math.min(statusPath.rounding, statusPath.width)
|
radiusX: Math.min(statusPath.rounding, statusPath.width)
|
||||||
radiusY: Math.min(statusPath.rounding, statusPath.height)
|
radiusY: statusPath.rounding
|
||||||
direction: PathArc.Counterclockwise
|
direction: PathArc.Counterclockwise
|
||||||
}
|
}
|
||||||
PathLine {
|
PathLine {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue