mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-26 02:27:30 -05:00
26 lines
521 B
QML
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()
|
|
}
|
|
}
|
|
}
|