revert brightness threshold to 170

This commit is contained in:
geoffrey45
2022-07-02 09:05:38 +03:00
committed by Mungai Geoffrey
parent 77a5d2b7c2
commit 7d59993203
+1 -1
View File
@@ -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) {