I have got the same problem, OpenOffice + black theme looks ugly. Is seems there's nothing which is as convenient as the old GTK2_RC_FILES
variable, but take a look at this:
An application can cause GTK+ to parse a specific CSS style sheet by calling
gtk_css_provider_load_from_file()
and adding the provider withgtk_style_context_add_provider()
or gtk_style_context_add_provider_for_screen(). In addition, certain files will be read when GTK+ is initialized. First, the fileXDG_CONFIG_HOME/gtk-3.0/gtk.css
is loaded if it exists. Then, GTK+ tries to loadHOME/.themes/theme-name/gtk-3.0/gtk.css
, falling back toGTK_DATA_PREFIX/share/themes/theme-name/gtk-3.0/gtk.css
, where theme-name is the name of the current theme (see the"gtk-theme-name"
setting) andGTK_DATA_PREFIX
is the prefix configured when GTK+ was compiled, unless overridden by theGTK_DATA_PREFIX
environment variable.
This means that by doing this, you force GTK to use the default plain theme:
env GTK2_RC_FILES= GTK_DATA_PREFIX= libreoffice --writer
There doesn't seem to be a possibility to override the theme name (which is a bit stupid and should be fixed), so it seems the only way would be to create a "fake" theme directory.