Add icons for dock, windows and taskbar

Issue #64 resolved
Matthias Schoettle created an issue

Add a nice icon to TouchRAM that will be displayed in the dock (Mac OS X), taskbar (Windows) and as a window/app switcher icon (Windows).

A nice icon is located in the SVN repository under RAM/core/touchram.png

Comments (7)

  1. Matthias Schoettle reporter

    Resolved issue #64: Added initialization of all icons and setting them to the frame provided by MT4j/Processing.

    Using a workaround for Mac OS in order to set the dock icon. Once a bundle is used, this won't be required.

    Created icons for every possible resolution required by Windows or Mac (we also support retina displays, which are all the @2x icons)

    For Mac OS X, see https://developer.apple.com/library/mac/documentation/userexperience/conceptual/applehiguidelines/IconsImages/IconsImages.html "Provide the Correct Resources and Let OS X Do the Work".

    For Windows, see: http://stackoverflow.com/a/18224185

    → <<cset 5921b52f5ec0>>

  2. Matthias Schoettle reporter
    • changed status to open

    That's right.

    Apple provides sample code using reflection: https://developer.apple.com/legacy/library/samplecode/OSXAdapter/Introduction/Intro.html

    However, I found an improved version of OSXAdapter provided by the knopflerfish project: https://www.knopflerfish.org/svn/knopflerfish.org/trunk/osgi/bundles/desktop/src/org/knopflerfish/bundle/desktop/swing/OSXAdapter.java

    This version works with the latest version of Java 6 for Mac. Also, this version supposedly works with Java 7.

  3. Matthias Schoettle reporter

    We need to make sure that we follow the copyright conditions of the knopflerfish sourcecode.

  4. Matthias Schoettle reporter

    Resolved issue #64: Replaced direct call to com.apple.eawt.Application with OSXAdapter class. Using a modified version from knopflerfish project, which is compatible with the latest Java 6 version for Mac by Apple. OSXAdapter uses reflection to set the dock icon. It also allows to set other handlers, such as a quit handler.

    → <<cset aa4ed0bba5d9>>

  5. Log in to comment