feat: gate overview wave animation on OverviewOpenedOrClosed niri event
This commit is contained in:
parent
d7ca7e405f
commit
bd9e91c075
2 changed files with 5 additions and 2 deletions
|
|
@ -13,6 +13,7 @@ QtObject {
|
||||||
|
|
||||||
property string focusedTitle: ""
|
property string focusedTitle: ""
|
||||||
property string focusedAppId: ""
|
property string focusedAppId: ""
|
||||||
|
property bool overviewOpen: false
|
||||||
|
|
||||||
property var _focusedProc: Process {
|
property var _focusedProc: Process {
|
||||||
running: true
|
running: true
|
||||||
|
|
@ -53,6 +54,8 @@ QtObject {
|
||||||
root.focusedTitle = "";
|
root.focusedTitle = "";
|
||||||
root.focusedAppId = "";
|
root.focusedAppId = "";
|
||||||
}
|
}
|
||||||
|
} else if (ev.OverviewOpenedOrClosed !== undefined) {
|
||||||
|
root.overviewOpen = ev.OverviewOpenedOrClosed.is_open;
|
||||||
} else if (ev.WindowOpenedOrChanged !== undefined) {
|
} else if (ev.WindowOpenedOrChanged !== undefined) {
|
||||||
root.windowOpenedOrChanged(ev.WindowOpenedOrChanged.window);
|
root.windowOpenedOrChanged(ev.WindowOpenedOrChanged.window);
|
||||||
const w = ev.WindowOpenedOrChanged.window;
|
const w = ev.WindowOpenedOrChanged.window;
|
||||||
|
|
|
||||||
|
|
@ -37,10 +37,10 @@ PanelWindow {
|
||||||
property color uC1: M.Theme.base0E
|
property color uC1: M.Theme.base0E
|
||||||
property color uC2: M.Theme.base09
|
property color uC2: M.Theme.base09
|
||||||
|
|
||||||
// Wave animation: 6s sweep + 8s pause
|
// Wave animation: 6s sweep + 8s pause, only while overview is open
|
||||||
SequentialAnimation on uWavePhase {
|
SequentialAnimation on uWavePhase {
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
running: true
|
running: M.NiriIpc.overviewOpen
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
from: -200
|
from: -200
|
||||||
to: fx.width + 200
|
to: fx.width + 200
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue