mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
revert brightness threshold to 170
This commit is contained in:
committed by
Mungai Geoffrey
parent
77a5d2b7c2
commit
7d59993203
@@ -78,7 +78,7 @@ function isLight(rgb: string = props.album.colors[0]) {
|
||||
const [r, g, b] = rgb.match(/\d+/g)!.map(Number);
|
||||
const brightness = (r * 299 + g * 587 + b * 114) / 1000;
|
||||
|
||||
return brightness > 150;
|
||||
return brightness > 170;
|
||||
}
|
||||
|
||||
function getButtonColor(colors: string[] = props.album.colors) {
|
||||
|
||||
Reference in New Issue
Block a user