default buttons different on emulator and real device

Hello,

I am using default buttons without any images and in the emulator they are beautiful white buttons but when i open the game in real device the button is ugly grey (looks like missing images)?

my button code…

local playButton = widget.newButton { left = 100, top = 200, id = "Play", label = "Play", onEvent = playButtonEvent }

Which device are you talking about?

The emulator “runs” on your desktop screen - your device´s screen is very likely going to display the “same” colors differently.

I have Samsung galaxy s2 and the buttons are white in the emulator and in my mobile device they are grey.

May you please make a screenshot of those “white” buttons? (no photo!)

There are two possible issues:

  1. there is a bug in your simulator/corona install

  2. your desktop-screen does not support many colors and can not display them correctly.

All buttons created by the widget library should be grey. This is the standard behaviour if you did not specify a theme or any images.

How do i specify a theme?

PS: i found the problem.

“widget_theme_ios” is set bydefault but in my android device it sets it back to "“widget_theme_android” which is grey.

Can i set ios theme for android devices?

Actually I am not sure if the following line does affect the buttons:

widget.setTheme(“widget_theme_ios”)

Take a look at this in the docs:

http://docs.coronalabs.com/api/library/widget/setTheme.html

Please please make a screenshot of your simulator window!

I haven´t seen any “white” buttons no matter what theme I chose.

And please do not edit your post after someone else has posted because no one gets a notification if you simply edit your post.

Which device are you talking about?

The emulator “runs” on your desktop screen - your device´s screen is very likely going to display the “same” colors differently.

I have Samsung galaxy s2 and the buttons are white in the emulator and in my mobile device they are grey.

May you please make a screenshot of those “white” buttons? (no photo!)

There are two possible issues:

  1. there is a bug in your simulator/corona install

  2. your desktop-screen does not support many colors and can not display them correctly.

All buttons created by the widget library should be grey. This is the standard behaviour if you did not specify a theme or any images.

How do i specify a theme?

PS: i found the problem.

“widget_theme_ios” is set bydefault but in my android device it sets it back to "“widget_theme_android” which is grey.

Can i set ios theme for android devices?

Actually I am not sure if the following line does affect the buttons:

widget.setTheme(“widget_theme_ios”)

Take a look at this in the docs:

http://docs.coronalabs.com/api/library/widget/setTheme.html

Please please make a screenshot of your simulator window!

I haven´t seen any “white” buttons no matter what theme I chose.

And please do not edit your post after someone else has posted because no one gets a notification if you simply edit your post.