Changing current theme - Native theme for iOS

16 views
Skip to first unread message

P5music

unread,
Jan 4, 2021, 6:31:41 AM1/4/21
to CodenameOne Discussions
My CodenameOne app runs just on simulator for now. It is intended for iOS at present time.
I see it is all orange but I do not think it is the right theme for iOS. Is it?

How to set a good theme for iOS devices, that users are accustomed to? Or not too different?

I read the Developer Guide and it seems that I have to create a new theme, or that the theme is already native. So is the orange theme going to be different on iOS devices?

Or I have to put the native iOS theme inside my theme, where some work has been done for localization so it can be deleted as a file.

Thanks in advance

Shai Almog

unread,
Jan 4, 2021, 10:15:09 PM1/4/21
to CodenameOne Discussions
Themes inherit the native OS theme. Unless you override native theme behavior. You can see that by changing between Android/iOS skins.

P5music

unread,
Jan 5, 2021, 4:06:31 AM1/5/21
to CodenameOne Discussions
I changed the skin to Android skin and it is the same orange skin. 
If the native skin is inherited then I think this is the Window skin, similar to the Linux skin I see.
I need to know if on the iOS devices the iOS skin will be visible or I have to change something in the project.
It would be also nice to be able to preview it on the simulator.
Thanks

Shai Almog

unread,
Jan 5, 2021, 10:17:55 PM1/5/21
to CodenameOne Discussions
When you created the new project you must have picked the orange theme. Just edit it in the designer and delete everything you don't want.
The one thing you do want is the derive native theme constant.
Reply all
Reply to author
Forward
0 new messages