Metal Texture and Snow Leopard

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
robl
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 62
Joined: Wed Dec 22, 2010 9:50 pm

Metal Texture and Snow Leopard

Post by robl » Wed Jan 12, 2011 1:19 pm

I've noticed that stacks with "metal texture" creates a metal texture similar to that used in earlier versions of OS X. On Snow Leopard (10.6.X), LiveCode's metal texture doesn't blend in with the window title bar and border -- it's a bit too dark.

Is there a way to obtain a more Snow Leopard-like metal texture besides skinning with a background image? If skinning is the only answer, does anyone have a link to a good metal texture?

Thanks!
Robert
Attachments
BadMetal.jpg
BadMetal.jpg (17.47 KiB) Viewed 7214 times

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Metal Texture and Snow Leopard

Post by FourthWorld » Wed Jan 12, 2011 3:21 pm

The OS X HIG says that bushed-metal windows have been deprecated, so I think you're just seeing an anomaly in which Rev is attempting to call an OS appearance routine that's no longer present.

From the OS X HIG:
Important: In Mac OS X v10.5 and later, there are no brushed metal windows. Windows that were designed as brushed metal windows to run in earlier versions of Mac OS X should adopt the Leopard look in Mac OS X v10.5. For the most part this is automatic. You may need to adjust your layout so that no window-frame material is visible on the sides of the window and you should ensure that the controls you used in the toolbar are still appropriate.
http://developer.apple.com/library/mac/ ... ndows.html
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

robl
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 62
Joined: Wed Dec 22, 2010 9:50 pm

Re: Metal Texture and Snow Leopard

Post by robl » Thu Jan 13, 2011 5:00 pm

Thanks, Richard.

I hadn't noticed that previously. It is curious though, even after deprecating that feature, it still appears in Apple's Xcode Interface Builder tool as "textured". Apple seems to be really inconsistent some times.

My goal was to create something similar to the new style unified tool bar / title bar that is common in Leopard and Snow Leopard, but I haven't been able to replicate that in LiveCode. In LiveCode, it seems that there is a line / shadow below the window title bar and you are unable to create a seamless transition to a tool bar below it. The closest I have come so far is to use the "metal" property in LiveCode with a a custom gradient texture for the a background. The "metal" style doesn't impose the line/shadow below the window's title bar.

Is there a better solution for the unified toolbar under LiveCode?

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Metal Texture and Snow Leopard

Post by shaosean » Fri Jan 14, 2011 2:33 pm

Picture 11.png
unified toolbar in rev
Picture 11.png (47.75 KiB) Viewed 7173 times

Klaus
Posts: 14206
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Metal Texture and Snow Leopard

Post by Klaus » Fri Jan 14, 2011 3:13 pm

Hi Sean,

yep, that's how a toolbar looks like on OS X and I think we've seen this before.
Anything you want to tell us? :wink:


Best

Klaus

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Metal Texture and Snow Leopard

Post by shaosean » Wed Jan 26, 2011 10:37 pm

*shrug*
Last edited by shaosean on Thu Jan 27, 2011 8:10 am, edited 1 time in total.

Klaus
Posts: 14206
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Metal Texture and Snow Leopard

Post by Klaus » Thu Jan 27, 2011 12:08 am

Hi Sean,

what exactly is IT in your answer?

Post Reply