-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
widbat: Use flash, not fork to indicate charging #2984
Conversation
Green fork is not easily visible, which can be confusing.
Am I right in thinking that the widget still changes length, but that extra length now isn't used for anything? If so I think we'd need to change that - and also just using an image rather than rendering the polygon would be a lot faster |
It's a plug (US-style) not a fork lol |
Yeah, I guess it is a plug. Problem is it is green, so it is hard to see. I fixed code to no longer change the size, thanks for noticing. Not sure about changing it to image; I believe this is fast enough and smaller code. |
I did some benchmarking, and filled polygons seem to be pretty fast (only 2x slower than lines, for example), so this should be good solution from performance standpoint, too. |
@thyttan, @halemmerich, @bobrippling do you have any strong feelings about this? This is what it looks like: I quite like the idea of not changing the widget width when on charge, but personally I'm not a fan of the look of the lightning strike, plus it does make it hard to see how full the battery is. I guess it might be possible to make a 'thinner' bitmap of the plug (or find a more obvious lighting spark image) and use that. Or honestly, if you don't like the green charge plug image, we could just make it black? The other option is to just have a new widget with these changes in. |
Can't say I do :P However: PRO keeping as is:
PRO changing
Personally I use widminbat |
Yeah, I'll add my vote for keeping this (i.e. merging this change). Main reasoning:
|
Yellow flash would be hard to see, but feel free to change flash shape/size. State of charge being harder to tell may not be so bad -- percentage is not really reliable during charge, anyway. Creating yet another battery widget .. well is doable but we should do right thing by default :-). |
Yeah I agree, and that's a good point about the percentage being a little high during charging - perhaps all good as-is |
…idgets, use let scoping(faster), and hard-code 's' to make rendering quicker
Ok, just changed the flash a bit to make it a bit more flash-like, and added a few other optimisations |
Thank you, looks okay to me in a brief test. |
Green fork is not easily visible, which can be confusing.