Skip to content

Commit

Permalink
Update WSHgraphicbrowser_trackinfos.js
Browse files Browse the repository at this point in the history
Redid change to fix transparency. Will now not use album colors in either Pure White or Pure Dark color modes, and will correctly display transparency in Album Art modes.
  • Loading branch information
JadeTank authored Feb 7, 2024
1 parent 1d47504 commit 69bc889
Showing 1 changed file with 34 additions and 14 deletions.
48 changes: 34 additions & 14 deletions themes/eole/js/WSHgraphicbrowser_trackinfos.js
Original file line number Diff line number Diff line change
Expand Up @@ -6928,13 +6928,23 @@ function get_colors() {
}
colors.showlist_arrow = colors.showlist_bg;
if(properties.darklayout){
if(globalProperties.colorsMainPanel==0 || globalProperties.colorsMainPanel==1){
colors.showlist_bg = GetGrey(0, 25);
colors.showlist_arrow = GetGrey(25,255);
colors.showlist_border_color = GetGrey(255,30);
} else if(globalProperties.colorsMainPanel==2){
colors.showlist_bg = GetGrey(0, 25);
colors.showlist_border_color = GetGrey(255,50);
switch (globalProperties.colorsMainPanel) {
case 1: //Dark and Album Art
colors.showlist_bg = GetGrey(25, 70);
colors.showlist_arrow = GetGrey(25,255);
colors.showlist_border_color = GetGrey(255,30);
break;

case 2: //Dark and Coal and Album Art
colors.showlist_bg = GetGrey(25, 70);
colors.showlist_border_color = GetGrey(255,50);
break;

default: //Pure dark (Main color for tracklist is default grey)
colors.showlist_bg = GetGrey(25);
colors.showlist_arrow = GetGrey(25,255);
colors.showlist_border_color = GetGrey(255,30);
break;
}
colors.grad_bottom_1 = GetGrey(0,70);
colors.grad_bottom_2 = GetGrey(0,0);
Expand Down Expand Up @@ -7001,13 +7011,23 @@ function get_colors() {

colors.overlay_on_hover = GetGrey(0,130);
} else {
if(globalProperties.colorsMainPanel==0 || globalProperties.colorsMainPanel==1){
colors.showlist_bg = GetGrey(255,70);
colors.showlist_arrow = GetGrey(255,255);
colors.showlist_border_color = GetGrey(210);
} else if(globalProperties.colorsMainPanel==2){
colors.showlist_bg = GetGrey(0,10);
colors.showlist_border_color = GetGrey(210);
switch (globalProperties.colorsMainPanel) {
case 1: //White and Album Art
colors.showlist_bg = GetGrey(255,70);
colors.showlist_arrow = GetGrey(255,255);
colors.showlist_border_color = GetGrey(210);
break;

case 2: //White and Grey and Album Art
colors.showlist_bg = GetGrey(0,10);
colors.showlist_border_color = GetGrey(210);
break;

default: //Pure white (Main color for tracklist is default white)
colors.showlist_bg = GetGrey(255);
colors.showlist_arrow = GetGrey(255,255);
colors.showlist_border_color = GetGrey(210);
break;
}
colors.grad_bottom_1 = GetGrey(230,90);
colors.grad_bottom_2 = GetGrey(230,0);
Expand Down

0 comments on commit 69bc889

Please sign in to comment.