Setting background colour in Git GUI

394 views
Skip to first unread message

Stephan Hennig

unread,
Jan 10, 2008, 10:41:31 AM1/10/08
to msy...@googlegroups.com
Hi,

is there a way to set background colour in Git GUI to anything else than
blinding white? For gitk this is possible with line

set bgcolor <col>

in %HOME%\.gitk. For Git GUI I guess section 'gui' in %HOME%\.gitconfig
applies. But I don't know which key to add. Any advices are appreciated!

Best regards,
Stephan Hennig

Stephan Hennig

unread,
Jan 14, 2008, 9:54:45 AM1/14/08
to msy...@googlegroups.com
Stephan Hennig schrieb:

> is there a way to set background colour in Git GUI to anything else than
> blinding white?

I see it now as a bug that Git GUI uses a white background instead of
the system defined background colour. Could you please fix that?

Best regards,
Stephan Hennig

Johannes Schindelin

unread,
Jan 14, 2008, 10:54:56 AM1/14/08
to Stephan Hennig, msy...@googlegroups.com
Hi,

I am not aware of an option to change the ackground colour; otherwise I
would have responded long since.

Be aware that this is not an msysGit "bug", but a thing with git-gui. You
can bug Shawn about it, although if I were him, I'd give you pointers to
fix it yourself, with a plea to submit your patch once you succeeded.

Ciao,
Dscho

Stephan Hennig

unread,
Jan 15, 2008, 8:47:03 AM1/15/08
to msy...@googlegroups.com
Johannes Schindelin schrieb:

> Be aware that this is not an msysGit "bug", but a thing with git-gui. You
> can bug Shawn about it, although if I were him, I'd give you pointers to
> fix it yourself, with a plea to submit your patch once you succeeded.

Thanks for the pointer! Actually, I've no clear overview of the
components of Git (and what's actually Msysgit related) right now.
Sorry for posting non-Msysgit-related reports to this list.

Best regards,
Stephan Hennig

Johannes Schindelin

unread,
Jan 15, 2008, 9:51:12 AM1/15/08
to Stephan Hennig, spe...@spearce.org, msy...@googlegroups.com
Hi,

On Tue, 15 Jan 2008, Stephan Hennig wrote:

> Johannes Schindelin schrieb:
>
> > Be aware that this is not an msysGit "bug", but a thing with git-gui.
> > You can bug Shawn about it, although if I were him, I'd give you
> > pointers to fix it yourself, with a plea to submit your patch once you
> > succeeded.
>
> Thanks for the pointer! Actually, I've no clear overview of the
> components of Git (and what's actually Msysgit related) right now.

In general, if an issue concerns other platforms than Windows, it is most
likely not an msysGit bug.

As for your request, you certainly know that git-gui is written in Tcl/Tk.
The command to set the background colour is "<widget> conf -background
<colour>".

You might be able to rip the colour chooser from gitk and include it as
lib/choose-color.tcl in git-gui, calling it from the Options dialog, and
loading/saving them with the other options.

Hth,
Dscho

Reply all
Reply to author
Forward
0 new messages