Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Appearance of "segmentedTextured" JToggleButtons



On Sep 3, 2008, at 1:25 PM, Scott Palmer wrote:

-----Original Message-----
On Behalf Of Mike Swingler
Sent: September 3, 2008 1:27 PM

On Sep 3, 2008, at 9:02 AM, Steve McLeod wrote:

Hi there

I've tried to use some Apple's client properties to get toggle
buttons on a toolbar, just like iCal's "Day", "Week", and "Month"
buttons. When unselected, the buttons look great. When selected,
however, the text colour is black instead of white. <snip>

You have to change it to white, or if you would like us to do it, please file a bug report at http://bugreporter.apple.com.

Mike,

If the foreground colour has not been explicitly set (or perhaps if it is a
ColorUIResource) then the look and feel should be handling this. There
should be an entry in the UI defaults table that corresponds to the selected
and unselected foreground colours so application code can pick up the
correct color for custom rendering.
What is the argument against having the Aqua LnF do this? Unless there is
some conflict between the Java specifications and the Aqua specifications
not having the LnF do it is a bug - isn't it?

Yeah, anytime we do anything "magical" in the LaF, we check to make sure the value is an instance of UIResource, and leave it alone if it's not.


I only suggest putting this into the Aqua LaF, because it's really the only thing I control, and I can do it across multiple versions of Java. Adding API to Java itself is a great long-term goal, but should be done judiciously, and can only help Java 7 or beyond. Some of the ideas we put into Aqua or that other LaF developers create might not make sense on other platforms, or with the design intention of another LaF. Something should only be proposed as Java platform API if it truly makes sense on all platforms, and all the desktop platforms have evolved their own version of whatever the common concept is.

For all the same reasons I don't like being forced to come up with "something" for JTrayIcon message bubbles in Java 6, I doubt the Windows LaF would appreciate having to do "something" with a "Dock Icon Menu".

Cheers,
Mike Swingler
Java Runtime Engineer
Apple Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Appearance of "segmentedTextured" JToggleButtons (From: "Steve McLeod" <email@hidden>)
 >Re: Appearance of "segmentedTextured" JToggleButtons (From: Mike Swingler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.