On 08/10/20 11:20AM, Serg Tereshchenko wrote: > > 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/ Thanks. This is a bit complicated to be honest. I don't think we can do much about the "installing Tk themes" part, but we can certainly make it easier to select an installed theme in git-gui. A config option like gui.tktheme would be good. Something to consider in the future... -- Regards, Pratyush Yadav