From: Trevor W. <pha...@gm...> - 2017-10-14 04:00:09
|
Kevin, What is the fossil command needed to clone the respository? Thanks, Trevor > On Oct 13, 2017, at 4:03 PM, Kevin Walzer <kw...@co...> wrote: > > Hello all, > > I've opened up a "mac-wm-icon" branch on Fossil that adds support for the "wm iconphoto" command on macOS. This command lets you set a wm icon from a Tk image, and is used on Windows and X11 to customize the icon in the window display and taskbar, as appropriate. This command has not previously been supported on the Mac. I've implemented this on macOS using a Cocoa API call to set the app's icon in the Dock, in native dialog boxes, and other contexts appropriate for the platform. > > At the script level, the command works as documented, with a few caveats: > > wm iconphoto window ?-default? image1 ?image2 ...? > > At the script level the command will accept only the first image passed in the parameters as support for multiple sizes/resolutions on macOS is outside Tk's scope. Developers should use the largest icon they can support (preferably 512 x 512 pixels) to ensure smooth rendering on the Mac. Smaller icons will be sized to the correct resolution by macOS and may appear jagged if they are too small. > > Additionally, while images sourced in GIF format will retain their alpha channel/transparency when converted to the Mac icon format, PNG images will not. As PNG images work just fine with full alpha channel support when sourced directly into a Mac icon, this may indicate some issue with PNG reading or conversion within Tk. This issue may have been addressed by TIP 166, but in any case, fixing the PNG issue is outside the scope of this request for feedback. The proposed documentation notes that GIF images work just fine. > > I'd like feedback on this over the next couple of weeks if possible. Suggestions (and patches) are welcome. If there is no significant negative feedback, I will commit this change to 8-6-branch and trunk. > > Thanks, > > Kevin > > Kevin Walzer > Code by Kevin/Mobile Code by Kevin > http://www.codebykevin.com > http://www.wtmobilesoftware.com > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Tcl-mac mailing list > tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac |