Ticket #48704: 48704.patch
File 48704.patch, 986 bytes (added by , 5 years ago) |
---|
-
color-calculations.js
38 38 minSaturation = 65, 39 39 maxSaturation = 100, 40 40 minLightness = 30, 41 maxLigh ness = 80,41 maxLightness = 80, 42 42 stepSaturation = 2, 43 43 stepLightness = 2, 44 44 pushColor = function() { … … 86 86 87 87 // We're using `for` loops here because they perform marginally better than other loops. 88 88 for ( s = minSaturation; s <= maxSaturation; s += stepSaturation ) { 89 for ( l = minLightness; l <= maxLigh ness; l += stepLightness ) {89 for ( l = minLightness; l <= maxLightness; l += stepLightness ) { 90 90 pushColor( s, l ); 91 91 } 92 92 } … … 96 96 return 7 <= color.contrastBackground; 97 97 } ); 98 98 99 // If we have AAA-compliant colors, al pways prefer them.99 // If we have AAA-compliant colors, always prefer them. 100 100 if ( aaa.length ) { 101 101 this.accentColorsArray = aaa; 102 102 }