Hi there,
the attached patch adds fg_minimize and bg_minimize to default themes and use those values to properly color minimized clients into tasklist.

--
Stefano Verna
http://www.stefanoverna.com
>From 72ab110634d5de6cfd9ed149774a8f29afbbc176 Mon Sep 17 00:00:00 2001
From: steffoz <[email protected]>
Date: Fri, 13 Feb 2009 13:54:28 -0700
Subject: [PATCH] Added fg_minimize and bg_minimize to properly color tasklist minimized clients

---
 lib/awful/widget.lua.in |    5 +++++
 themes/default/theme.in |    2 ++
 themes/sky/theme.in     |    2 ++
 3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/lib/awful/widget.lua.in b/lib/awful/widget.lua.in
index 0b9107b..9610f5c 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 .. "<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
diff --git a/themes/default/theme.in b/themes/default/theme.in
index a8b9333..cf9e3d6 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 f0cb437..c68d938 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
-- 
1.6.1.3

Reply via email to