forked from Shinonome/dots-hyprland
add overlay
This commit is contained in:
@@ -79,6 +79,22 @@ Singleton {
|
||||
property bool inhibit: false
|
||||
}
|
||||
|
||||
property JsonObject overlay: JsonObject {
|
||||
property list<string> open: ["crosshair"]
|
||||
property JsonObject crosshair: JsonObject {
|
||||
property bool pinned: false
|
||||
property bool clickthrough: true
|
||||
property real x: 100
|
||||
property real y: 100
|
||||
}
|
||||
property JsonObject volumeMixer: JsonObject {
|
||||
property bool pinned: false
|
||||
property bool clickthrough: false
|
||||
property real x: 55
|
||||
property real y: 188
|
||||
}
|
||||
}
|
||||
|
||||
property JsonObject timer: JsonObject {
|
||||
property JsonObject pomodoro: JsonObject {
|
||||
property bool running: false
|
||||
|
||||
+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
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
MouseArea {
|
||||
id: root
|
||||
|
||||
// uh this is stupid turns out we don't need anything here
|
||||
|
||||
Reference in New Issue
Block a user