We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ea5c1 commit 4407f3bCopy full SHA for 4407f3b
1 file changed
docs/ui/src/js/params.js
@@ -114,6 +114,19 @@ function paramSetup() {
114
contrastSliderVal.innerHTML = `${round(contrast * 100)}%`;
115
_theme.contrast = contrast;
116
117
+ // handle saturation parameter
118
+ let saturation;
119
+ if (!config.saturation && config.saturation !== 0) {
120
+ saturation = 100;
121
+ } else {
122
+ saturation = config.saturation;
123
+ }
124
+ let saturationSlider = document.getElementById('themeSaturationSlider');
125
+ let saturationSliderVal = document.getElementById('themeSaturationValue');
126
+ saturationSlider.value = saturation;
127
+ saturationSliderVal.innerHTML = `${round(saturation)}%`;
128
+ _theme.saturation = saturation;
129
+
130
// generate the options for the base scale,
131
// then select the option defined in parameters
132
baseScaleOptions();
0 commit comments