Adapt compositing effect

pull/7/head
reionwong 5 years ago
parent 116c1259cb
commit f229a08a1f

@ -83,9 +83,9 @@ ControlCenterDialog {
Rectangle {
id: _background
anchors.fill: parent
radius: control.height * 0.05
radius: windowHelper.compositing ? control.height * 0.05 : 0
color: FishUI.Theme.darkMode ? "#333333" : "#FFFFFF"
opacity: FishUI.Theme.darkMode ? 0.5 : 0.7
opacity: windowHelper.compositing ? FishUI.Theme.darkMode ? 0.5 : 0.7 : 1.0
antialiasing: true
border.width: 0
}

@ -35,7 +35,7 @@ Item {
id: background
anchors.fill: parent
color: FishUI.Theme.darkMode ? "#333333" : "#FFFFFF"
opacity: FishUI.Theme.darkMode ? 0.5 : 0.7
opacity: windowHelper.compositing ? FishUI.Theme.darkMode ? 0.5 : 0.7 : 1.0
Behavior on color {
ColorAnimation {
@ -45,6 +45,10 @@ Item {
}
}
FishUI.WindowHelper {
id: windowHelper
}
FishUI.PopupTips {
id: popupTips
backgroundColor: FishUI.Theme.backgroundColor

Loading…
Cancel
Save