Hi, Paul, On Mon, May 4, 2015 at 8:26 AM, Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx> wrote: > Your mistake is imagining that there are "system colors" and that you can do > "custom rendering" that will use them. > > GTK is largely designed around a Linux model in which the ability of the > user to dynamically alter the appearance of applications (and the desktop) > is taken more seriously than on other platforms. Colors are left up to > "themes" which the user may change at any time. Some themes may, internally, > define some kind of color palette, but they do not expose this to > applications. You're expected to allow the theme to do its job with > rendering. But then there should be some kind of predefined set of colors for each specific theme, which can be retrieved by some function. Thank you. > > On Sun, May 3, 2015 at 8:01 PM, The Devils Jester > <thedevilsjester@xxxxxxxxx> wrote: >> >> I am trying to get general GTK system colors for use in custom rendering >> operations. In MSW, I would get these colors through a function like >> GetSysColor, but GTK does not appear to have such a function. >> >> The only way that comes to mind, to get a bunch of common system colors, >> is to create a bunch of widgets (one of each type that has a color I need), >> parent said widget, and make sure its realized, using >> gtk_style_context_get_color. This seems like an awful lot of overhead (and >> a bit overkill) just to get some colors. Am I missing some more direct >> method? >> >> I am using GTK3. >> >> _______________________________________________ >> gtk-list mailing list >> gtk-list@xxxxxxxxx >> https://mail.gnome.org/mailman/listinfo/gtk-list >> > > > _______________________________________________ > gtk-list mailing list > gtk-list@xxxxxxxxx > https://mail.gnome.org/mailman/listinfo/gtk-list > _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list