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

Skip to content
Commit 1d312ed1 authored by Evan Laird's avatar Evan Laird
Browse files

[Battery] New icon updates

- Changed the BatteryFillDrawable to support dynamic inset between the
  fill and the frame. This amounts to calculating the drawing insets
  when the value changes, and storing local references to the non-scaled
  values so that we can update them.
- Dynamic fill is now set to (if attribution-showing?
                               0
                               1.5)
- Upgraded `showErrorState` to a `ColorProfile` type
- BatteryMeterView now calculates the color profile for any given state.
- Battery fill is now the only thing we color for different profiles.
  Everything else is using the foreground color
- Lastly, reduced the height of the status bar battery from 14sp ->
  12sp. This yields some gnarly decimal width, but such is life

Test: manual using `adb shell cmd battery` and subcommands `unplug`,
`set level N`.
Test: manual by setting battery saver mode, plugging / unplugging the
device
Test: go/battery-2024-companion
Bug: 330707481
Flag: ACONFIG com.android.settingslib.flags.new_status_bar_icons TEAMFOOD

Change-Id: Idd651a023fee4a7c796c46d5990f7a90df92dc76
parent 925ff714
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