Re: [PATCH] git-gui: Basic dark mode support
- From
Serg Tereshchenko <serg.partizan@gmail.com>
- Date
- Oct 8, 2020, 08:20 UTC
- Message-ID
- <20201008082004.5643-1-serg.partizan@gmail.com>
- In-Reply-To
- <20201007111333.iojf5dbwoxbnie3z@yadavpratyush.com>
> How do you tell git-gui which theme to use? I had some trouble setting > the theme and ended up adding code to source the theme files and then > set the theme via `ttk::style theme use`. I hope there is a better way > than that.
Yes, there is. To change theme on the fly use:
echo '*TkTheme: clam' | xrdb -merge -
To set theme, add "*TkTheme: clam" to ~/.Xresources and run
xrdb -merge ~/.Xresources
There is lack of dark themes in default tk installs right now, i'm using awdark: https://sourceforge.net/projects/tcl-awthemes/
To install theme you need to unpack it somewhere like ~/.local/share/tk-themes/awthemes And tell tcl where to find it.
export TCLLIBPATH=$HOME/.local/share/tk-themes
I had to modify version numbers inside awthemes package to make in work, but hope it'll be fixed upstream.
Here is blog post which explains this in greater detail: http://blog.serindu.com/2019/03/07/applying-tk-themes-to-git-gui/
-- Regards, Serg Tereshchenko