Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change UI colors for gitk?

Tags:

I use gitk for keeping an eye onto branches, commits and so on ... I am running Ubuntu 14.04. and noticed that the background color of the branch label is different in comparison to what I am used to on another machine running Ubuntu 13.10. Currently I have Git 1.9.3 installed.

Branch in gitk

Is there a way to customize the background color of the branch label in gitk?

like image 643
JJD Avatar asked Jun 13 '14 15:06

JJD


2 Answers

That appears to be the headbgcolor, which is not available from the GUI colour settings.

Close gitk, then modify ~/.config/git/gitk and change

set headbgcolor green 

to some other colour. Hex codes appear to be supported unquoted, e.g.

set headbgcolor #123456 
like image 156
Chris Avatar answered Oct 20 '22 00:10

Chris


For Windows, you need to change headbgcolor in your %HOMEPATH%\.gitkhidden file.

like image 42
Clóvis Valadares Junior Avatar answered Oct 19 '22 23:10

Clóvis Valadares Junior