diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2025-08-28 08:58:50 +0000 |
|---|---|---|
| committer | Johannes Sixt <j6t@kdbg.org> | 2025-08-28 22:54:20 +0200 |
| commit | 74c90b0f1b729b22b49b1725fa335500fd7aa6dc (patch) | |
| tree | 85aed0681c1afb9f9ed4354e1294e6e191fba722 | |
| parent | 47b6aa869442aa41cdbd08349d273d72651fa230 (diff) | |
| download | git-74c90b0f1b729b22b49b1725fa335500fd7aa6dc.tar.xz | |
git-gui--askyesno (mingw): use Git for Windows' icon, if available
This provides a unified look-and-feel in Git for Windows.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
| -rwxr-xr-x | git-gui--askyesno | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/git-gui--askyesno b/git-gui--askyesno index d0c801c42c..142d1bc3de 100755 --- a/git-gui--askyesno +++ b/git-gui--askyesno @@ -47,5 +47,17 @@ pack .b -side bottom -fill x -ipadx 20 -ipady 15 bind . <Key-Return> {exit 0} bind . <Key-Escape> {exit 1} +if {$::tcl_platform(platform) eq {windows}} { + set icopath [file dirname [file normalize $argv0]] + if {[file tail $icopath] eq {git-core}} { + set icopath [file dirname $icopath] + } + set icopath [file dirname $icopath] + set icopath [file join $icopath share git git-for-windows.ico] + if {[file exists $icopath]} { + wm iconbitmap . -default $icopath + } +} + wm title . $title tk::PlaceWindow . |
