RibbonRectangle: Bug fix and performance improve.

This commit is contained in:
Mentalflow 2024-03-28 09:06:12 +08:00
parent b718d18b5e
commit b5d873b23e
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ Item {
Canvas { Canvas {
id: canvas id: canvas
anchors.fill: parent anchors.fill: parent
visible: false
onPaint: { onPaint: {
var ctx = getContext("2d") var ctx = getContext("2d")
ctx.clearRect(0, 0, width, height) ctx.clearRect(0, 0, width, height)
@ -61,9 +61,9 @@ Item {
opacity: 0 opacity: 0
} }
OpacityMask { OpacityMask {
anchors.fill: canvas anchors.fill: parent
source: container source: container
maskSource: canvas maskSource: canvas
invert: control.color === "transparent" invert: control.color === "transparent" || control.color === "#00000000"
} }
} }