Opened 13 years ago
Closed 11 years ago
#29730 closed enhancement (fixed)
tortoisehg: add launcher icon and gui ssh-askpass
Reported by: | shiena.jp@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | haspatch | Cc: | ryandesign (Ryan Carsten Schmidt), mkae (Marko Käning), pixilla (Bradley Giesbrecht) |
Port: | tortoisehg |
Description
About launcher icon
Because TortoiseHg had a good logo, it converted it into the icon according to the following procedures.
- get thg_logo.svg from https://bitbucket.org/tortoisehg/thg/src/47ff626c895d/icons/svg/thg_logo.svg
- convert thg_logo.svg into tiff of width:128px and height:128px. I did export to png of 128x128 pixel with Inkscape, and converted it into tiff by the convert command of ImageMagick.
- converts it into the icns by the tiff2icns command.
About gui ssh-askpass
It fails in the connection of the ssh server for which the password is necessary because osx doesn't have ssh-askpass. Then, it comes to be able to input the password by using this macos-askpass. I built this in tortoisehg.
Attachments (3)
Change History (19)
Changed 13 years ago by shiena.jp@…
Attachment: | tortoisehg_ssh-askpass.diff added |
---|
Changed 13 years ago by shiena.jp@…
Attachment: | tortoisehg_application_icon.diff added |
---|
Changed 13 years ago by shiena.jp@…
Attachment: | TortoiseHg.icns added |
---|
comment:1 Changed 13 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to guido@… |
---|---|
Version: | 1.9.2 |
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
I had been working with the developer and maintainer of our makeicns tool to get it to process non-square images, like TortoiseHg's logo, but converting the svg to icns didn't produce an icon that was the same as theirs. I also tried ImageMagick to convert it but that wasn't satisfactory either. I didn't try an intermediate step through Inkscape though.
comment:3 Changed 13 years ago by pixilla (Bradley Giesbrecht)
I haven't found a good svg converter but there is a 368 × 220 png that makes a decent icon. We have not yet added padding to makeicns. ImageMagick's convert can be used in the mean time. Something like this should do it.
depends_build port:makeicns port:ImageMagick post-extract { system "convert ${worksrcpath}/doc/source/figures/thg_logo_pdf.png \ -background transparent \ -gravity center \ -resize 512x512 \ -extent 512x512 \ ${worksrcpath}/tortoisehg.png system "makeicns -in ${worksrcpath}/tortoisehg.png \ -out ${worksrcpath}/tortoisehg.icns" }
comment:4 follow-up: 5 Changed 13 years ago by mkae (Marko Käning)
Version 1.4.8 now supports non-square icons and would center the icon by default. Left, right, top, and bottom alignment are also possible.
comment:5 Changed 13 years ago by mkae (Marko Käning)
comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Yes, but the icon makeicns generated did not look like the icon TortoiseHg already uses once it launches. So this would result in a jarring transition in the dock icon. I have not yet tested whether the icon attached here has the same problem.
comment:8 Changed 13 years ago by mkae (Marko Käning)
I see now what you mean, Ryan. The changing image issue could be caused by PyQt...
comment:9 Changed 13 years ago by mkae (Marko Käning)
Yep, if you look into /Applications/MacPorts/Python 2.7 you'll see that the Python launcher actually uses this rocket icon which then gets replaced by the tortoise. :-) So, I guess one would need to teach the launcher that it shouldn't show its icon during its own startup.
comment:10 Changed 13 years ago by shiena.jp@…
How about librsvg's rsvg-convert? It was possible to convert it into non-square icon.
depends_build port:librsvg \ port:makeicns platform darwin { set appname {TortoiseHg} post-extract { copy ${filespath}/${appname}.in ${workpath}/${appname} system "rsvg-convert ${worksrcpath}/icons/svg/thg_logo.svg \ --format=png \ --width=512 \ --height=512 \ --output=${workpath}/${appname}.png" system "makeicns -in ${workpath}/${appname}.png \ -out ${workpath}/${appname}.icns" } }
comment:11 Changed 13 years ago by mkae (Marko Käning)
Yep, Brad was thinking about using libsrvg as well. Unfortunately it is a quite large port which could be stripped to a large extend for the same functionality delivered by rsvg-convert. We're pondering the idea to use rsvg-convert in makeicns in the future.
comment:12 Changed 13 years ago by mkae (Marko Käning)
And, I hope it might not be necessary anymore to specify width and height in rsvg-convert... (Haven't tested that though.)
comment:13 Changed 13 years ago by mkae (Marko Käning)
Cc: | pixilla@… added |
---|
comment:14 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Now that we have the app portgroup, I updated tortoisehg to use it (and thus makeicns) in r82557. The icon is not perfect -- when you launch the app, the icon changes in the Dock -- but I guess it's better than nothing.
I'll leave this ticket open because I have not yet looked at the ssh-askpass situation at all.
comment:15 Changed 13 years ago by jmroot (Joshua Root)
Owner: | changed from guido@… to macports-tickets@… |
---|
-> nomaintainer
comment:16 Changed 11 years ago by seanfarley (Sean Farley)
Resolution: | → fixed |
---|---|
Status: | new → closed |
This is fixed in the new version of TortoiseHG
Please remember to cc the maintainer.