Re: [LAD] Mouse/knob interaction

From: Olivier Guilyardi <list@email-addr-hidden>
Date: Mon Sep 13 2010 - 23:14:10 EEST

On 09/13/2010 04:43 PM, Paul Davis wrote:
> On Mon, Sep 13, 2010 at 10:38 AM, Olivier Guilyardi <list@email-addr-hidden> wrote:
>> On 09/13/2010 04:25 PM, Paul Davis wrote:
>>> On Mon, Sep 13, 2010 at 9:53 AM, Olivier Guilyardi <list@email-addr-hidden> wrote:
>>>> On 09/12/2010 02:05 PM, Loki Davison wrote:
>>>>
>>>>> Thorsten's design is as always fantastic. :)
>>>> Agreed, it's a a shame his new knob designs at
>>>> http://thorwil.wordpress.com/?s=knobs were never implemented. I think they're
>>>> very cool and somehow remind me of Live knobs.
>>> except ... they were ...
>>>
>>> hans baier took the idea and implemented it in cairo as part of his
>>> prolooks library, and i took what hans had done and incorporated it
>>> into ardour3 in the new monitor section.
>> Okay, I was playing with Vala and Cairo, and the result was rather faithful to
>> the design. Where's this prolooks library? I can't find anything about it. I'll
>> have a look at the new monitor of ardour3. I suppose there might still be a bit
>> of work to make it a fully reusable and customizable widget.
>
> the implementation is in libs/gtkmm2ext/motion_feedback.cc
>
> this has existed for years, but i reimplemented the expose/draw method.

I haven't yet run it, but I see hard-coded colors for gradients. This isn't what
the design tries to achieve IIUC, nor my idea. I'm talking about a GTK compliant
widget, which uses the base colors by default and thus support theming.
(actually, I would quite like to make it customizable, and support gradient as
well, trough gtk rc styles).

For the default rendering of the blue part, using
GtkStyle.bg[GDK_STATE_SELECTED] seems to make sense since it renders to a color
(blue, brown, etc..) in many modern themes. However, in some other themes, it's
just another shade of gray.

Thorsten, did you think about this?

--
  Olivier
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Tue Sep 14 00:15:03 2010

This archive was generated by hypermail 2.1.8 : Tue Sep 14 2010 - 00:15:03 EEST