简体   繁体   English

如何更改gitk的UI颜色?

[英]How to change UI colors for gitk?

I use gitk for keeping an eye onto branches, commits and so on ... I am running Ubuntu 14.04. 我使用gitk来监视分支,提交等等......我正在运行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. 并注意到分支标签的背景颜色与我在运行Ubuntu 13.10的另一台机器上使用的颜色不同。 Currently I have Git 1.9.3 installed. 目前我安装了Git 1.9.3。

分支在gitk

Is there a way to customize the background color of the branch label in gitk ? 有没有办法在gitk中自定义分支标签的背景颜色?

That appears to be the headbgcolor , which is not available from the GUI colour settings. 这似乎是headbgcolor ,这是GUI颜色设置无法提供的。

Close gitk , then modify ~/.config/git/gitk and change 关闭gitk ,然后修改~/.config/git/gitk并更改

set headbgcolor green

to some other colour. 到其他颜色。 Hex codes appear to be supported unquoted, eg 十六进制代码似乎不受引用支持,例如

set headbgcolor #123456

对于Windows,您需要在%HOMEPATH%\\.gitk隐藏文件中更改headbgcolor

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM