Skip to content

Commit 74c90b0

Browse files
dschoj6t
authored andcommitted
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>
1 parent 47b6aa8 commit 74c90b0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

git-gui--askyesno

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,17 @@ pack .b -side bottom -fill x -ipadx 20 -ipady 15
4747
bind . <Key-Return> {exit 0}
4848
bind . <Key-Escape> {exit 1}
4949

50+
if {$::tcl_platform(platform) eq {windows}} {
51+
set icopath [file dirname [file normalize $argv0]]
52+
if {[file tail $icopath] eq {git-core}} {
53+
set icopath [file dirname $icopath]
54+
}
55+
set icopath [file dirname $icopath]
56+
set icopath [file join $icopath share git git-for-windows.ico]
57+
if {[file exists $icopath]} {
58+
wm iconbitmap . -default $icopath
59+
}
60+
}
61+
5062
wm title . $title
5163
tk::PlaceWindow .

0 commit comments

Comments
 (0)