Hi,

On Mon, May 18, 2009 at 4:18 PM, Julien Danjou <jul...@danjou.info> wrote:
> Johan, do you have an idea for a fix that could work with older
> ImageMagick version?

I substituted ‘-evaluate Pow 2’ with ‘-gamma 0.6’, which yields a very
similar result (comparison: http://heh.fi/tmp/awesome-titlebar-icons/)
and has been tested to work with ImageMagick 6.2.4. Patch attached.

I just noticed another problem: the sky theme contains

theme.titlebar_close_button_normal =
"@AWESOME_THEMES_PATH@/default/titlebar/close.png"
theme.titlebar_close_button_focus  =
"@AWESOME_THEMES_PATH@/default/titlebar/closer.png"

which I failed to notice when removing close.png and closer.png,
thinking they were just old dependencies of the default theme dangling
in the repository. (/me puts on the brown paper bag)

Should I post a patch that restores close.png and closer.png, or one
that changes the sky theme to use the same titlebar icons as the
default one?

Sincerely,
-- 
Jοhan Kiviniemi  http://johan.kiviniemi.name/
From 1d2be44b9d7f7ef3b840ff545317901622751344 Mon Sep 17 00:00:00 2001
From: Johan Kiviniemi <de...@johan.kiviniemi.name>
Date: Mon, 18 May 2009 18:50:53 +0300
Subject: [PATCH] themes: Old ImageMagick compatibility

Verified to build with ImageMagick 6.2.4.

Signed-off-by: Johan Kiviniemi <de...@johan.kiviniemi.name>
---
 CMakeLists.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f97e195..5c74fe0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -308,7 +308,7 @@ endmacro()
 foreach(icon ${ALL_ICONS})
     # Make unfocused icons translucent
     a_icon_convert("_focus" "_normal" ${icon}
-        -evaluate Pow 2 -channel A -evaluate Multiply 0.4)
+        -gamma 0.6 -channel A -evaluate Multiply 0.4)
 endforeach()
 
 foreach(icon ${ALL_ICONS})
-- 
1.6.3.1

Reply via email to