C++ / fmt (pull_request) Successful in 4s
JS/TS / lint (pull_request) Successful in 16s
JS/TS / fmt (pull_request) Successful in 23s
Python / fmt (pull_request) Successful in 33s
Python / lint (pull_request) Successful in 32s
Python / test (pull_request) Successful in 1m0s
Python / typecheck (pull_request) Failing after 1m8s
Rust / fmt (pull_request) Successful in 34s
Rust / build (pull_request) Successful in 1m46s
C++ / build (pull_request) Successful in 2m33s
Rust / clippy (pull_request) Successful in 1m30s
Python / buildcheck (pull_request) Successful in 2m41s
C++ / clang-tidy (pull_request) Successful in 7m9s
62 lines
1.0 KiB
QML
62 lines
1.0 KiB
QML
pragma ComponentBehavior: Bound
|
|
|
|
import Quickshell
|
|
import QtQuick
|
|
import ZShell.Config
|
|
import qs.Components
|
|
|
|
Scope {
|
|
id: root
|
|
|
|
required property Item bar
|
|
required property EdgeGeometry geometry
|
|
required property ShellScreen screen
|
|
|
|
ExclusionZone {
|
|
id: top
|
|
|
|
anchors.top: true
|
|
hasBar: root.geometry.barOnTop
|
|
}
|
|
|
|
ExclusionZone {
|
|
id: left
|
|
|
|
anchors.left: true
|
|
hasBar: root.geometry.barOnLeft
|
|
}
|
|
|
|
ExclusionZone {
|
|
id: right
|
|
|
|
anchors.right: true
|
|
}
|
|
|
|
ExclusionZone {
|
|
id: bottom
|
|
|
|
anchors.bottom: true
|
|
hasBar: root.geometry.barOnBottom
|
|
}
|
|
|
|
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 {
|
|
property bool hasBar
|
|
|
|
exclusiveZone: hasBar ? root.bar.exclusiveZone : Config.bar.border
|
|
implicitHeight: 1
|
|
implicitWidth: 1
|
|
name: "Bar-Exclusion"
|
|
screen: root.screen
|
|
|
|
mask: Region {
|
|
}
|
|
}
|
|
}
|