First of all we would like to introduce you what adaptive theme is. Adaptive theme switches the theme automatically between bright and dark depending on the brightness recieving with the light sensor.
After we received the sample code from Shashwat of the company emberify and implementing into our app we made some enhancement to the function. We implemented a special contextmenu handling. When ever a contextmenu is open we disable adaptive theme, because a change of the theme while the contextmenu is open will close the contextmenu.
Download the sample app of adaptive theme.