mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 13:27:05 +08:00
fix bug #435
This commit is contained in:
parent
5c1e67f3b6
commit
86c94c6c75
@ -1,4 +1,5 @@
|
|||||||
import QtQuick 2.15
|
import QtQuick 2.15
|
||||||
|
import QtQuick.Window 2.15
|
||||||
import QtQuick.Controls 2.15
|
import QtQuick.Controls 2.15
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
import FluentUI 1.0
|
import FluentUI 1.0
|
||||||
@ -7,6 +8,7 @@ FluRectangle {
|
|||||||
id:control
|
id:control
|
||||||
color: "#00000000"
|
color: "#00000000"
|
||||||
layer.enabled: !FluTools.isSoftware()
|
layer.enabled: !FluTools.isSoftware()
|
||||||
|
layer.textureSize: Qt.size(control.width*Math.ceil(Screen.devicePixelRatio),control.height*Math.ceil(Screen.devicePixelRatio))
|
||||||
layer.effect: OpacityMask{
|
layer.effect: OpacityMask{
|
||||||
maskSource: FluRectangle{
|
maskSource: FluRectangle{
|
||||||
radius: control.radius
|
radius: control.radius
|
||||||
|
@ -7,6 +7,7 @@ FluRectangle {
|
|||||||
id:control
|
id:control
|
||||||
color: "#00000000"
|
color: "#00000000"
|
||||||
layer.enabled: !FluTools.isSoftware()
|
layer.enabled: !FluTools.isSoftware()
|
||||||
|
layer.textureSize: Qt.size(control.width*Math.ceil(Screen.devicePixelRatio),control.height*Math.ceil(Screen.devicePixelRatio))
|
||||||
layer.effect: OpacityMask{
|
layer.effect: OpacityMask{
|
||||||
maskSource: ShaderEffectSource{
|
maskSource: ShaderEffectSource{
|
||||||
sourceItem: FluRectangle{
|
sourceItem: FluRectangle{
|
||||||
|
Loading…
Reference in New Issue
Block a user