fix: misc fixes

This commit is contained in:
ferreo 2025-07-16 13:12:58 +01:00
parent c60c45b32e
commit 1b2b6def73
11 changed files with 31 additions and 526 deletions

View file

@ -13,7 +13,7 @@ PanelWindow {
anchors.left: true
anchors.right: true
margins.top: barHeight
visible: activeWindowWrapper.shouldShow
visible: !activeWindowWrapper.finallyHidden
implicitHeight: activeWindowTitleContainer.height
implicitWidth: activeWindowTitleContainer.x
property int barHeight: 36
@ -39,13 +39,24 @@ PanelWindow {
width: parent.width
property int fullHeight: activeWindowTitleContainer.height
property bool shouldShow: false
property bool finallyHidden: false
Timer {
id: visibilityTimer
interval: 4000
interval: 1200
running: false
onTriggered: {
activeWindowWrapper.shouldShow = false;
hideTimer.restart();
}
}
Timer {
id: hideTimer
interval: 300
running: false
onTriggered: {
activeWindowWrapper.finallyHidden = true;
}
}
@ -54,9 +65,11 @@ PanelWindow {
function onActiveToplevelChanged() {
if (ToplevelManager.activeToplevel?.appId) {
activeWindowWrapper.shouldShow = true;
activeWindowWrapper.finallyHidden = false;
visibilityTimer.restart();
} else {
activeWindowWrapper.shouldShow = false;
hideTimer.restart();
visibilityTimer.stop();
}
}
@ -67,8 +80,6 @@ PanelWindow {
opacity: shouldShow ? 1 : 0
clip: true
Behavior on height {
NumberAnimation {
duration: 300