]> Pileus Git - ~andy/gtk/commit
Make it easy for apps to have dark themes
authorBastien Nocera <hadess@hadess.net>
Thu, 6 May 2010 19:35:52 +0000 (20:35 +0100)
committerBastien Nocera <hadess@hadess.net>
Mon, 10 May 2010 00:15:14 +0000 (01:15 +0100)
commit4551509af1e5e3825646231530c31d2840a85ca3
treeae89821261cf3370b5faeb9cbaf75fa8beff423f
parentb76557e9444a50d947061c2d90d19d0c13f2e003
Make it easy for apps to have dark themes

Some types of applications would benefit from having "dark" themes,
usually black backgrounds, such as:
* Movie players
* Photo management and display applications

To make it easy for those applications to prefer a dark theme,
we're adding the "gtk-application-prefer-dark-theme" GtkSetting, which
will make the theme loading code automatically look for a "gtkrc-dark"
file in the same directory you would usually find a gtkrc file.
the same name and a "-dark" suffix.

If no "-dark" gtkrc variant is available, the normal gtkrc will
be used.

https://bugzilla.gnome.org/show_bug.cgi?id=617955
demos/gtk-demo/appwindow.c
docs/reference/gtk/tmpl/gtkrc.sgml
gtk/gtkrc.c
gtk/gtksettings.c