Skip to content

fix(ui): make the selected settings category legible - #78

Merged
MotherSphere merged 1 commit into
mainfrom
fix/accent-contrast
Sep 2, 2026
Merged

fix(ui): make the selected settings category legible#78
MotherSphere merged 1 commit into
mainfrom
fix/accent-contrast

Conversation

@MotherSphere

Copy link
Copy Markdown
Member

The selected settings category is filled with the accent and written in TEXT_PRIMARY. That pairing is below 4.5:1 on 58 of the 59 themes, and reaches 1.01:1 on Ayu Dark — the selected category was invisible against its own highlight. The highlighted row of an open dropdown had the same pairing.

theme text_primary on accent_blue
ayu/dark 1.01:1
material/palenight 1.08:1
stellar_blade/lily 1.10:1
ayu/mirage 1.10:1
onedark/dark 1.11:1

Both sites now take their foreground from colony_ui::contrast_on, which picks the legible end for whatever accent the user has chosen. app_grid.rs already used it for exactly this, so these two were oversights rather than a deliberate choice.

Found while porting the selection pattern into Digger, which would otherwise have inherited it.

colony-ui 0.1.4

Brings the six palettes whose bg_progress matched their bg_card and therefore drew a progress bar with no visible track — all four Catppuccin variants, Kanagawa journal and Parchment light. Colony draws its progress bars from the same token, so this fixes them here too. See Project-Colony-Resources#2.

Documentation

The catalog grew to 26 families and 59 palettes — Parchment, and upstream Kanagawa Dragon as its own variant beside the journal one that holds its const name. the_documented_theme_counts_match_the_code named all five documents that had the old numbers written down, which is what that test is for. The README's family table gains Parchment and Kanagawa's fourth variant.

150 tests, clippy clean.

The selected category was filled with the accent and written in
TEXT_PRIMARY. That pairing is below 4.5:1 on fifty-eight of the fifty-nine
themes and reaches 1.01:1 on Ayu Dark, where the selected category was
invisible against its own highlight. The open dropdown's highlighted row had
the same pairing.

Both now take their foreground from colony_ui::contrast_on, which picks the
legible end for whatever accent the user has chosen. app_grid.rs already used
it for exactly this, so the two settings sites were oversights rather than a
choice.

Found while porting the pattern into Digger, which would have inherited it.

colony-ui goes to 0.1.4, which brings the six palettes whose bg_progress
matched their bg_card and therefore drew an invisible progress track — all
four Catppuccin variants among them. Colony draws its progress bars from the
same token.

The catalog grew to 26 families and 59 palettes on the way (Parchment, and
upstream Kanagawa Dragon as its own variant beside the journal one that holds
its const name). The doc-parity test caught every place the old counts were
written down, which is what it is for.
@MotherSphere
MotherSphere merged commit ba70cc0 into main Sep 2, 2026
5 checks passed
@MotherSphere
MotherSphere deleted the fix/accent-contrast branch September 2, 2026 10:16
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