mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Formatting
This commit is contained in:
+10
-12
@@ -122,13 +122,13 @@ Item {
|
||||
NPanel {
|
||||
id: trayPanel
|
||||
showOverlay: false // no colors overlay even if activated in settings
|
||||
|
||||
|
||||
// Override hide function to animate first
|
||||
function hide() {
|
||||
// Start hide animation
|
||||
function hide() {
|
||||
// Start hide animation
|
||||
trayMenuRect.scaleValue = 0.8
|
||||
trayMenuRect.opacityValue = 0.0
|
||||
|
||||
|
||||
// Hide after animation completes
|
||||
hideTimer.start()
|
||||
}
|
||||
@@ -136,11 +136,11 @@ Item {
|
||||
Connections {
|
||||
target: trayPanel
|
||||
ignoreUnknownSignals: true
|
||||
function onDismissed() {
|
||||
// Start hide animation
|
||||
function onDismissed() {
|
||||
// Start hide animation
|
||||
trayMenuRect.scaleValue = 0.8
|
||||
trayMenuRect.opacityValue = 0.0
|
||||
|
||||
|
||||
// Hide after animation completes
|
||||
hideTimer.start()
|
||||
}
|
||||
@@ -148,11 +148,11 @@ Item {
|
||||
|
||||
// Also handle visibility changes from external sources
|
||||
onVisibleChanged: {
|
||||
if (!visible && trayMenuRect.opacityValue > 0) {
|
||||
// Start hide animation
|
||||
if (!visible && trayMenuRect.opacityValue > 0) {
|
||||
// Start hide animation
|
||||
trayMenuRect.scaleValue = 0.8
|
||||
trayMenuRect.opacityValue = 0.0
|
||||
|
||||
|
||||
// Hide after animation completes
|
||||
hideTimer.start()
|
||||
}
|
||||
@@ -192,7 +192,6 @@ Item {
|
||||
NumberAnimation {
|
||||
duration: Style.animationSlow
|
||||
easing.type: Easing.OutExpo
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -200,7 +199,6 @@ Item {
|
||||
NumberAnimation {
|
||||
duration: Style.animationNormal
|
||||
easing.type: Easing.OutQuad
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user