fix: use "from" instead of "from_hex" (contrasted)
This commit is contained in:
parent
a28072be7f
commit
a5c2356940
1 changed files with 2 additions and 2 deletions
|
@ -112,8 +112,8 @@ pub async fn settings_request(
|
|||
continue;
|
||||
}
|
||||
|
||||
let c1 = Color::from_hex(&color_surface);
|
||||
let c2 = Color::from_hex(&value);
|
||||
let c1 = Color::from(color_surface);
|
||||
let c2 = Color::from(value);
|
||||
let contrast = c1.contrast(&c2);
|
||||
|
||||
if contrast < MINIMUM_CONTRAST_THRESHOLD {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue