This commit is contained in:
朱子楚\zhuzi 2024-02-25 11:52:00 +08:00
parent 5c1e67f3b6
commit 86c94c6c75
2 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import QtGraphicalEffects 1.0
import FluentUI 1.0
@ -7,6 +8,7 @@ FluRectangle {
id:control
color: "#00000000"
layer.enabled: !FluTools.isSoftware()
layer.textureSize: Qt.size(control.width*Math.ceil(Screen.devicePixelRatio),control.height*Math.ceil(Screen.devicePixelRatio))
layer.effect: OpacityMask{
maskSource: FluRectangle{
radius: control.radius

View File

@ -7,6 +7,7 @@ FluRectangle {
id:control
color: "#00000000"
layer.enabled: !FluTools.isSoftware()
layer.textureSize: Qt.size(control.width*Math.ceil(Screen.devicePixelRatio),control.height*Math.ceil(Screen.devicePixelRatio))
layer.effect: OpacityMask{
maskSource: ShaderEffectSource{
sourceItem: FluRectangle{