contrast
Check the color ratio of text, buttons, links and edges against their backgrounds in a GUI session to catch WCAG accessibility failures.
Instructions
Contrast measured on the screen, in each node's bounds: text, buttons and links against their background, images, and with edges, a button's or field's edge against what's round it; large text needs 3. A line each, the node as accessible_tree has it with its bounds, then the colors; then what wasn't measured, which doesn't fail (too small, or GTK 4's, whose positions are wrong), and why. Switches, sliders, check boxes and what's disabled are left out, and so is what's scrolled out of view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | Least for edges (unchecked) | |
| ignore | No | Regexes for lines that can't be fixed yet | |
| window | No | A window's title, exactly or a regex matched in full, or app=RE for its app id | |
| session | Yes | Its name, from start_session | |
| graphics | No | Least for images (3) | |
| text_ratio | No | Least for text (4.5) |