Skip to content

Semantic notification icons: thermometer + state-aware status (#34)#41

Merged
almothafar merged 1 commit into
masterfrom
feature/34-notification-icons
Jul 2, 2026
Merged

Semantic notification icons: thermometer + state-aware status (#34)#41
almothafar merged 1 commit into
masterfrom
feature/34-notification-icons

Conversation

@almothafar

Copy link
Copy Markdown
Owner

Closes #34. Cosmetic polish from #5 (persistent notification) and #18 (temperature alert), which reused the "battery charging" glyphs as placeholders.

Problem

  • The temperature alert showed ic_stat_device_battery_charging_20 — a charging icon for a heat alert.
  • The persistent status notification picked a charging glyph by level, so it could show a charging bolt even while discharging.

Change

Added a small monochrome, white-on-transparent vector icon set (status-bar icons render as an alpha mask):

  • ic_stat_temperature_hot — thermometer, for the high-temperature alert.
  • ic_stat_battery_full / ic_stat_battery_low / ic_stat_battery_charging — the ongoing status icon now shows a bolt only while actively charging, otherwise a plain battery whose fill reflects the level. A charged-but-still-plugged battery (BATTERY_STATUS_FULL) reads as a full battery, no bolt.

The pre-existing critical/warning/full alert icons are intentionally left as-is (out of scope per the issue); the old charging PNGs remain in use there.

Acceptance criteria

  • The temperature alert shows a heat/thermometer icon, not a charging glyph.
  • The persistent notification's icon reflects charging vs. discharging correctly.

Testing

./gradlew :app:assembleDebug — vectors compile, build passes. A rendered preview of the four icons is attached in the PR discussion / was shared for review. Not device-verified — worth a glance in the real status bar (small-icon masking) on a device.

🤖 Generated with Claude Code

The temperature alert and the persistent status notification reused the
"battery charging" glyphs as placeholders, so a heat alert showed a charging
icon and the ongoing notification could show a charging bolt while discharging.

Add a small monochrome (white-on-transparent) vector icon set and wire it up:
- ic_stat_temperature_hot — thermometer for the high-temperature alert.
- ic_stat_battery_full / _low / _charging — the ongoing status icon now shows a
  bolt only while actively charging, otherwise a plain battery whose fill
  reflects the level (a charged-but-plugged battery reads as full, no bolt).

The pre-existing critical/warning/full alert icons are left as-is (out of
scope per the issue). The old charging PNG glyphs remain in use there.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@almothafar almothafar merged commit b061204 into master Jul 2, 2026
2 checks passed
@almothafar almothafar deleted the feature/34-notification-icons branch July 2, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proper notification icons (thermometer for temp alert, state-aware status icon)

1 participant