Skip to content

Commit

Permalink
Whoopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
HM100 committed Oct 17, 2021
1 parent 4208982 commit a65ffcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/Java_Theming.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ var colors4= ['#8c8c8c', '#999999', '#a5a5a5', '#b2b2b2', '#bfbfbf', '#cccccc',
contrastM = (window.matchMedia('(prefers-contrast: more)').matches) ? 3.37 : 2.25

for (let i = 0; i < colors.length; i++) {
if ( ((chroma.contrast(GetPage(), colors[i])) >= 4.5) && ((chroma.contrast(GetPage(), colors2[i])) >= 4.12) && ((chroma.contrast(GetPage(), colors3[i])) >= 3.75) && ((chroma.contrast(GetPage(), colors4[i])) >= 3.37) ) {
if ( ((chroma.contrast(GetPage(), colors[i])) >= contrastA) && ((chroma.contrast(GetPage(), colors2[i])) >= contrastW) && ((chroma.contrast(GetPage(), colors3[i])) >= contrastS) && ((chroma.contrast(GetPage(), colors4[i])) >= contrastM) ) {
return Color4(colors[i]);
}
}
Expand Down

0 comments on commit a65ffcf

Please sign in to comment.