Fix: optimize color brightness
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Dorian Zedler 2023-03-12 00:25:14 +01:00
parent 3117d54cc6
commit 5962194741
Signed by: dozedler
GPG key ID: 989DE36109AFA354

View file

@ -36,9 +36,9 @@ fn generate_color(
let r = r as u16;
let g = g as u16;
let b = b as u16;
if dark_mode && (r + g + b) < 100 {
if dark_mode && (r + g + b) < 300 {
return false;
} else if !dark_mode && (r + g + b) > 600 {
} else if !dark_mode && (r + g + b) > 500 {
return false;
}