plugdata icon indicating copy to clipboard operation
plugdata copied to clipboard

request: allow to set GUI object colors (as in knob) from current theme

Open porres opened this issue 6 months ago • 2 comments

Pd 0.56-0 now has set colors, not sure how plugdata stores these, but I'm using it for [else/knob] now... maybe we can think of a way to do this for iemguis and arrays

porres avatar Jun 29 '25 18:06 porres

Ok, so, let me elaborate. With the addition of colors in Pd, I'm not sure how we can make something consistent with PlugData. For those who don't know, there is a new message to Pd now that can set colors and it takes 3 or 4 arguments to set the color of foreground, background, selection color and GOP rectangle.

When changing the color, I am listening to this change so [else/knob] can also react and change its color.

maybe we can think of a way to do this for iemguis and arrays

Not sure how to do this, specially without compromising compatibility, so maybe just leave this out and I'm also discussing how we can do that in Vanilla. Nonetheless, I'd like [knob] to be able to respond to color theme changes in PlugData as well.

Right now I have a setting in properties and this is a toggle to tell the object to incorporate color themes. So if it changes or I open the patch with a different theme, it applies to it. This setting gets saved as an argument in the object.

I wonder if you can easily do the same for PlugData and we can start from there.

porres avatar Jun 30 '25 05:06 porres

I think this should be doable!

timothyschoen avatar Jul 03 '25 11:07 timothyschoen