forked from Shinonome/dots-hyprland
overlay: add config option for clickthrough widget opacity
This commit is contained in:
@@ -380,6 +380,7 @@ Singleton {
|
|||||||
property JsonObject overlay: JsonObject {
|
property JsonObject overlay: JsonObject {
|
||||||
property bool openingZoomAnimation: true
|
property bool openingZoomAnimation: true
|
||||||
property bool darkenScreen: true
|
property bool darkenScreen: true
|
||||||
|
property real clickthroughOpacity: 0.7
|
||||||
}
|
}
|
||||||
|
|
||||||
property JsonObject overview: JsonObject {
|
property JsonObject overview: JsonObject {
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ AbstractOverlayWidget {
|
|||||||
maximumX: root.parent.width - root.width
|
maximumX: root.parent.width - root.width
|
||||||
maximumY: root.parent.height - root.height
|
maximumY: root.parent.height - root.height
|
||||||
}
|
}
|
||||||
|
opacity: (GlobalStates.overlayOpen || !clickthrough) ? 1.0 : Config.options.overlay.clickthroughOpacity
|
||||||
|
|
||||||
// Guarded states & registration funcs
|
// Guarded states & registration funcs
|
||||||
property bool open: Persistent.states.overlay.open
|
property bool open: Persistent.states.overlay.open
|
||||||
|
|||||||
Reference in New Issue
Block a user