Having "settings.ini" in that location (On my machine, C:\Program
Files\Zim Desktop Wiki\etc\gtk-3.0\) works perfectly, including setting
the theme name.
Thank you!
Jaap Karssenberg 於 2020/8/12 21:28 寫道:
I had success with switching zim to dark theme by creating
"etc/gtk-3.0/settings.ini" in the installation folder and put
[Settings]
gtk-application-prefer-dark-theme=1
in that file. No custom theme at hand to test, but there you can set
the theme name. That reduces the problem to putting the theme in
hte right folder :)
-- Jaap
On Wed, Aug 12, 2020 at 2:09 PM Jesse Sloane <[email protected]
<mailto:[email protected]>> wrote:
Thank you! No worries, whenever you get around to it.
Jaap Karssenberg 於 2020/8/12 19:46 寫道:
Hmm, may need to dive into the initialization of the environment
to straighten it out. Will take some time though for me to get
back to that.
-- Jaap
On Wed, Aug 12, 2020 at 11:56 AM Jesse Sloane <[email protected]
<mailto:[email protected]>> wrote:
Many thanks for the suggestion!
But due to my ignorance I haven't been able to get the theme
applied.
I created the text file settings.ini which contains only the
line gtk-theme-name = Solarized-BLACK-Blue
Then I created two directories to be safe and put the same
settings.ini file into both:
%APPDATA%\Roaming\zim\config\zim\gtk-3.0 and
%APPDATA%\Roaming\zim\config\gtk-3.0.
C:\Program Files\Zim Desktop Wiki\share\themes\ contains a
directory called Solarized-BLACK-Blue with a subdirectory for
gtk-3.0.
But Zim still starts up with the default theme. What am I
missing?
Jaap Karssenberg 於 2020/8/11 15:50 寫道:
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
<[email protected] <mailto:[email protected]>> 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 : [email protected]
<mailto:[email protected]>
Unsubscribe : https://launchpad.net/~zim-wiki
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~zim-wiki
Post to : [email protected]
Unsubscribe : https://launchpad.net/~zim-wiki
More help : https://help.launchpad.net/ListHelp