C++ / fmt (pull_request) Successful in 9s
JS/TS / fmt (pull_request) Successful in 14s
JS/TS / lint (pull_request) Successful in 16s
Python / fmt (pull_request) Successful in 25s
Python / lint (pull_request) Successful in 26s
Python / test (pull_request) Successful in 52s
Python / typecheck (pull_request) Successful in 1m6s
Rust / fmt (pull_request) Successful in 33s
Rust / build (pull_request) Successful in 1m30s
Python / buildcheck (pull_request) Successful in 2m17s
C++ / build (pull_request) Successful in 3m49s
Rust / clippy (pull_request) Successful in 1m11s
C++ / clang-tidy (pull_request) Successful in 5m7s
61 lines
972 B
QML
61 lines
972 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
import QtQuick
|
|
import ZShell.Config
|
|
import qs.Components
|
|
|
|
Scope {
|
|
id: root
|
|
|
|
required property Item bar
|
|
required property ShellScreen screen
|
|
|
|
ExclusionZone {
|
|
id: top
|
|
|
|
WlrLayershell.layer: WlrLayer.Overlay
|
|
anchors.left: true
|
|
anchors.right: true
|
|
anchors.top: true
|
|
exclusiveZone: root.bar.exclusiveZone
|
|
}
|
|
|
|
ExclusionZone {
|
|
id: left
|
|
|
|
anchors.left: true
|
|
}
|
|
|
|
ExclusionZone {
|
|
id: right
|
|
|
|
anchors.right: true
|
|
}
|
|
|
|
ExclusionZone {
|
|
id: bottom
|
|
|
|
anchors.bottom: true
|
|
}
|
|
|
|
Timer {
|
|
interval: 5000
|
|
running: true
|
|
|
|
onTriggered: console.log("top height:", top.exclusiveZone, "left width:", left.exclusiveZone, "right width:", right.exclusiveZone, "bottom height:", bottom.exclusiveZone)
|
|
}
|
|
|
|
component ExclusionZone: CustomWindow {
|
|
exclusiveZone: Config.bar.border
|
|
implicitHeight: 1
|
|
implicitWidth: 1
|
|
name: "Bar-Exclusion"
|
|
screen: root.screen
|
|
|
|
mask: Region {
|
|
}
|
|
}
|
|
}
|