From 02fa372d9e6e692b608cb2e1b46df45984830df1 Mon Sep 17 00:00:00 2001 From: Actionless Loveless Date: Mon, 27 Jun 2022 09:01:32 +0200 Subject: [PATCH] fix(themes: xresources): load fallback theme from theme_assets instead of using unthemed svg if svg libs are not installed (#3641) --- themes/xresources/theme.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/xresources/theme.lua b/themes/xresources/theme.lua index 068a46557..c4b36cf4d 100644 --- a/themes/xresources/theme.lua +++ b/themes/xresources/theme.lua @@ -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