git-gui: use themed tk widgets with Tk 8.5
commitc80d7be5e1e0d110ea77cd41f658aabe5bcad0d8
authorPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 26 Jan 2010 00:05:31 +0000 (26 00:05 +0000)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 28 Jan 2010 01:13:52 +0000 (27 17:13 -0800)
treebae6c567a406ffb3ca363d2e5a6eb319ea8decaa
parentab2d3b0d7d29bcdfd5c710cd762d90e78d5fc917
git-gui: use themed tk widgets with Tk 8.5

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. 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 by adding an line to the
.Xresources file. The set of installed theme names is available using
the Tk command 'ttk::themes'. The default on X11 is similar to the current
un-themed style - a kind of thin bordered motif look.

A new git config variable 'gui.usettk' may be set to disable this if
the user prefers the classic Tk look. Using Tk 8.4 will also avoid the
use of themed widgets as these are only available since 8.5.

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>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
26 files changed:
git-gui.sh
lib/about.tcl
lib/blame.tcl
lib/branch_checkout.tcl
lib/branch_create.tcl
lib/branch_delete.tcl
lib/branch_rename.tcl
lib/browser.tcl
lib/choose_font.tcl
lib/choose_repository.tcl
lib/choose_rev.tcl
lib/class.tcl
lib/console.tcl
lib/database.tcl
lib/error.tcl
lib/index.tcl
lib/merge.tcl
lib/option.tcl
lib/remote_add.tcl
lib/remote_branch_delete.tcl
lib/search.tcl
lib/sshkey.tcl
lib/status_bar.tcl
lib/themed.tcl [new file with mode: 0644]
lib/tools_dlg.tcl
lib/transport.tcl