When other than gnome-shell environment is run, Firefox gets wrong colors from css styles. The attached patch fixes it because reloads the theme, but it's that a correct solution? char *theme; GtkSettings *settings = gtk_settings_get_default(); g_object_get (settings, "gtk-theme-name", &theme, nullptr); GtkCssProvider *provider = gtk_css_provider_get_named(theme, NULL); GdkScreen *screen = gdk_screen_get_default(); gtk_style_context_add_provider_for_screen(screen, GTK_STYLE_PROVIDER(provider), GTK_STYLE_PROVIDER_PRIORITY_USER);
Note: Native gtk3 apps works as expected. Maybe I miss some initialization step.
https://bugzilla.gnome.org/show_bug.cgi?id=696428, call gtk_settings_get_for_screen() is enough.
https://bugzilla.mozilla.org/show_bug.cgi?id=972382