Repository navigation
ADFA-5267 fix(theming): tokenize note/status banners + dark fix for the info banner - #471
Merged
Merged
Conversation
…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.
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.
Brings the tinted note/status banners onto the token system and applies design's
dark-theme fix for the info banner.
What changed
accent reference tokens. Light values unchanged.
k2go_info_container #153029 + k2go_info_ink #7FE0A3 (~8.8:1). Only these two
values are new.
the fix applies wherever the info banner appears.
Not reinterpreted
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.