Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Unverified Commit 49936e12 authored by d34d's avatar d34d Committed by Michael Bestas
Browse files

SystemUI: Add VectorDrawable battery styles

The current implementation of BatteryMeterView uses arrays of points
that are drawn programmatically.  This limits the ability to overlay
or theme the battery. By utilizing VectorDrawables and
AnimatedVectorDrawables we can achieve the same look and feel of
stock while allowing for more unique battery meters.

Implement portrait, landscape and circle AVD battery styles.
The various dimensions adjustments are to accommodate the
slightly different sizes of the AVD battery styles.

Forward port the AVD battery commits from CM 13.0:
db5cf5dc SysUI: Use VectorDrawable's for rendering battery
d37a5aa5 SysUI: Fix coloring of frame and bolt
2b21b18e SysUI: Use linear interpolator for battery level
5953be01 SysUI: Allow styling of battery text/charge blend mode
e3ddac3a SysUI: Adjust battery dimensions for better look
1530ec9e SystemUI: Set circle battery path as untranslatable

Change-Id: I91b4f5229774c979a7aa9ab771ffcb95ceb71b84
parent af7d8cf9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment