forked from Shinonome/dots-hyprland
overlay: add option for zoom anim and darkening surface
This commit is contained in:
@@ -20,7 +20,7 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
property real initScale: 1.08
|
||||
property real initScale: Config.options.overlay.openingZoomAnimation ? 1.08 : 1.000001
|
||||
scale: initScale
|
||||
Component.onCompleted: {
|
||||
scale = 1
|
||||
@@ -33,6 +33,7 @@ Item {
|
||||
id: bg
|
||||
anchors.fill: parent
|
||||
color: Appearance.colors.colScrim
|
||||
visible: Config.options.overlay.darkenScreen && opacity > 0
|
||||
opacity: (GlobalStates.overlayOpen && root.scale !== initScale) ? 1 : 0
|
||||
Behavior on opacity {
|
||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||
|
||||
Reference in New Issue
Block a user