Ugly looking controls on iPhone

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 508
Joined: Sun Dec 18, 2011 7:23 pm
Location: London
Contact:

Ugly looking controls on iPhone

Post by kaveh1000 » Fri Oct 12, 2018 5:18 pm

I am using default fields and buttons in LiveCode. In Simulator and on iPhone I get old style looking controls. See comparison here (Viewed in LiveCode 9 Mac on left, XCode simulator right.

How can I get better looking controls?
Kaveh

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Ugly looking controls on iPhone

Post by richmond62 » Fri Oct 12, 2018 6:33 pm

Personally, in none of my public release software do I use default controls.

This is because I deploy my software across multiple platforms: Macintosh, Linux and Windows, and have no way of guaranteeing that any end-user's system has the fonts I like installed.

I have a "thing" about Macintosh Charcoal.ttf. So I set up all my buttons using that font
on a Macintosh computer I use and take a snaspshot of it, so I end up with an image
that is an exact copy of the button and I can then use that image as a button which
will appear the way I like on whichever platform my software appears.
-
BTNs.png
BTNs.png (14.05 KiB) Viewed 3193 times
-
At the top there is the button "B1", and underneath it is an image that is
a snapshot of the button.
-
Import snapshot from btn "B1"
-
BUTTONs.livecode.zip
Here's the stack.
(2.67 KiB) Downloaded 206 times

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Ugly looking controls on iPhone

Post by capellan » Fri Oct 12, 2018 8:21 pm

This is the image that Kaveh posted in google drive:
Screen Shot 2018-10-12 at 17.12.20.png
Font Metrics is a real headache for cross platform development.

Al

kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 508
Joined: Sun Dec 18, 2011 7:23 pm
Location: London
Contact:

Re: Ugly looking controls on iPhone

Post by kaveh1000 » Fri Oct 12, 2018 8:48 pm

Thank you so much both. Yes, I did some more research and I think the answer is to use images with a transparent button, so we know exactly what will be shown.

And thanks for pasting the image. I tried the img tag but it would not show in preview. No idea why.

So nice to continue using LiveCode, having used HyperCard since its beta version. ;-)
Kaveh

Post Reply

Return to “iOS Deployment”