PDA

View Full Version : desktop alpha and hiding / substract sysregion ?


r4dius
22nd September 2006, 00:29
Hi,
I can't find how to use sysregion="-2" or -1 with my skin (it only works when I disable the desktop alpha)
basically my skin is like that
<container id="main" name="Player Window">
<layout id="normal" desktopalpha="1" h="117" w="245">
<layer image="img.backgroundalpha" sysregion="1"/>
for exemple I'd like to hide some of this last layer using another one with sysregion="-2", is it impossible when using desktop alpha or is there another way ?
Thanks

PseudoChron
22nd September 2006, 02:05
sysregion only works when desktop alpha is disabled

r4dius
22nd September 2006, 03:14
Thanks, too bad :/

TheElusiveMelon
22nd September 2006, 10:28
Well, for a given layout, you can define a standard image and an alpha image, if that is what you were trying to do.

<layout id="normal" background="main" alphabackground="mainalpha"/>

So you use those tags, and winamp changes between the images depending on alpha setting. Also you could make layers switch, but you would need a script do to that job.

Michgelsen
22nd September 2006, 10:42
Originally posted by PseudoChron
sysregion only works when desktop alpha is disabled
Not true.

How would you explain the use of regions on the playlist editor for example?

Using smooth edges is a different story, but that has nothing to do with the possibility to use sysregion="-2".

TheElusiveMelon
22nd September 2006, 23:27
Well i've tried using sysregion on the main window that has a normal and alpha background set. The sysregion="-2" only works with DTA turned off in that case.

PseudoChron
23rd September 2006, 02:16
DTA does not apply to the Playlist window. It can't use desktop alpha, so for that window it is always disabled.

Michgelsen
23rd September 2006, 11:11
Ok maybe I misunderstood something. I think I missed the normal and alphabackground thing. I will try it. :)

Yes you're right and I'm sorry! On the noalpha background the region acts normal, but as soon as I enable desktopalpha and the skin uses the alphabackground, the region turns black. :)

TheElusiveMelon
24th September 2006, 15:00
Yeah, and thats pretty annoying, because a sysregion="-2" block is a useful way to hide the top of drawers in shade modes where the drawer is taller than that part of the skin.

r4dius
24th September 2006, 19:52
Yep, I wanted to add a background pattern image over the background image (using tiling) and hide the borders as the background has rounded borders, now I can't do it and I don't see another way to do it when using dalpha :'(

martin.deimos
25th September 2006, 08:55
why need you a beg image?
lets say you want to sunstract 10 px from your bg, then why don't simply use a bg which has x="10" and h="-10" and relath="1"?
or do something i did with my alpha-standardframe:
simply change the images on the layers via maki when dta_on/off changes?
can u perhaps post some code?

r4dius
25th September 2006, 20:05
Well I wanted the bg pattern to overlay the all thing (as there's a 1pixel black border it can be x=1 y=1 and w=-1 h=-1) so when the pattern is over a rounded border it suck ^^,
just as example for the left top corner http://r4dius.free.fr/temp/01.jpg