render: add theme.minimum_contrast #231
No reviewers
Labels
No labels
Area/ci
Area/cli
Area/client
Area/client-core
Area/daemon
Area/deps
Area/docs
Area/grid
Area/manual
Area/nix
Area/protocol
Area/pty
Area/render
Area/shaping
Area/skills
Area/transport
Area/vt
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Performance
Kind/Security
Kind/Testing
perf-regression-accepted
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Blocked
Status
Need More Info
Status
Upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
felis-terminal/felis!231
Loading…
Reference in a new issue
No description provided.
Delete branch "render/minimum-contrast"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
theme.minimum_contrast, a WCAG contrast ratio (1–21, default 1 = off) that every cell's text color is raised to against its resolved background, so a palette or a program's color choice cannot leave text unreadable.felis-render-core: acontrastmodule (WCAG luminance and ratio; the text color moves along the Oklab line toward white or black, keeping its hue, by the smallest step that meets the ratio). It runs last inresolve_cell, after reverse video, cursor, selection and faint. Text drawn in its own background color is left hidden; the bidi warning cell is untouched. No glyph-class exemption.resolve_cellcases, config clamp, and a golden paint fixture at 4.5.Closes #218
bbf7e3cc40b29c54ee80b29c54ee808042d07544