Re: Generating Metacity theme previews: setting colours
- From: David D Lowe <daviddlowe flimm gmail com>
- To: gnomecc-list gnome org
- Subject: Re: Generating Metacity theme previews: setting colours
- Date: Mon, 25 Apr 2011 14:18:41 +0100
I think I've solved it with code like this:
g_object_set(gtk_settings_get_default(), "gtk-icon-theme-name",
"hicolor", NULL);
g_object_set(gtk_settings_get_default(), "gtk-theme-name", "Clearlooks", NULL);
g_object_set(gtk_settings_get_default(), "gtk-color-scheme",
"fg_color:#000000000000\nbg_color:#ededececebeb\ntext_color:#1a1a1a1a1a1a\nbase_color:#ffffffffffff\nselected_fg_color:#ffffffffffff\nselected_bg_color:#8686ababd9d9\ntooltip_fg_color:#000000000000\ntooltip_bg_color:#f5f5f5f5b5b5",
NULL);
theme_thumbnail_factory_init (argc, argv);
Hope this helps a lurker someday.
David D Lowe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]