From 15f088196699857cdac28250d7a3857fe8b57cee Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 18 Nov 2013 15:19:54 +0100 Subject: [PATCH] tasklist: Add default colors for broken themes In case loading the theme failed and we don't have fg_normal or bg_normal, add default values for these properties. All the other colors are only used if they are defined, but these two always need to be defined. Signed-off-by: Uli Schlachter --- lib/awful/widget/tasklist.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/widget/tasklist.lua.in b/lib/awful/widget/tasklist.lua.in index a843b72a8..27afe1a09 100644 --- a/lib/awful/widget/tasklist.lua.in +++ b/lib/awful/widget/tasklist.lua.in @@ -27,8 +27,8 @@ tasklist.filter = {} local function tasklist_label(c, args) if not args then args = {} end local theme = beautiful.get() - local fg_normal = args.fg_normal or theme.tasklist_fg_normal or theme.fg_normal - local bg_normal = args.bg_normal or theme.tasklist_bg_normal or theme.bg_normal + local fg_normal = args.fg_normal or theme.tasklist_fg_normal or theme.fg_normal or "#ffffff" + local bg_normal = args.bg_normal or theme.tasklist_bg_normal or theme.bg_normal or "#000000" local fg_focus = args.fg_focus or theme.tasklist_fg_focus or theme.fg_focus local bg_focus = args.bg_focus or theme.tasklist_bg_focus or theme.bg_focus local fg_urgent = args.fg_urgent or theme.tasklist_fg_urgent or theme.fg_urgent