utilities: extend modal scrim fade

This commit is contained in:
2 * r + 2 * t 2025-09-14 20:15:37 +10:00
parent 7427229297
commit 24c0ba77fc

View file

@ -52,12 +52,12 @@ Loader {
asynchronous: true asynchronous: true
ShapePath { ShapePath {
startX: -Config.border.rounding startX: -Config.border.rounding * 2
startY: shape.height - Config.border.thickness startY: shape.height - Config.border.thickness
strokeWidth: 0 strokeWidth: 0
fillGradient: LinearGradient { fillGradient: LinearGradient {
orientation: LinearGradient.Horizontal orientation: LinearGradient.Horizontal
x1: -Config.border.rounding x1: -Config.border.rounding * 2
GradientStop { GradientStop {
position: 0 position: 0
@ -69,6 +69,10 @@ Loader {
} }
} }
PathLine {
relativeX: Config.border.rounding
relativeY: 0
}
PathArc { PathArc {
relativeY: -Config.border.rounding relativeY: -Config.border.rounding
radiusX: Config.border.rounding radiusX: Config.border.rounding
@ -80,7 +84,7 @@ Loader {
relativeY: Config.border.rounding + Config.border.thickness relativeY: Config.border.rounding + Config.border.thickness
} }
PathLine { PathLine {
relativeX: -Config.border.rounding relativeX: -Config.border.rounding * 2
relativeY: 0 relativeY: 0
} }
} }
@ -90,7 +94,7 @@ Loader {
strokeWidth: 0 strokeWidth: 0
fillGradient: LinearGradient { fillGradient: LinearGradient {
orientation: LinearGradient.Vertical orientation: LinearGradient.Vertical
y1: -Config.border.rounding y1: -Config.border.rounding * 2
GradientStop { GradientStop {
position: 0 position: 0
@ -109,6 +113,10 @@ Loader {
radiusY: Config.border.rounding radiusY: Config.border.rounding
direction: PathArc.Counterclockwise direction: PathArc.Counterclockwise
} }
PathLine {
relativeX: 0
relativeY: -Config.border.rounding
}
PathLine { PathLine {
relativeX: Config.border.thickness relativeX: Config.border.thickness
relativeY: 0 relativeY: 0