Settings re-org (prep for separate hour and minute colors)

This commit is contained in:
2026-06-27 19:59:14 -04:00
parent 7c1aa5b484
commit 206b066a58
5 changed files with 100 additions and 62 deletions
+28 -12
View File
@@ -30,14 +30,14 @@ module.exports = [
{
"id": "bt_indicator_toggle",
"type": "toggle",
"messageKey": "CLAY_BT_INDICATOR",
"messageKey": "CLAY_TRACK_BT_STATUS",
"defaultValue": false,
"label": "BT disconnect indicator",
"description": "Change the color of the digits to the configured warning color when the connection to the phone is lost."
},
{
"type": "slider",
"messageKey": "CLAY_DATE_TIMEOUT",
"messageKey": "CLAY_DATE_TIMEOUT_SECS",
defaultValue: 3,
min: 0,
max: 15,
@@ -108,7 +108,7 @@ module.exports = [
{
"id": "custom_color_led",
"type": "color",
"messageKey": "CLAY_LED_COLOR",
"messageKey": "CLAY_COLOR_LED",
"defaultValue": "ffffff",
"label": "Backlight color",
"sunlight": false,
@@ -116,7 +116,7 @@ module.exports = [
{
"id": "custom_color_bg",
"type": "color",
"messageKey": "CLAY_BG_COLOR",
"messageKey": "CLAY_COLOR_BG",
"defaultValue": "0000ff",
"label": "Background color",
"sunlight": false,
@@ -124,7 +124,7 @@ module.exports = [
{
"id": "custom_color_mg_bars",
"type": "color",
"messageKey": "CLAY_BAR_MG_COLOR",
"messageKey": "CLAY_COLOR_BAR_MG",
"defaultValue": "aaaaaa",
"label": "Bar midground color",
"sunlight": false,
@@ -132,7 +132,7 @@ module.exports = [
{
"id": "custom_color_cool_bars",
"type": "color",
"messageKey": "CLAY_BAR_COOL_COLOR",
"messageKey": "CLAY_COLOR_BAR_COOL",
"defaultValue": "0000aa",
"label": "Bar cold/full color",
"sunlight": false,
@@ -140,7 +140,7 @@ module.exports = [
{
"id": "custom_color_hot_bars",
"type": "color",
"messageKey": "CLAY_BAR_HOT_COLOR",
"messageKey": "CLAY_COLOR_BAR_HOT",
"defaultValue": "ff0000",
"label": "Bar hot/empty color",
"sunlight": false,
@@ -148,23 +148,39 @@ module.exports = [
{
"id": "custom_color_mg_time",
"type": "color",
"messageKey": "CLAY_TIME_MG_COLOR",
"messageKey": "CLAY_COLOR_TIME_MG",
"defaultValue": "555555",
"label": "Time segment midground color",
"sunlight": false,
},
{
"id": "custom_color_fg",
"id": "custom_color_letters",
"type": "color",
"messageKey": "CLAY_FG_COLOR",
"messageKey": "CLAY_COLOR_LETTERS",
"defaultValue": "ffffff",
"label": "Foreground color",
"label": "Letters (C/H/E/F) color",
"sunlight": false,
},
{
"id": "custom_color_hours",
"type": "color",
"messageKey": "CLAY_COLOR_HOURS",
"defaultValue": "ffffff",
"label": "Hours color",
"sunlight": false,
},
{
"id": "custom_color_minutes",
"type": "color",
"messageKey": "CLAY_COLOR_MINUTES",
"defaultValue": "ffffff",
"label": "Minutes color",
"sunlight": false,
},
{
"id": "custom_color_warning",
"type": "color",
"messageKey": "CLAY_WARNING_COLOR",
"messageKey": "CLAY_COLOR_WARNING",
"defaultValue": "ffaa00",
"label": "Warning indicator color",
"sunlight": false,
+12 -4
View File
@@ -24,7 +24,9 @@ module.exports = function (minified) {
clayConfig.getItemById('custom_color_cool_bars').set('0000aa');
clayConfig.getItemById('custom_color_hot_bars').set('ff0000');
clayConfig.getItemById('custom_color_mg_time').set('555555');
clayConfig.getItemById('custom_color_fg').set('ff0000');
clayConfig.getItemById('custom_color_letters').set('ff0000');
clayConfig.getItemById('custom_color_hours').set('ff0000');
clayConfig.getItemById('custom_color_minutes').set('ff0000');
clayConfig.getItemById('custom_color_warning').set('ffaa00');
break
default:
@@ -35,7 +37,9 @@ module.exports = function (minified) {
clayConfig.getItemById('custom_color_cool_bars').set('0000aa');
clayConfig.getItemById('custom_color_hot_bars').set('ff0000');
clayConfig.getItemById('custom_color_mg_time').set('555555');
clayConfig.getItemById('custom_color_fg').set('ffffff');
clayConfig.getItemById('custom_color_letters').set('ffffff');
clayConfig.getItemById('custom_color_hours').set('ffffff');
clayConfig.getItemById('custom_color_minutes').set('ffffff');
clayConfig.getItemById('custom_color_warning').set('ffaa00');
}
}
@@ -50,7 +54,9 @@ module.exports = function (minified) {
clayConfig.getItemById('custom_color_cool_bars').show();
clayConfig.getItemById('custom_color_hot_bars').show();
clayConfig.getItemById('custom_color_mg_time').show();
clayConfig.getItemById('custom_color_fg').show();
clayConfig.getItemById('custom_color_letters').show();
clayConfig.getItemById('custom_color_hours').show();
clayConfig.getItemById('custom_color_minutes').show();
clayConfig.getItemById('custom_color_warning').show();
} else {
setColorsToPreset();
@@ -62,7 +68,9 @@ module.exports = function (minified) {
clayConfig.getItemById('custom_color_cool_bars').hide();
clayConfig.getItemById('custom_color_hot_bars').hide();
clayConfig.getItemById('custom_color_mg_time').hide();
clayConfig.getItemById('custom_color_fg').hide();
clayConfig.getItemById('custom_color_letters').hide();
clayConfig.getItemById('custom_color_hours').hide();
clayConfig.getItemById('custom_color_minutes').hide();
clayConfig.getItemById('custom_color_warning').hide();
}
}