RibbonRectangle: Bug fix and performance improve.
This commit is contained in:
parent
b718d18b5e
commit
b5d873b23e
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue