fix(themes: xresources): load fallback theme from theme_assets instead of using unthemed svg if svg libs are not installed (#3641)

This commit is contained in:
Actionless Loveless 2022-06-27 09:01:32 +02:00 committed by GitHub
parent 29c0057795
commit 02fa372d9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,7 +155,10 @@ else
end
if not theme.wallpaper then
theme.wallpaper = themes_path.."xresources/wallpaper.svg"
gdebug.print_warning("Loading fallback wallpaper.")
theme.wallpaper = function(s)
return theme_assets.wallpaper(wallpaper_bg, wallpaper_fg, wallpaper_alt_fg, s)
end
end
theme.wallpaper_bg = wallpaper_bg