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

Skip to content
Commit 2b9f786b authored by Evan Laird's avatar Evan Laird
Browse files

[Sb] New unified battery icon

This CL adds a new style of battery drawable, `BatteryLayersDrawable`,
which renders a battery meter via manual compositon and arrangement of
layers. The procss is similar to the existing ThemedBatteryDrawable,
where we use custom renering to achieve the correct UI encapsulated in a
drawable.

This new drawable employs the use of a view data class, `BatteryMeterState`, that can fully
describe the desired view state, and encapsulaes battery theme colors in
a `BatteryColors` class, of which there are light and dark variants.

Test: compile
Bug: 314812750
Flag: NONE
Change-Id: I62485c1797d0da680478e6d726f6d90df357ab1e
parent 7c7433ab
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