ultimate_alarm_clock icon indicating copy to clipboard operation
ultimate_alarm_clock copied to clipboard

feat: System Theme Mode

Open duckcommit opened this issue 1 year ago • 1 comments

Description

Our app now features a system theme mode, which will listen automatically to the changes in the system theme mode and apply that.

Fixes #427

Screenrecording

https://github.com/CCExtractor/ultimate_alarm_clock/assets/22213675/c574f23d-1ec0-43bb-8295-a88e68130a06

Checklist

  • [x] Code follows the established coding style guidelines
  • [x] All tests are passing

duckcommit avatar Feb 16 '24 14:02 duckcommit

@MarkisDev , I have made the changes. Now our app only looks for the system theme on the initial. No more periodic checks.

When we directly retrieve the themes using existing method, system mode is not working properly. It is not change the entire widget. So what I did was, I made a systemenabled variable, after that I do a brightness check to find out if its dark or light. And apply the theme as theme.dark, at the same time maintaining the dropdown option as System,

This is the most optimal method for now.

duckcommit avatar Mar 13 '24 18:03 duckcommit