git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [msysGit] [PATCH] git-gui: use themed tk widgets with Tk 8.5

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 20, 2009, 13:16 UTC
Message-ID
<alpine.DEB.1.00.0912201412420.4985@pacific.mpi-cbg.de>
In-Reply-To
<87my1ev4gi.fsf@users.sourceforge.net>
Hi,
On Sun, 20 Dec 2009, Pat Thoyts wrote:
Show 7 quoted lines
>  This patch enables the use of themed Tk widgets with Tk 8.5 and above.
>  These make a significant difference on Windows in making the application
>  appear native. The gui.usettk git config variable may be set to disable
>  this if the user prefers the classic Tk look.
>
>  On Windows and MacOSX ttk defaults to the native look as much as possible.
>  On X11 the user may select a theme using the TkTheme XRDB resource class.
Maybe you could describe a quick way to set that resource?
Show 8 quoted lines
>  Some support is included for Tk 8.6 features (themed spinbox and native
>  font chooser for MacOSX and Windows).
> 
> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
> 
> There is a screenshot of this running on Windows 7 at
> http://www.patthoyts.tk/screenshots/git-gui-win32.png
> It has been tested on Linux but not on MacOSX yet.

Please put this paragraph after the "---". Oh, and could you also include a screenshot without ttk?

As to the patch: it is huge. I suspect that it would be easier to read and verify if it was done in two patches: the first one introducing helper procs that replace the existing repeated code, and a second patch that modifies only the helper procs to handle ttk if desired. You did that with pad_label, but that proc is not defined in a central place, but limited to about.tcl.

Hmm?

Thanks, Dscho

Previous: Pat ThoytsNext: Pat Thoyts
Message 2 of 6 in “git-gui: use themed tk widgets with Tk 8.5”
  1. git-gui: use themed tk widgets with Tk 8.5Pat Thoyts, Dec 20, 2009
  2. Johannes SchindelinDec 20, 2009
  3. Pat ThoytsDec 20, 2009
  4. Junio C HamanoDec 20, 2009
  5. Pat ThoytsDec 20, 2009
  6. Junio C HamanoDec 20, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.