mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 15:32:50 -05:00
Add wallpaper transition effects, courtesy of @Ly-Sec
- Just copied the shaders from noctalia since they're pretty awesome
This commit is contained in:
@@ -29,6 +29,7 @@ Singleton {
|
||||
property string configValidationOutput: ""
|
||||
property bool hasInitialConnection: false
|
||||
property bool suppressConfigToast: true
|
||||
property bool suppressNextConfigToast: false
|
||||
|
||||
readonly property string socketPath: Quickshell.env("NIRI_SOCKET")
|
||||
|
||||
@@ -345,9 +346,10 @@ Singleton {
|
||||
if (ToastService.toastVisible && ToastService.currentLevel === ToastService.levelError) {
|
||||
ToastService.hideToast()
|
||||
}
|
||||
if (hasInitialConnection && !suppressConfigToast) {
|
||||
if (hasInitialConnection && !suppressConfigToast && !suppressNextConfigToast) {
|
||||
ToastService.showInfo("niri: config reloaded")
|
||||
}
|
||||
suppressNextConfigToast = false
|
||||
}
|
||||
|
||||
if (!hasInitialConnection) {
|
||||
@@ -493,6 +495,10 @@ Singleton {
|
||||
})
|
||||
}
|
||||
|
||||
function suppressNextToast() {
|
||||
suppressNextConfigToast = true
|
||||
}
|
||||
|
||||
function findNiriWindow(toplevel) {
|
||||
if (!toplevel.appId) {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user