cyb3rko / flashdim

Modern flashlight app with dim functionality on Android 13+
Apache License 2.0
410 stars 17 forks source link

[Feature] Use intermediate steps to transition OFF/ON and ON/OFF (smooth) #69

Open wollanup opened 1 month ago

wollanup commented 1 month ago

First of all, bravo for this app, on my new pixel 8a which is locked at 50% brightness , it's perfect !

I was wondering if you could implement a transition mechanism to pass on each step for a few millisec when switching from actual state to new state ?

It could be cool to avoid burnt eyes if brightness increases from OFF to in 1 second for example.

And it would be cool because no other app or phone does that :)

Sorry I can't make a PR, I'm not a Java programmer, but I see in code you got loops and timers to handle morse and interval, so I think it won't be so hard.

cyb3rko commented 1 month ago

Hey there, Thank you :)

The feature sounds interesting, I'll think about implementing that. But I think I would restrict that to the buttons on the left. Otherwise the slider does not make sense if there's a fading delay.