Added fg_minimize and bg_minimize to properly color tasklist minimized clients

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
steffoz 2009-02-13 13:54:28 -07:00 committed by Julien Danjou
parent 3f418ba79a
commit fc394d61fc
3 changed files with 9 additions and 0 deletions

View File

@ -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 .. "<span color='"..util.color_strip_alpha(fg_urgent).."'>"..name.."</span>"
elseif c.minimize and fg_minimize and bg_minimize then
bg = bg_minimize
text = text .. "<span color='"..util.color_strip_alpha(fg_minimize).."'>"..name.."</span>"
else
text = text .. name
end

View File

@ -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

View File

@ -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