Set a dark theme and background
Clone this wiki locally
See the Theme manager Plugin which helps you do this via a nice gui.
The background colour of the main text window is set by the GTK theme, for a dark background something like Nodoka-Midnight works nicely. If you are on linux hopefully you already know how to do this.
Instructions for Windows Portable edition
Everything is easiest with windows Portable edition because all the files are contained in the Zim folder.
First download a suitable dark background (or whatever colour you want) theme. Any GTK 2.x theme should work, I used this theme. That is a good webiste for getting themes.
Put extract the theme folder into
Now navigate to
...\App\ZimDesktopWiki\etc\gtk-2.0 and open
gtkrc with notepad or any editor. Edit it so that it contains your theme's name. In my case it was
gtk-theme-name = "Nodoka-Midnight.
Now open Zim and it will be fully themed, almost; you might want to change some of the formatting text colours (see further down this page).
Instructions for Normal Windows Installation
Same as above, but now the gtkrc is in your home folder, not in the zim portable folder.
If installed to C:\Program Files (x86)\Zim Desktop Wiki, you may have to adjust permissions because Windows tries to protect things under the Program Files directories.
Extract the theme to C:\Program Files (x86)\Zim Desktop Wiki\share\themes (Give administrative permission) The directory listing should now look like:
Default Emacs MS-Windows Nodoka-Midnight Raleigh
Give yourself permission to edit the gtkrc file:
C:\Program Files (x86)\Zim Desktop Wiki\etc\gtk-2.0\gtkrcand select Properties
- Uncheck 'Read-only' if it is checked
- On the security tab, click "Edit...", then click "Add...", type your Windows login name and click "Check Names", then "OK"
- Check "Full control" and okay out of the dialogs
- Edit the gtkrc file to use the name of the directory that you extracted the theme to, ex:
gtk-theme-name = "Nodoka-Midnight"
- Save gtkrc and restart Zim
Instructions for Windows (installed from source)
If zim is run from the source code, these files may need to reside in a different location, due to the dependence on the local installation of the PyGTK runtime. On my system, these locations were:
On another Windows installation, these locations were found in:
gtkrcfile in those folders got the dark theme working for me with zim 0.63
Changing the text colours
To change the formatted text colours you need to edit style.conf, which is located in
...\Data\Config\zim\style.conf for a portable installation (it might not exist by default, see the zim manual). All the instructions are already in the Zim manual http://zim-wiki.org/manual/Help/Config_Files.html .