Adapt compositing effect
This commit is contained in:
parent
ec96594261
commit
df7622b0c9
1 changed files with 6 additions and 2 deletions
|
@ -41,9 +41,9 @@ Item {
|
|||
Rectangle {
|
||||
id: _background
|
||||
anchors.fill: parent
|
||||
radius: windowRadius
|
||||
radius: windowHelper.compositing ? windowRadius : 0
|
||||
color: FishUI.Theme.darkMode ? "#333333" : "#F2F2F2"
|
||||
opacity: FishUI.Theme.darkMode ? 0.5 : 0.4
|
||||
opacity: windowHelper.compositing ? FishUI.Theme.darkMode ? 0.5 : 0.4 : 1
|
||||
border.width: 0
|
||||
|
||||
Behavior on color {
|
||||
|
@ -54,6 +54,10 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
FishUI.WindowHelper {
|
||||
id: windowHelper
|
||||
}
|
||||
|
||||
FishUI.WindowShadow {
|
||||
view: mainWindow
|
||||
geometry: Qt.rect(root.x, root.y, root.width, root.height)
|
||||
|
|
Loading…
Reference in a new issue