mirror of
https://github.com/danbulant/cushy
synced 2026-06-15 04:21:06 +00:00
The previous fix was a fix in contrast_between. However, I then convinced myself that the selected color was changing when it wasn't purely because the alpha picker utilizes a checkeboard pattern, and I was specifically testing grayscale values. Aka, I was reproducing the "different grays" optical illusion using the loupe outline color and driving myself crazy trying to figure out what my code was doing, when in reality it wasn't doing anything. The real fix? Don't ask for contrast between two similar colors. OutlineColor and TextColor are both meant to be contrasting colors to SurfaceColor, which is the background color. The loupe color really should have switched between any surface-type color and any foreground-type color, but it instead was asking for two different foreground colors. |
||
|---|---|---|
| .. | ||
| animation | ||
| styles | ||
| widgets | ||
| animation.rs | ||
| app.rs | ||
| context.rs | ||
| debug.rs | ||
| graphics.rs | ||
| lib.rs | ||
| names.rs | ||
| styles.rs | ||
| tick.rs | ||
| tree.rs | ||
| utils.rs | ||
| value.rs | ||
| widget.rs | ||
| widgets.rs | ||
| window.rs | ||