From 81bd426274f15e3f907f81f20e1c73dd6861eec4 Mon Sep 17 00:00:00 2001 From: Julien <182520+JulienMaille@users.noreply.github.com> Date: Mon, 8 Feb 2021 21:25:28 +0100 Subject: [PATCH] Revert "Add Sidebar Color Updates" --- DribbblishDynamic/dribbblish-dynamic.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/DribbblishDynamic/dribbblish-dynamic.js b/DribbblishDynamic/dribbblish-dynamic.js index fa2d8ac..01b3039 100644 --- a/DribbblishDynamic/dribbblish-dynamic.js +++ b/DribbblishDynamic/dribbblish-dynamic.js @@ -254,14 +254,6 @@ function updateColors(root) { //root.style.setProperty('--modspotify_rgb_scrollbar_fg_and_selected_row_bg', darkerColRGB) root.style.setProperty('--modspotify_rgb_selected_button', darkerColRGB) //root.style.setProperty('--modspotify_rgb_miscellaneous_hover_bg', colRGB) - // Also update the color of the icons for bright and white backgrounds to remain readable. - var colRGB = colRGB.split(",") - var brightness = Math.round(((parseInt(colRGB[0]) * 299) + - (parseInt(colRGB[1]) * 587) + - (parseInt(colRGB[2]) * 114)) / 1000); - var textColour = (brightness > 125) ? '#000000' : '#ffffff'; - root.style.setProperty('--modspotify_preserve_1', textColour); - } function updateColorsAllIframes() {