Skip to content

ADFA-5267 fix(theming): tokenize note/status banners + dark fix for the info banner - #471

Merged
luisguzman-adfa merged 4 commits into
mainfrom
fix/ADFA-5267-tokenize-note-banners
Aug 25, 2026
Merged

luisguzman-adfa merged 4 commits into
mainfrom
fix/ADFA-5267-tokenize-note-banners

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Brings the tinted note/status banners onto the token system and applies design's
dark-theme fix for the info banner.

What changed

  • The 4 banner drawables (info/warn/notice/ok) no longer hardcode hex — body and
    accent reference tokens. Light values unchanged.
  • Info dark fix (design k2go-banner-contrast-v1) as -night twins:
    k2go_info_container #153029 + k2go_info_ink #7FE0A3 (~8.8:1). Only these two
    values are new.
  • Info banner title/subtitle routed to the unified k2go_info_ink (15 sites), so
    the fix applies wherever the info banner appears.

Not reinterpreted

  • warn/notice/ok keep their exact current colors, just moved to tokens — a color
    reported later is a one-token change.

Design source: token card k2go-tokens-card-v1 (ADFA-4725) + info fix
k2go-banner-contrast-v1. Related: ADFA-5248.

Verification
Checked on device in light and dark.

…he info banner

The tinted note/status banner drawables (info/warn/notice/ok) hardcoded their
hex fills, so they had no -night variant and bypassed the token system; and the
info banner's text used k2go_teal, which lightens at night — landing ~3.67:1
(below AA) on the pale body in dark mode.

- Move the four layer-list drawables onto tokens (container = body, bar =
  accent). Light values are unchanged from the old inline hex.
- Apply design's info-banner dark fix (k2go-banner-contrast-v1) as -night twins:
  k2go_info_container #153029 + k2go_info_ink #7FE0A3 (~8.8:1). Only these two
  values are new; warn/notice/ok keep their current colors, now token-driven.
- Route the info banner's title/subtitle (15 sites, 7 layouts + BackupRestore)
  to the unified k2go_info_ink so the fix applies everywhere the info banner
  is used.

A future banner-color change is now a one-token edit.
Mirrors the info-banner dark fix for the warn/caution family. The warn body was
fixed-light amber with text on k2go_amber_text, which flips to Marigold at night
— ~1.84:1 on the pale body, below AA. warn was intentionally out of scope of the
info pass; this closes it (ADR-5061 shadowed-not-retired).

- Add -night twins: k2go_warn_container #2C2211, k2go_warn_ink #F6CE86 (text on
  container 10.48:1). Light values unchanged.
- Bar = Marigold (k2go_amber #F2A23C) in both themes; remove the off-palette
  k2go_warn_bar #C98A1E.
- Route every warn-banner text (Maps/ZIM confirm, ZIM fits, Kolibri confirm,
  Settings status, Clone x2, Module hub) + the Settings icon to the unified
  k2go_warn_ink; k2go_amber_text keeps its ~15 non-banner status uses.

Design: k2go-warn-darktwin-proposal-v1.
…weep)

Completes the tinted-banner family sweep. notice/ok were legible but their light
bodies glared in dark; this gives them dark tonal cards like info/warn.

- notice: -night container #2E1613 + text #F2B4A4 (9.5:1); accent bar Clay
  #C4462F -> brighter dark twin #D9694F (4.9:1; plain Clay is 3.4:1 on the dark
  body). notice banners already used k2go_notice_ink — just paired a -night twin.
- ok: -night container #14301C + a unified k2go_ok_ink (light Leaf #2E9E5B ->
  night #8CE0A0, 9.0:1); bar Leaf #2E9E5B in both themes. Routed the 5 ok-banner
  sites (Clone, ZIM fits, Kolibri confirm, Settings status text + icon) to it;
  k2go_leaf keeps its non-banner status uses.

Light: only Clone's "no library, fresh" ok banner shifts (notice_ink brown ->
ok green), needed so the text stays legible on the now-dark container.

Design: k2go-banner-families-dark-v1.
Corrects the "light unchanged" assumption: ok was a real bug (green-on-green
2.86:1) and notice marginal. Design supplied darker light on-colours that clear
4.5:1 without touching the bodies (k2go-banner-light-fix-v1). info and warn were
already fine (info 6.19:1; warn 5.19:1 once its text moved to warn_ink).

- k2go_notice_ink light #3A2320 -> #A8351F (Clay, 5.28:1).
- k2go_ok_ink    light #2E9E5B -> #17703D (dark Leaf, 5.15:1).

Dark twins unchanged. All four families now clear AA in both light and dark.
@luisguzman-adfa
luisguzman-adfa merged commit 256d8c5 into main Aug 25, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/ADFA-5267-tokenize-note-banners branch August 25, 2026 06:58
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.

1 participant