The Gtk manual gives the following information:
There is a setting called gtk-theme-name that is read from
the "settings.ini" file
On settings file:
In the absence of an Xsettings manager, GTK+ reads default
values for settings from |settings.ini| files in
|/etc/gtk-3.0|, |$XDG_CONFIG_DIRS/gtk-3.0| and
|$XDG_CONFIG_HOME/gtk-3.0|. These files must be valid key
files (see GKeyFile), and have a section called Settings.
Themes can also provide default values for settings by
installing a |settings.ini| file next to their |gtk.css| file.
On theme lookup:
First, the file |$XDG_CONFIG_HOME/gtk-3.0/gtk.css| is loaded
if it exists. Then, GTK+ loads the first existing file among
|XDG_DATA_HOME/themes/THEME/gtk-VERSION/gtk.css|,
|$HOME/.themes/THEME/gtk-VERSION/gtk.css|,
|$XDG_DATA_DIRS/themes/THEME/gtk-VERSION/gtk.css| and
|DATADIR/share/themes/THEME/gtk-VERSION/gtk.css|, where
|THEME| is the name of the current theme (see the
“gtk-theme-name”
<https://developer.gnome.org/gtk3/stable/GtkSettings.html#GtkSettings--gtk-theme-name> setting),
|DATADIR| is the prefix configured when GTK+ was compiled
(unless overridden by the |GTK_DATA_PREFIX| environment
variable), and |VERSION| is the GTK+ version number. If no
file is found for the current version, GTK+ tries older
versions all the way back to 3.0.
For the zim on windows, XDG_CONFIG_HOME is set to %APPDATA%
/zim/config
So my best guess without testing is that if you create
"%APPDATA%/zim/config/gtk-3.0/settings.ini" and set the
theme name, it should be used by Gtk. To find %APPDATA% just
type "%APPDATA%" in the navigation bar of windows file explorer.
Let me know whether this works. I'll put the information in
the manual and maybe just make a preference setting for this.
Regards,
Jaap
On Sat, Aug 8, 2020 at 3:49 AM Jesse Sloane
<sloanej@xxxxxxxxxx <mailto:sloanej@xxxxxxxxxx>> wrote:
Hi,
I'm using the Windows install of 0.73.2, and would be
gratefun for
guidance on changing the color theme. At the minimum it
would be great
to have a dark background for regular text. For the old
Windows versions
done by Brendan Kidwell I could figure out from the
documentation what
directory to put a GTK theme into and then what config
file to modify to
specify which theme to use.
For these new Windows installations, I think I've found
the directory to
add themes into (on my machine, 'C:\Program Files\Zim
Desktop
Wiki\share\themes\') but can't figure out what file will
make Zim apply
a different theme (I've been looking in
'C:\Users\[username]\AppData\Roaming\zim\config\zim\'
and the various
subdirectories of 'C:\Program Files\Zim Desktop
Wiki\share\'). I even
tried replacing the files in ('C:\Program Files\Zim Desktop
Wiki\share\themes\Default\gtk-3.0\') with files of the
same name from
another GTK theme, but the colors in Zim didn't change.
What should I be doing? I noticed that there was some
discussion on
Reddit about how to get a dark theme in the newer
Windows installations
of Zim but no one found an answer.
As you can can tell I'm not a software developer and
don't have any deep
knowledge of how these applications are set up. I've
just used Zim to
organize for my own work over many years and find it an
amazing tool.
Thanks for any help!
Jesse
_______________________________________________
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@xxxxxxxxxxxxxxxxxxx
<mailto:zim-wiki@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~zim-wiki
More help : https://help.launchpad.net/ListHelp