Re: Generating Metacity theme previews: setting colours



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]