C++ / fmt (pull_request) Successful in 4s
JS/TS / lint (pull_request) Successful in 19s
JS/TS / fmt (pull_request) Successful in 21s
Python / fmt (pull_request) Successful in 30s
Python / lint (pull_request) Successful in 31s
Python / test (pull_request) Successful in 1m2s
Python / typecheck (pull_request) Failing after 1m5s
Rust / fmt (pull_request) Successful in 43s
C++ / build (pull_request) Successful in 2m25s
Rust / build (pull_request) Successful in 1m42s
Python / buildcheck (pull_request) Successful in 2m27s
Rust / clippy (pull_request) Successful in 1m29s
C++ / clang-tidy (pull_request) Successful in 3m56s
57 lines
806 B
QML
57 lines
806 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
|
|
Variants {
|
|
model: Quickshell.screens
|
|
|
|
Scope {
|
|
id: scope
|
|
|
|
required property ShellScreen modelData
|
|
|
|
function rebuild(): void {
|
|
loader.active = false;
|
|
loader.active = true;
|
|
}
|
|
|
|
LazyLoader {
|
|
id: loader
|
|
|
|
active: true
|
|
|
|
Drawer {
|
|
screen: scope.modelData
|
|
}
|
|
}
|
|
|
|
Connections {
|
|
function onConfigPositionChanged(): void {
|
|
Qt.callLater(scope.rebuild);
|
|
}
|
|
|
|
target: (loader.item as Drawer)?.geometry ?? null
|
|
}
|
|
}
|
|
|
|
component Drawer: Scope {
|
|
id: drawer
|
|
|
|
readonly property alias geometry: content.geometry
|
|
required property ShellScreen screen
|
|
|
|
Exclusions {
|
|
bar: content.bar
|
|
geometry: content.geometry
|
|
screen: drawer.screen
|
|
}
|
|
|
|
Windows {
|
|
id: content
|
|
|
|
screen: drawer.screen
|
|
}
|
|
}
|
|
}
|