Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(QsTile/Dimmer): continue cycle from current strength level #79

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

FineFindus
Copy link

Continues the cycle from the current strength level by mapping the current level to the next cycle level. For example, if the user has already activated the torch from another application and has set it to 2 (out of 10), the tile will show the minimum state.

Built on/replaces #78

Changes the DimmerSettingsTile to always start from the dimmest mode
if the toch is disabled. Previously it would continue from the last
mode, which was confusing to the user, since suddenly the tile acted
different when tapped.
Fixes an issue, where if the torch was externally disabled, the mode
should continue to show the (now outdated) mode instead of off.
Continues the cycle from the current strength level, by mapping the
it to the nearest cycle level. For example, if the user has already
enabled the torch through another app, and e.g. set it to 2 (out of 10)
the tile will be show the min state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant