nosignal-shell/modules/drawers/Drawers.qml
2 * r + 2 * t 23482ac1f7 refactor: split drawers
Split off interactions into new file
Also fix hover osd
2025-05-08 13:45:08 +10:00

52 lines
1.1 KiB
QML

import "root:/widgets"
import "root:/config"
import Quickshell
Variants {
model: Quickshell.screens
Scope {
id: scope
required property ShellScreen modelData
Exclusions {
screen: scope.modelData
}
StyledWindow {
id: win
screen: scope.modelData
name: "drawers"
exclusionMode: ExclusionMode.Ignore
mask: Region {
x: BorderConfig.thickness
y: BorderConfig.thickness
width: scope.modelData.width - BorderConfig.thickness * 2
height: scope.modelData.height - BorderConfig.thickness * 2
intersection: Intersection.Xor
}
anchors.top: true
anchors.bottom: true
anchors.left: true
anchors.right: true
Border {
id: border
visible: false
}
LayerShadow {
source: border
}
Interactions {
screen: scope.modelData
}
}
}
}