nosignal-shell/modules/drawers/Border.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

44 lines
809 B
QML

import "root:/widgets"
import "root:/services"
import "root:/config"
import Quickshell
import QtQuick
import QtQuick.Effects
Item {
id: root
anchors.fill: parent
StyledRect {
id: rect
anchors.fill: parent
color: Colours.alpha(BorderConfig.colour, false)
visible: false
}
Item {
id: mask
anchors.fill: parent
layer.enabled: true
visible: false
Rectangle {
anchors.fill: parent
anchors.margins: BorderConfig.thickness
radius: BorderConfig.rounding
}
}
MultiEffect {
anchors.fill: parent
maskEnabled: true
maskInverted: true
maskSource: mask
source: rect
maskThresholdMin: 0.5
maskSpreadAtMin: 1
}
}