Native look and feel documentation?
Mike Swingler
swingler at apple.com
Fri Apr 20 08:34:42 PDT 2012
All the code is here:
Native: <http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/macosx/native/com/apple/laf/>
Native bridging: <http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/macosx/classes/apple/laf/>
Swing LaF/Behavior: <http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/macosx/classes/com/apple/laf/>
Cheers,
Mike Swingler
Apple Inc.
On Apr 19, 2012, at 11:51 PM, Tobias Bley wrote:
> Hi,
>
> thanks Mike for that important information. I know that the Mac UI is not as simple I explained it ;) But with JavaFX 2 and the extended CSS possibilities you can do many many things like multi gradient backgrounds, highlights, noise, svg, etc.
>
> I love the approach to ask the native system to render the UI in an image! I think it would be the best way for JavaFX 2 too. I would like to dry a few things - so is there a documentation about the JavaRuntimeSupport.framework? Or is this part of code in Java OpenSource / in OpenJDK too?
>
> btw: You are right, Lucida Grande in Mac OS X, Helvetica in iOS.
>
> Best regards,
>
> --
> Tobias Bley
> Chief Executive Officer
>
> --------------------------------------------------------
>
> UltraMixer Digital Audio Solutions
> Schillerstraße 29
> D-01326 Dresden
> Germany
>
> --------------------------------------------------------
> info at ultramixer.com http://www.ultramixer.com
>
>
>
> Am 19.04.2012 um 19:34 schrieb Mike Swingler <swingler at apple.com>:
>
>> Hi,
>>
>> We do not publish a spec for people to replicate the Aqua UI, which changes with every OS release (sometimes in big ways, sometimes in small ways). Many UI elements are not expressible with simple gradient fills because they are filled with textures, curved highlights, subtle noise.
>>
>> The Swing Aqua Look and Feel asks the native system to render components into a BufferedImage using the JavaRuntimeSupport.framework, so it is always current with the OS, with a minimum of version checks in Java code.
>>
>> Oh, and the system default font is Lucida Grande, not Helvetica.
>>
>> Regards,
>> ~Mike
>>
>> On Apr 17, 2012, at 4:03 AM, Tobias Bley wrote:
>>
>>> Hi Mike,
>>>
>>> I started a new project to create native looking skins for JavaFX 2...http://blog.software4java.com/?p=15
>>>
>>> So I have to create a complex css file to style all common controls like buttons, checkboxes, tables etc.
>>>
>>> Because of the many gradient fills of the beautiful Mac OS X theme it's not simple to port it to pure CSS without an documentation of the mac os x theme. It know the style guide but my question is: Is there any official documentation or photoshop file available about every user interface element in Mac OS X 10.7?
>>>
>>> the best would for me something like this:
>>>
>>> Button
>>> - border: 2px black
>>> - gradient: color1 0%, color2 10%, color3 100%
>>> - font: Helvetica
>>> - font-size: 12px
>>> - font-color: #222222
>>> ....
>>>
>>> Best regards,
>>> Tobi
>>>
>>>
>>>
>>
>
More information about the macosx-port-dev
mailing list