Improve battery indicator color config #2372
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

theme=darkspecifierBefore:

After:

Decided to try Cursor. Some things were faster to describe than they would have been to type/develop manually, but I'm very much still learning how to use it, and it took a few wrong turns, so the update took much longer than anticipated 😅
Granted, I wasn't expecting to have to debug the voltage colour feature not working at all for my setup, and that's where the main complexity/investigation ended up (which turned out to be a debouncing issue).
I like the idea that debouncing waits for stability before choosing a colour, but I'm a little unsure whether it should be replaced with throttling instead to avoid the possibility of the colour never changing because the voltage is never stable. I suppose that mostly depends on how variable we expect the voltage to be.
Ideally the debouncing would happen at the threshold level rather than the number level, but that's probably quite a lot of code to implement for a problem that may not actually eventuate...