From fc394d61fc62c05d73fa85dab153c60601eb583f Mon Sep 17 00:00:00 2001 From: steffoz Date: Fri, 13 Feb 2009 13:54:28 -0700 Subject: [PATCH] Added fg_minimize and bg_minimize to properly color tasklist minimized clients Signed-off-by: Julien Danjou --- lib/awful/widget.lua.in | 5 +++++ themes/default/theme.in | 2 ++ themes/sky/theme.in | 2 ++ 3 files changed, 9 insertions(+) diff --git a/lib/awful/widget.lua.in b/lib/awful/widget.lua.in index 0b9107b7..9610f5c2 100644 --- a/lib/awful/widget.lua.in +++ b/lib/awful/widget.lua.in @@ -310,6 +310,8 @@ local function widget_tasklist_label_common(c, args) 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 local bg_urgent = args.bg_urgent or theme.tasklist_bg_urgent or theme.bg_urgent + local fg_minimize = args.fg_minimize or theme.tasklist_fg_minimize or theme.fg_minimize + local bg_minimize = args.bg_minimize or theme.tasklist_bg_minimize or theme.bg_minimize local floating_icon = args.floating_icon or theme.tasklist_floating_icon local font = args.font or theme.tasklist_font or theme.font or "" local bg = nil @@ -334,6 +336,9 @@ local function widget_tasklist_label_common(c, args) elseif c.urgent and fg_urgent then bg = bg_urgent text = text .. ""..name.."" + elseif c.minimize and fg_minimize and bg_minimize then + bg = bg_minimize + text = text .. ""..name.."" else text = text .. name end diff --git a/themes/default/theme.in b/themes/default/theme.in index a8b93331..cf9e3d66 100644 --- a/themes/default/theme.in +++ b/themes/default/theme.in @@ -7,10 +7,12 @@ font = sans 8 bg_normal = #222222 bg_focus = #535d6c bg_urgent = #ff0000 +bg_minimize = #444444 fg_normal = #aaaaaa fg_focus = #ffffff fg_urgent = #ffffff +fg_minimize = #ffffff border_width = 1 border_normal = #000000 diff --git a/themes/sky/theme.in b/themes/sky/theme.in index f0cb4378..c68d938f 100644 --- a/themes/sky/theme.in +++ b/themes/sky/theme.in @@ -10,10 +10,12 @@ font = sans 8 bg_focus = #e2eeea bg_normal = #729fcf bg_urgent = #fce94f +bg_minimize = #0067ce fg_normal = #2e3436 fg_focus = #2e3436 fg_urgent = #2e3436 +fg_minimize = #2e3436 border_width = 2 border_normal = #dae3e0