Files
illogical-impulse/dots/.config/quickshell/ii/modules/waffle/actionCenter/ActionCenterContext.qml
T
2025-11-19 23:39:18 +01:00

26 lines
521 B
QML

pragma Singleton
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Controls
import Quickshell
Singleton {
id: root
property StackView stackView
function push(component) {
if (stackView) {
item = stackView.push(component)
stackView.implicitWidth = item.implicitWidth
stackView.implicitHeight = item.implicitHeight
}
}
function back() {
if (stackView && stackView.depth > 1) {
stackView.pop()
}
}
}