fix: use "from" instead of "from_hex" (contrasted)

This commit is contained in:
trisua 2025-04-25 16:23:42 -04:00
parent a28072be7f
commit a5c2356940

View file

@ -112,8 +112,8 @@ pub async fn settings_request(
continue; continue;
} }
let c1 = Color::from_hex(&color_surface); let c1 = Color::from(color_surface);
let c2 = Color::from_hex(&value); let c2 = Color::from(value);
let contrast = c1.contrast(&c2); let contrast = c1.contrast(&c2);
if contrast < MINIMUM_CONTRAST_THRESHOLD { if contrast < MINIMUM_CONTRAST_THRESHOLD {