I am planning to make an app which would switch between Light and Dark theme based on the ambient light conditions. So if it was a dark room, then the app would switch to a dark theme to reduce the strain on the eye and provide a pleasant experience.
I looked into Qt LightSensor API Docs here but on trying it on a sample device didnt work as expected. I also made sure to add sensors to the apparmor file. Has anyone got this working?
I would appreciate if the answer could include a working code.