mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Several changes, fix messy behaviour for PillIndicator, fix System Settings size, fix logout button
This commit is contained in:
@@ -180,5 +180,30 @@ Item {
|
||||
if (showPill) {
|
||||
hideAnim.start();
|
||||
}
|
||||
// Stop the show timer if it's running
|
||||
showTimer.stop();
|
||||
}
|
||||
|
||||
function showDelayed() {
|
||||
if (!showPill) {
|
||||
shouldAnimateHide = autoHide;
|
||||
// Add a 500ms delay before showing
|
||||
showTimer.start();
|
||||
} else {
|
||||
// Reset hide timer if already shown
|
||||
hideAnim.stop();
|
||||
delayedHideAnim.restart();
|
||||
}
|
||||
}
|
||||
|
||||
// Timer for delayed show
|
||||
Timer {
|
||||
id: showTimer
|
||||
interval: 500 // 500ms delay
|
||||
onTriggered: {
|
||||
if (!showPill) {
|
||||
showAnim.start();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user