nosignal-shell/modules/nexus/NexusState.qml
2026-06-07 02:57:07 +10:00

30 lines
674 B
QML

import QtQuick
import Quickshell
import Quickshell.Bluetooth
QtObject {
property ShellScreen screen
property bool isWindow
property int currentPageIdx
property list<int> subPageIdxStack
property bool searchOpen
property string selectedWallpaperCategory
property BluetoothDevice selectedBtDevice
signal close
signal subPageOpened(idx: int)
signal subPageClosed
function openSubPage(idx: int): void {
subPageIdxStack.push(idx);
subPageOpened(idx);
}
function closeSubPage(): void {
subPageClosed();
subPageIdxStack.pop();
}
onCurrentPageIdxChanged: subPageIdxStack.length = 0
}