Join GitHub today
Frontlight - Add checkbox use system settings #5307
See: #5205 (comment)
After check button we have Frontlight widget with read only status.
Checkbutton status is written in global variable
Awesome job @robert00s !
I will review changes at night and submit a PR on top of your branch.
A few things I noticed:
Default is system settings, at least on Android. No problem with that since it can be retrieved using
function Device:isUsingSystemSettings() return android.getScreenBrightness < 0 end