xlabel icon extraction weirdness Thread last updated on 2006-03-18 01:06:41

Posted by member 280260 on 2006-03-13 23:52:58

I seem to be having some issues getting xlabel to extract icons properly.

screenshot:
http://static.flickr.com/38/112301775_4dc91480a4_o.png

Notice that there are three different things happening. On flock and photoshop icons (the first two), there is a little transparent border as where the alphablending gets done properly, and then a big white box where the alpha is 0. The M$ Word icon, while also having blank space around it, has no such issue and shows up perfectly. I get pink and white borders around my folder icon and thunderbird respectively, though I imagine this is an issue with the icon rather than the extraction.

Here's my code:
portHeight 40

portY $-portHeight$

portImage plastik.png

portImageMode "tile-horizontal"

portImageLeftEdge 5

portImageRightEdge 5

portImageTopEdge 5


portIconExtractIconSize 32


*label port0

port0X 0

port0Width 0

port0AddToGroup port

port0OnLeftClick !execute ["$port0_l$"] [!register 0]

port0OnRightClick !portClickedR 0

port0OnDrop !execute [!xTextReplace @$configDir$dockvars.rc@ @^ port0\_l@ @ port0_l '%[droppath]%'] [!PortDropped 0]


*port0OverlayLabel -16c 4 32 32 port0icon #s

port0iconImage "$port0_i$"

port0iconAddToGroup portIcon

; actions for port0 and then more of the same...


Am I just being too picky and expecting too much of the module, or am I configuring this wrong?

I should add that I have tried all settings for all image transparency modes with no success, and that I noticed a similar issue in Lock.Solid.

Posted by member 212670 on 2006-03-14 01:30:25 link

Throw in an "a" flag for your overlay, so it's like "#sa". That way xlabel knows you're using alphamap icons. Also, you specified the extract icon size for the label, but not the overlay, so you may want to add in: port0iconExtractIconSize 32

Posted by member 280260 on 2006-03-14 08:17:45 link

Already tried the #a (no effect) and there is already portIconExtractIconSize 32 defined for the group.

Posted by member 212670 on 2006-03-14 13:43:09 link

...

Posted by member 212670 on 2006-03-14 13:44:44 link

Hrmm is there an AlphaTransparency in the group that the label belongs to? If so, try commenting it out for a test. (You'll want that "a" flag there.)

Another thing I've had problems with before, was if I applied any kind of hueing/saturation to the overlay (doesn't look like you are, though).

You are using a newer version of xlabel, of course?

Posted by member 280260 on 2006-03-14 15:17:45 link

No alphatransparency; xlabel 3.5.1

Posted by member 280260 on 2006-03-14 16:00:06 link

Just realized I forgot to mention a pretty big detail - $port0_i$ points to an executable; xlabel is extracting the icon from the exe file.

Posted by member 32550 on 2006-03-15 10:21:29 link

Try to set a background for the port0 label (not only in the labelgroup).
Why is the width of the port0 label 0!?
Is your display set to TrueColor 32bit?

That is all what i can think of :)

Posted by member 280260 on 2006-03-15 19:34:57 link

The width is set to 0 because the label gets resized by a script. Tried changing that; doesn't work.

Neither does setting a background image explicitly or using solid colors.

Display set to 32 bit.

Posted by member 32550 on 2006-03-16 12:32:59 link

I have no idea :|
Maybe try another xLabel version or try a theme with the same feature. If the problem exist there too then it's a problem with your system and not the CFG.

Posted by member 280260 on 2006-03-16 16:04:01 link

Like I said, I have the same issue with Lock.Solid (older build of xlabel) so it must be the system.

Posted by member 248213 on 2006-03-17 22:54:03 link

the new xlabel works best IMHO, use the #a flag.

if no hueing or sat is set (like xcal said), the only thing at fault can be the icon.

Tested with other icons?

Posted by member 280260 on 2006-03-18 01:06:41 link

Just as in the ss, some icons work; some don't. Changing build doesn't work. Probably just a personal graphics issue. Thanks everyone for the help anyway.