PhantomAppDevelopment / pizza-app

An Adobe AIR mobile app that uses the Yelp Fusion & Firebase V3 API to create a small social network for pizza lovers.
https://play.google.com/store/apps/details?id=air.im.phantom.pizza
MIT License
15 stars 2 forks source link

Where does the red background come from? #10

Closed SSzretter closed 7 years ago

SSzretter commented 7 years ago

I have scoured the code and am not able to find the red background on most of the screens. Can you tell me where this is set?

agentphantom commented 7 years ago

The global red background is declared in this line

I will give a brief explanation of why it's there.

The default background of an AIR app is white. When you rotate the app and a Context Loss happens you will notice a brief flicker. This flicker is the same color as the global background.

What I do is to set the global background to the same as the dominant color of the app, this way when a context loss happens the flicker would be less noticeable.