circular buttons - feature request
Posted: 30 Nov 2005 13:49
Hi guys.
In VLC, can we create non-rectangular buttons ? Buttons that follow a curve for example ?
Have a look :
As you can see, the buttons are sticked to each other and they follow a curve (here : a circle). I could save each button but they would all have a little part (on their images) of the next buttons that "touch" them.
In order to solve this, Windows Media Player 10 skins use "maps". I mean, buttons can follow every kind of shape (curves for example) and these buttons' images have a non-clickable area, wich is also the transparency color.
To know the bordershape of each real clickable button, a map is used with 4 different colors (in the following example) and this way, the skin knows where texactly he interesting image is : only the pixels that are inside the map.
Example :
But for VLC, we could simply declare that areas with transparency
(in my case : a pink RGB 255-0-255) called alphacolor="ff00ff" would not be "clickable".
And of course, for these images, their coordonates would start from the upper-left corner (even if it's in the pink) and not from the upper-left pixel inside that image.
What do you think of this feature request? This would allow every kind of designs.
PS : i don't know if it's already supported but that's what I need for my current skin in progress...
In VLC, can we create non-rectangular buttons ? Buttons that follow a curve for example ?
Have a look :
As you can see, the buttons are sticked to each other and they follow a curve (here : a circle). I could save each button but they would all have a little part (on their images) of the next buttons that "touch" them.
In order to solve this, Windows Media Player 10 skins use "maps". I mean, buttons can follow every kind of shape (curves for example) and these buttons' images have a non-clickable area, wich is also the transparency color.
To know the bordershape of each real clickable button, a map is used with 4 different colors (in the following example) and this way, the skin knows where texactly he interesting image is : only the pixels that are inside the map.
Example :
But for VLC, we could simply declare that areas with transparency
(in my case : a pink RGB 255-0-255) called alphacolor="ff00ff" would not be "clickable".
And of course, for these images, their coordonates would start from the upper-left corner (even if it's in the pink) and not from the upper-left pixel inside that image.
What do you think of this feature request? This would allow every kind of designs.
PS : i don't know if it's already supported but that's what I need for my current skin in progress...