[LAD] pixmap based knob widgets and theme integration.

Olivier Guilyardi list at samalyse.com
Mon Sep 27 17:44:17 UTC 2010


On 09/27/2010 07:32 PM, hermann wrote:
> Am Montag, den 27.09.2010, 19:13 +0200 schrieb Olivier Guilyardi:
>> On 09/27/2010 05:42 PM, hermann wrote:
>>> Am Montag, den 27.09.2010, 15:46 +0200 schrieb Olivier Guilyardi:
>>>> On 09/27/2010 01:44 PM, Patrick Shirkey wrote:
>>>>> On Sun, September 26, 2010 1:35 pm, pete shorthose wrote:
>>>>>> WRT the recent discussion about pixmap knob widgets and theme
>>>>>> conformance (that i can't reply to since i wasn't on the list
>>>>>> at the time, sorry)
>>>> AFAICS, no one mentioned themable pixmap knobs. When it came to
>>>> supporting
>>>> themes, it was all about vector drawing, especially with Cairo.
>>>>
>>>> [...] 
>>> Oh, I do, that's exactly what we do in libgxw, use GTK Stock Icon Themes
>>> to draw the Knobs and draw the Indicator with Cairo.  
>> Stock icons for knobs? In libgxw I saw a custom background pixmap. Sorry but I
>> don't see how this is themable.
>>
> 
> Yes, you can define the stock icon's to use in a gtkrc file, define your
> theme :

> 
> style "skin_icons"
> {
>   stock["bigknob"] = {{"knob3.png"}}
>   stock["smallknob"] = {{"smallknob3.png"}}
>   stock["eqslider"] = {{"eqslider.png"}}
> }
> 
> class "GxKnob" style "skin_icons"
> class "GxEQSlider" style "skin_icons"
> 
> the knob have the used icon size (witch is free) then.
> You could easy change them during runtime.

Wow, that's quite cool. You did prove me wrong :)

--
  Olivier




More information about the Linux-audio-dev mailing list