Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snow Leopard detection for painting background #177

Open
GoogleCodeExporter opened this issue May 4, 2015 · 0 comments
Open

Snow Leopard detection for painting background #177

GoogleCodeExporter opened this issue May 4, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. You must have Snow Leopard
2. Create JFrame
3. Call MacUtils.makeWindowLeopardStyle(getRootPane()); // issue here
2. Add PreferencesTabBar or UnifiedToolBar.
3. Compile/Run
You will realize that the background is paint manually as if it was running in 
a non-Mac or non-Leopard os (which has different colors than Snow Leopard 
colors)

What is the expected output? What do you see instead?
The fix is to simply never paint the background manually. Instead, use the 
system property to set rootPane to Cocoa, and make the TabBar/ToolBar 
transparent. Also, there should be a check for OS >= 1.6 instead of just 
checking 1.5.


What version of the product are you using? On what operating system?
0.9.5


Please provide any additional information below.
I found previous version (cannot tell which one) that doesn't have this 
problem. I assume the reason was because it didn't try to draw the background 
at all back then.

Thanks.

Original issue reported on code.google.com by [email protected] on 28 Mar 2011 at 4:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant