cushy/src
Jonathan Johnson d701e179ae
Fixing ComponentPicker<Alpha>'s loupe coloring
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.
2024-01-11 07:10:45 -08:00
..
animation LayoutContext 2023-11-05 11:50:59 -08:00
styles Initial implementation of offscreen rendering 2024-01-03 11:35:43 -08:00
widgets Fixing ComponentPicker<Alpha>'s loupe coloring 2024-01-11 07:10:45 -08:00
animation.rs Added animation recording + event wiring 2024-01-03 17:45:11 -08:00
app.rs Children renamed to WidgetList 2024-01-09 13:26:14 -08:00
context.rs Guide intro + KeyEvent 2024-01-06 14:46:48 -08:00
debug.rs Children renamed to WidgetList 2024-01-09 13:26:14 -08:00
graphics.rs Directly depending on figures 2023-12-28 09:35:24 -08:00
lib.rs Initial DebugContext implementation 2023-12-28 21:30:25 -08:00
names.rs Renaming crate to Cushy 2023-12-27 19:02:59 -08:00
styles.rs Fixing Color::contrast_between 2024-01-11 07:09:17 -08:00
tick.rs Guide intro + KeyEvent 2024-01-06 14:46:48 -08:00
tree.rs Fix clippy warning 2023-12-31 07:51:10 -08:00
utils.rs ReadOnly<T>, Owned<T>, IntoSource<T>, more 2024-01-02 14:36:53 -08:00
value.rs Added more color pickers 2024-01-10 13:27:12 -08:00
widget.rs Children renamed to WidgetList 2024-01-09 13:26:14 -08:00
widgets.rs Fixing MSRV 2024-01-06 14:57:59 -08:00
window.rs Children renamed to WidgetList 2024-01-09 13:26:14 -08:00