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

image: Add battery charging animation #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kallisti5
Copy link
Contributor

@kallisti5 kallisti5 commented Apr 15, 2023

Need to work on animating this... but it offers a lot better visual feedback on a charging vehicle. c0 - c4 should be played on a loop while charging and should repeat seamlessly

@kallisti5
Copy link
Contributor Author

aand i just realized battery_100 isn't mentioned anywhere. The battery_overlay is stacked somehow.. isn't it?

@dexterbg
Copy link
Member

Yes, the overlay is the 9-patch image battery_overlay_t assigned to view tabInfoImageBatteryOverlay. The center slice is scaled by the SOC via InfoFragment.updateCarInfoView().

Not sure about how to animate a 9-patch, maybe that's then better solved via vector graphics.

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.

2 participants