Hello Gurus,
I am trying to set a dark theme for GnuCashPortable. Acccording to https://wiki.gnucash.org/wiki/GTK3#Dark_Themes, I could place the following:
[Settings]
gtk-application-prefer-dark-theme=true
in a settings.ini file in GTK_CONFIG_HOME.
I have tried putting the settings.ini file in Data/GTKDataHome, App/DefaultData/GTKDataHome but to no avail.
The only way that the dark theme could work is by editing the settings.ini file which already existed at App\Gnucash\etc\gtk-3.0\. But I am afraid that subsequent updates would erase away the dark theme setting.
I would prefer to put the file in a user area so that the next update would not remove the modification.
Much appreciate any advice where I should put the settings.ini file to set the dark theme for the app.
Thank you very much for your time.
Hwai An
Currently, GnuCash Portable does not set either GTK_CONFIG_HOME or $XDG_CONFIG_HOME.
According to the GnuCash wiki, the default location for that file is in
%LOCALAPPDATA%\gtk-3.0
.Thank you very much Gord for your reply.
As of the current release, both new and upgraded users will have default files within GnuCashPortable\Data\GTKDataHome that can be edited. GTK_CONFIG_HOME env var is set to this location which should work.
Sometimes, the impossible can become possible, if you're awesome!
An update that I've observed here. V 4.13.
I had to put add the gtk-application-prefer-dark-theme=true line into GnuCashPortable\App\Gnucash\etc\gtk-3.0\settings.ini
I suspect that might get overwritten, but putting this note in here for others.