# HG changeset patch # User Peer Sommerlund # Date 1212410722 -7200 # Node ID 340028f30d8fa281fdcd4639e932072594784412 # Parent 4b30a3efa4b9dd2c91833fabeb6b20b02b94d552 about: Make logo transparent The old 92x50 png was taken from the homepage, and has a white background. The new png has transparency, which gives a nicer look for the application logo in the about dialog. In addition to this, the about dialog now has a separate 32x32 icon, which looks nicer than a down-scaled version of the 92x50 image. diff -r 4b30a3efa4b9 -r 340028f30d8f hggtk/about.py --- a/hggtk/about.py Sat Jul 05 04:12:16 2008 +0100 +++ b/hggtk/about.py Mon Jun 02 14:45:22 2008 +0200 @@ -61,14 +61,15 @@ self.set_wrap_license(True) self.set_copyright("Copyright 2008 TK Soh and others") - hg_icon = os.path.normpath(shlib.get_tortoise_icon('thg_logo_92x50.png')) - prog_root = os.path.dirname(os.path.dirname(os.path.dirname(hg_icon))) + thg_logo = os.path.normpath(shlib.get_tortoise_icon('thg_logo_92x50.png')) + thg_icon = os.path.normpath(shlib.get_tortoise_icon('thg_logo.ico')) + prog_root = os.path.dirname(os.path.dirname(os.path.dirname(thg_icon))) license_file = os.path.join(prog_root, "COPYING.txt") self.set_license(file(license_file).read()) self.set_comments("with " + lib_versions + "\n\n" + comment) - self.set_logo(gtk.gdk.pixbuf_new_from_file(hg_icon)) - self.set_icon_from_file(hg_icon) + self.set_logo(gtk.gdk.pixbuf_new_from_file(thg_logo)) + self.set_icon_from_file(thg_icon) # somehow clicking on the Close button doesn't automatically # close the About dialog... diff -r 4b30a3efa4b9 -r 340028f30d8f icons/tortoise/thg_logo.ico Binary file icons/tortoise/thg_logo.ico has changed diff -r 4b30a3efa4b9 -r 340028f30d8f icons/tortoise/thg_logo_92x50.png Binary file icons/tortoise/thg_logo_92x50.png has changed