forked from Shinonome/dots-hyprland
Merge branch 'main' into keybinds-settings
This commit is contained in:
@@ -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
|
||||
}
|
||||
+13
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user