summaryrefslogtreecommitdiff
path: root/modules/background/Border.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-08 13:32:27 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-08 13:32:27 +1000
commitac2ef10d3f049c96086ef8c337b7820a8fac970a (patch)
tree1ad83b8b96ad59423a7f2694298c77e516d5c4d4 /modules/background/Border.qml
parentwallpaper: fix flash when changing wallpapers (diff)
downloadcaelestia-shell-ac2ef10d3f049c96086ef8c337b7820a8fac970a.tar.gz
caelestia-shell-ac2ef10d3f049c96086ef8c337b7820a8fac970a.tar.bz2
caelestia-shell-ac2ef10d3f049c96086ef8c337b7820a8fac970a.zip
refactor: move drawers into separate module
Diffstat (limited to 'modules/background/Border.qml')
-rw-r--r--modules/background/Border.qml108
1 files changed, 0 insertions, 108 deletions
diff --git a/modules/background/Border.qml b/modules/background/Border.qml
deleted file mode 100644
index 3c2958a..0000000
--- a/modules/background/Border.qml
+++ /dev/null
@@ -1,108 +0,0 @@
-pragma ComponentBehavior: Bound
-
-import "root:/widgets"
-import "root:/services"
-import "root:/config"
-import Quickshell
-import QtQuick
-import QtQuick.Effects
-
-Scope {
- id: root
-
- required property ShellScreen screen
-
- StyledWindow {
- id: win
-
- screen: root.screen
- name: "border"
- exclusionMode: ExclusionMode.Ignore
-
- mask: Region {
- x: BorderConfig.thickness
- y: BorderConfig.thickness
- width: win.screen.width - BorderConfig.thickness * 2
- height: win.screen.height - BorderConfig.thickness * 2
- intersection: Intersection.Xor
- }
-
- anchors.top: true
- anchors.bottom: true
- anchors.left: true
- anchors.right: true
-
- 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 {
- id: effect
-
- visible: false
- anchors.fill: parent
- maskEnabled: true
- maskInverted: true
- maskSource: mask
- source: rect
- maskThresholdMin: 0.5
- maskSpreadAtMin: 1
- }
-
- LayerShadow {
- source: effect
- }
-
- MouseArea {
- anchors.fill: parent
- hoverEnabled: true
- onPositionChanged: event => Drawers.setPosForScreen(root.screen, event.x, event.y)
- }
- }
-
- ExclusionZone {
- anchors.left: false
- }
-
- ExclusionZone {
- anchors.top: false
- }
-
- ExclusionZone {
- anchors.right: false
- }
-
- ExclusionZone {
- anchors.bottom: false
- }
-
- component ExclusionZone: StyledWindow {
- screen: root.screen
- name: "border-exclusion"
- width: BorderConfig.thickness
- height: BorderConfig.thickness
-
- anchors.top: true
- anchors.left: true
- anchors.bottom: true
- anchors.right: true
- }
-}