1
0
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:
bbedward
2025-09-22 12:28:15 -04:00
parent 78683032aa
commit ca11735c1d
18 changed files with 897 additions and 74 deletions

View File

@@ -218,8 +218,10 @@ Singleton {
CompositorService.isNiri && NiriService.doScreenTransition()
}
function switchTheme(themeName, savePrefs = true) {
screenTransition()
function switchTheme(themeName, savePrefs = true, enableTransition = true) {
if (enableTransition) {
screenTransition()
}
if (themeName === dynamic) {
currentTheme = dynamic
currentThemeCategory = dynamic
@@ -287,7 +289,7 @@ Singleton {
function switchThemeCategory(category, defaultTheme) {
currentThemeCategory = category
switchTheme(defaultTheme)
switchTheme(defaultTheme, true, false)
}
function getCatppuccinColor(variantName) {
@@ -511,6 +513,10 @@ Singleton {
return
}
if (typeof NiriService !== "undefined" && CompositorService.isNiri) {
NiriService.suppressNextToast()
}
const desired = {
"kind": kind,
"value": value,