Navbar Main Color

Hello,

I’m newbie to use Corona. I have to change the navbar main color from style.lua.

My hex code is: #EF452A

RGB Percent is: 93.7, 27.1, 16.5

I’m trying to use 93.7, 27.1, 16.5 but i’m getting white screen on navbar. How can i fix this?

Thanks,

Try  0.937, 0.271 and 0.165 and see if that takes care of you. In the old days we used the 0-255 RGB 8 bit values. Devices can show such larger ranges of color today so several years ago we switched where our colors are all 0 … 1.  Percentage values when divided by 100 generate numbers between 0 and 1.

Rob

Thank you Rob, it worked! :slight_smile:

Try  0.937, 0.271 and 0.165 and see if that takes care of you. In the old days we used the 0-255 RGB 8 bit values. Devices can show such larger ranges of color today so several years ago we switched where our colors are all 0 … 1.  Percentage values when divided by 100 generate numbers between 0 and 1.

Rob

Thank you Rob, it worked! :slight_smile: