Files
z-bar-qt/Modules/SettingsNew/SettingsState.qml
T
zach ea4d5376f6
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 15s
Python / lint-format (pull_request) Successful in 29s
Python / test (pull_request) Successful in 54s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m34s
initial commit for settings revamp
2026-06-23 16:22:56 +02:00

34 lines
684 B
QML

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