[lazarus] GTK+ Theme colors
nc-gaertnma at netcologne.de
Sat Sep 14 03:47:37 EDT 2002
On Fri, 13 Sep 2002 23:49:00 -0500
"Tony Maro" <TonyM at nlisc.com> wrote:
> I want my new control to use the local GTK+ theme when it displays. I tried defining colors for drawing objects using things like clWindow and cl3dlight but it gives me standard Windows colors with that.
> How can I make my new control use the GTK theme colors of whatever system the app is run on?
The systemcolor mapping in the gtk-interface is currently deactivated. You can activate it by adding -dNewSysColors in the Build Lazarus options and rebuilding lazarus.
It's deactivated, because
- there is no 1:1 mapping to windows colors. It depends on the current theme and the widget, where the color is used. e.g. a button can define clBackground different than a form.
- not all pixmap themes support colors for all states.
- system colors can change, when the theme is switched.
Andrew is working on a general solution, so that for example drawing with clBackground will result in drawing whatever the current theme defines as background (Color, pixmap, gradient, whatever).
More information about the Lazarus