Made temprature cells more deeper colour ranges
This commit is contained in:
fraxle
2026-05-23 01:14:43 +01:00
parent ba98eaef2a
commit e68d1d7cd2
3 changed files with 62 additions and 37 deletions
+13
View File
@@ -134,6 +134,10 @@ export function useAppState() {
?? FILTER_PROFILES.outdoors.cols;
return { ...variantCols };
}
// For 'custom' profile, always use the configured custom cols (all 25 columns)
if (saved === 'custom') {
return { ...FILTER_PROFILES.custom?.cols ?? FILTER_PROFILES.basic.cols };
}
return { ...(FILTER_PROFILES[saved]?.cols ?? FILTER_PROFILES.basic.cols) };
} catch (e) { return { ...FILTER_PROFILES.basic.cols }; }
});
@@ -149,6 +153,15 @@ export function useAppState() {
const hasIndoor = profile.cols['indoorT'] || profile.cols['managedT'];
setIndoorMode(hasIndoor ? 'on' : 'off');
setIndoorManaged(false);
} else {
// Custom profile ALWAYS initializes from config - with all 25 columns active
const customCols = FILTER_PROFILES.custom?.cols;
if (customCols) {
setVisibleCols({ ...customCols });
const hasIndoor = customCols['indoorT'] || customCols['managedT'];
setIndoorMode(hasIndoor ? 'on' : 'off');
setIndoorManaged(false);
}
}
};