fix: misc fixes
This commit is contained in:
parent
c60c45b32e
commit
1b2b6def73
11 changed files with 31 additions and 526 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue