3.0.2.2
Smaller welcome popup for mobile. Deeper simple graph colours
This commit is contained in:
+3
-2
@@ -405,6 +405,7 @@ export function UTCIForecast() {
|
||||
return raw.map(c => Math.min(255, Math.round(c + (255 - c) * whiteMix)));
|
||||
};
|
||||
const airTempRgbStrong = (t) => airTempRgb(t, 0.42);
|
||||
const airTempRgbVeryStrong = (t) => airTempRgb(t, 0.25);
|
||||
|
||||
// ─── 3b. PANEL COMPUTATIONS ──────────────────────────────────────────
|
||||
// Derived from currentRow and the active day - no side effects.
|
||||
@@ -1138,14 +1139,14 @@ export function UTCIForecast() {
|
||||
<defs>
|
||||
<linearGradient id="fsc-grad" x1="0" y1="0" x2="1" y2="0" gradientUnits="objectBoundingBox">
|
||||
${fscSrc.map((r, j) => {
|
||||
const rgb = airTempRgb(getT(r)) || [200, 200, 200];
|
||||
const rgb = airTempRgbStrong(getT(r)) || [200, 200, 200];
|
||||
const fc = `rgb(${rgb[0]},${rgb[1]},${rgb[2]})`;
|
||||
return html`<stop key=${j} offset=${`${((j + 0.5) / fscSrc.length * 100).toFixed(1)}%`} stop-color=${fc} />`;
|
||||
})}
|
||||
</linearGradient>
|
||||
<linearGradient id="fsc-grad-strong" x1="0" y1="0" x2="1" y2="0" gradientUnits="objectBoundingBox">
|
||||
${fscSrc.map((r, j) => {
|
||||
const rgb = airTempRgbStrong(getT(r)) || [200, 200, 200];
|
||||
const rgb = airTempRgbVeryStrong(getT(r)) || [200, 200, 200];
|
||||
const fc = `rgb(${rgb[0]},${rgb[1]},${rgb[2]})`;
|
||||
return html`<stop key=${`s${j}`} offset=${`${((j + 0.5) / fscSrc.length * 100).toFixed(1)}%`} stop-color=${fc} />`;
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user