From 26c076163ac97795eccd8259759596f9c6add29f Mon Sep 17 00:00:00 2001 From: Evan Laird Date: Mon, 11 Mar 2019 19:35:23 -0400 Subject: [PATCH] Increase the thickness of the fill protection for the battery icon The battery icon is real small, so making the protection around the charging / powersave icons larger makes things look nicer Test: visual Change-Id: I71db27c6e16defa285de14f5c5c1a85af0afde0d --- .../com/android/settingslib/graph/ThemedBatteryDrawable.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SettingsLib/src/com/android/settingslib/graph/ThemedBatteryDrawable.kt b/packages/SettingsLib/src/com/android/settingslib/graph/ThemedBatteryDrawable.kt index a62872cd0ffdd..1bb6c443f29b9 100644 --- a/packages/SettingsLib/src/com/android/settingslib/graph/ThemedBatteryDrawable.kt +++ b/packages/SettingsLib/src/com/android/settingslib/graph/ThemedBatteryDrawable.kt @@ -411,8 +411,8 @@ open class ThemedBatteryDrawable(private val context: Context, frameColor: Int) private const val CRITICAL_LEVEL = 15 // On a 12x20 grid, how wide to make the fill protection stroke. // Scales when our size changes - private const val PROTECTION_STROKE_WIDTH = 1.4f + private const val PROTECTION_STROKE_WIDTH = 3f // Arbitrarily chosen for visibility at small sizes - private const val PROTECTION_MIN_STROKE_WIDTH = 5f + private const val PROTECTION_MIN_STROKE_WIDTH = 6f } }