Possibility of having the correct aspect for default buttons

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Possibility of having the correct aspect for default buttons

Post by Mag »

Hello everyone, I am creating an app for macOS but unfortunately I see that there are differences between the appearance of the default buttons of Mac and those created by LC. In particular the text of the blue button is not white like that of the system, and the font is not the one used by the system (best seen in the "Cancel" button).

Does anyone know if there is a way to make them equal?
Attachments
LC-Buttons.jpg
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Possibility of having the correct aspect for default but

Post by richmond62 »

And why, when the thing appears on Macintosh does the spelling of 'sure" change to "shure"?

Because those are NOT the same message windows from the same stack on 2 machines.
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Possibility of having the correct aspect for default but

Post by Klaus »

@Richmond
richmond62 wrote:And why, when the thing appears on Macintosh does the spelling of 'sure" change to "shure"?
I bet just to tease you old nitpicker from Scotland! :D
richmond62 wrote:Because those are NOT the same message windows from the same stack on 2 machines.
Noone said these are BOTH LC dialogs!

@Mag
Sorry, no idea, but in LC >=8 the "native" look on a Mac (and Windows) has really improved... 8)
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Possibility of having the correct aspect for default but

Post by Mag »

Thank you Klaus, richmond62 sorry for the typo in the LC stack sample... :oops:

PS
I bet that macOS changed appearance after LC team has improved the "native look"... :wink:
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Possibility of having the correct aspect for default but

Post by richmond62 »

Here's a way to get started:
whiteDialog.jpg
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Possibility of having the correct aspect for default but

Post by Mag »

Thank you richmond
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Possibility of having the correct aspect for default but

Post by richmond62 »

If you want the buttons to use the Macintosh system font
then you should set the textFont of your stack to the Mac system font.
Post Reply