Repository navigation
refactor(island): consolidate battery status logic and update BatteryGlyph rendering - #1792
Merged
sameerasw merged 2 commits intoNov 13, 2026
Conversation
|
Thanks! This PR meets the contribution requirements and is queued for review. |
sameerasw
approved these changes
Nov 13, 2026
sameerasw
left a comment
Owner
There was a problem hiding this comment.
Thanks for your contributions <3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue
Closes #1791
Description
Symbols hidden behind the battery: the charging bolt and battery saver plus had their own offscreen layer, which cut off the part that overlaps the battery and stopped the gap around them from cutting into it. I removed that layer, so all symbols draw on top with a proper cutout.
Squashed symbols: the symbol was measured without the 7dp it overlaps the battery by, so tight containers shrank it to a sliver. It now always gets its full size.
Matching outlines: the bolt now uses the same cutout and outline as the limiter shield, and the plus’s gap was widened to match.
Sizing: the battery number is about 10% smaller, and the bolt is shorter (9×11dp, the same size as the shield).
This branch has one commit,
b3f7790cb, with these changes:Glyph rendering fixes (
IslandComponents.kt)BatteryGlyphPreviewshowing every battery state.Battery state everywhere (
BatteryStatus.kt,TimeBatteryPlugin.kt,BriefPlugin.kt)BatteryStatus.kt, used by both plugins.Type of change
UI changes
added a small preview to see quickly all the states of the icon

Screen_recording_20261112_164705.webm
now the peek alerts and brief uses the correct battery status too.
Checklist
approvedand assigned to me.develop../gradlew assembleDebugand./gradlew testDebugUnitTestpass.