You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When modifying the colors of the tabs in the web app JSON, if the color has any RGB component that matches the color of the standard gray icon, typically (211, 211, 211), it will not display the icons with the custom color, but will leave them the standard color.
Looking at the code, this appears to be faulty logic in the following line in MainView.buildLayer. There is also an incorrect index in the last iconColor[1].
When modifying the colors of the tabs in the web app JSON, if the color has any RGB component that matches the color of the standard gray icon, typically (211, 211, 211), it will not display the icons with the custom color, but will leave them the standard color.
Looking at the code, this appears to be faulty logic in the following line in MainView.buildLayer. There is also an incorrect index in the last iconColor[1].
if(iconColor[0] !=hexToRgb(newIconColor).r && iconColor[1] != hexToRgb(newIconColor).g && iconColor[1] != hexToRgb(newIconColor).b)
The code should read:
if (!(iconColor[0] ==hexToRgb(newIconColor).r && iconColor[1] == hexToRgb(newIconColor).g && iconColor[2] == hexToRgb(newIconColor).b))
I tested this change and it works.
The text was updated successfully, but these errors were encountered: