Merge branch 'main' into keybinds-settings

This commit is contained in:
Madjid Taha
2025-11-06 12:30:05 +01:00
committed by GitHub
72 changed files with 2148 additions and 707 deletions
@@ -0,0 +1,13 @@
import QtQuick
import Qt5Compat.GraphicalEffects
import qs.modules.common
DropShadow {
required property var target
source: target
anchors.fill: source
radius: 8
samples: radius * 2 + 1
color: Appearance.colors.colShadow
transparentBorder: true
}
@@ -0,0 +1,13 @@
import QtQuick
import Quickshell
import qs.modules.common
/*
* Abstract widgets for an overlay. Doesn't contain any visuals.
*/
AbstractWidget {
id: root
property bool pinned: false // Whether to stay visible when the overlay is dismissed
property bool clickthrough: true // When pinned, whether to allow clicks go through
}
@@ -0,0 +1,26 @@
import QtQuick
import Quickshell
import qs.modules.common
/*
* Widget to be placed on a WidgetCanvas
*/
MouseArea {
id: root
property bool draggable: true
drag.target: draggable ? root : undefined
cursorShape: (draggable && containsPress) ? Qt.ClosedHandCursor : draggable ? Qt.OpenHandCursor : Qt.ArrowCursor
function center() {
root.x = (root.parent.width - root.width) / 2
root.y = (root.parent.height - root.height) / 2
}
Behavior on x {
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
}
Behavior on y {
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
}
}
@@ -0,0 +1,7 @@
import QtQuick
MouseArea {
id: root
// uh this is stupid turns out we don't need anything here
}