Fix: optimize color brightness
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
3117d54cc6
commit
5962194741
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue