Make bar fill color configurable

This commit is contained in:
2026-06-28 12:21:59 -04:00
parent 601688d89d
commit ba617d7927
5 changed files with 35 additions and 16 deletions
+17 -9
View File
@@ -119,7 +119,7 @@ module.exports = [
"messageKey": "CLAY_COLOR_BG",
"defaultValue": "0000ff",
"label": "Background color",
"sunlight": false,
"sunlight": true,
},
{
"id": "custom_color_mg_bars",
@@ -127,7 +127,15 @@ module.exports = [
"messageKey": "CLAY_COLOR_BAR_MG",
"defaultValue": "aaaaaa",
"label": "Bar midground color",
"sunlight": false,
"sunlight": true,
},
{
"id": "custom_color_fill_bars",
"type": "color",
"messageKey": "CLAY_COLOR_BAR_FILL",
"defaultValue": "ffffff",
"label": "Bar fill color",
"sunlight": true,
},
{
"id": "custom_color_cool_bars",
@@ -135,7 +143,7 @@ module.exports = [
"messageKey": "CLAY_COLOR_BAR_COOL",
"defaultValue": "0000aa",
"label": "Bar cold/full color",
"sunlight": false,
"sunlight": true,
},
{
"id": "custom_color_hot_bars",
@@ -143,7 +151,7 @@ module.exports = [
"messageKey": "CLAY_COLOR_BAR_HOT",
"defaultValue": "ff0000",
"label": "Bar hot/empty color",
"sunlight": false,
"sunlight": true,
},
{
"id": "custom_color_mg_time",
@@ -151,7 +159,7 @@ module.exports = [
"messageKey": "CLAY_COLOR_TIME_MG",
"defaultValue": "555555",
"label": "Time segment midground color",
"sunlight": false,
"sunlight": true,
},
{
"id": "custom_color_letters",
@@ -159,7 +167,7 @@ module.exports = [
"messageKey": "CLAY_COLOR_LETTERS",
"defaultValue": "ffffff",
"label": "Letters (C/H/E/F) color",
"sunlight": false,
"sunlight": true,
},
{
"id": "custom_color_hours",
@@ -167,7 +175,7 @@ module.exports = [
"messageKey": "CLAY_COLOR_HOURS",
"defaultValue": "ffffff",
"label": "Hours color",
"sunlight": false,
"sunlight": true,
},
{
"id": "custom_color_minutes",
@@ -175,7 +183,7 @@ module.exports = [
"messageKey": "CLAY_COLOR_MINUTES",
"defaultValue": "ffffff",
"label": "Minutes color",
"sunlight": false,
"sunlight": true,
},
{
"id": "custom_color_warning",
@@ -183,7 +191,7 @@ module.exports = [
"messageKey": "CLAY_COLOR_WARNING",
"defaultValue": "ffaa00",
"label": "Warning indicator color",
"sunlight": false,
"sunlight": true,
}
]
},
+5 -1
View File
@@ -21,10 +21,11 @@ module.exports = function (minified) {
clayConfig.getItemById('custom_color_bg').set('000000');
clayConfig.getItemById('custom_color_mg_bars').set('555555');
clayConfig.getItemById('custom_color_fill_bars').set('ffffff');
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_letters').set('ff0000');
clayConfig.getItemById('custom_color_letters').set('ffffff');
clayConfig.getItemById('custom_color_hours').set('ff0000');
clayConfig.getItemById('custom_color_minutes').set('ff0000');
clayConfig.getItemById('custom_color_warning').set('ffaa00');
@@ -34,6 +35,7 @@ module.exports = function (minified) {
clayConfig.getItemById('custom_color_bg').set('0000ff');
clayConfig.getItemById('custom_color_mg_bars').set('555555');
clayConfig.getItemById('custom_color_fill_bars').set('ffffff');
clayConfig.getItemById('custom_color_cool_bars').set('0000aa');
clayConfig.getItemById('custom_color_hot_bars').set('ff0000');
clayConfig.getItemById('custom_color_mg_time').set('555555');
@@ -51,6 +53,7 @@ module.exports = function (minified) {
clayConfig.getItemById('custom_color_led').show();
clayConfig.getItemById('custom_color_bg').show();
clayConfig.getItemById('custom_color_mg_bars').show();
clayConfig.getItemById('custom_color_fill_bars').show();
clayConfig.getItemById('custom_color_cool_bars').show();
clayConfig.getItemById('custom_color_hot_bars').show();
clayConfig.getItemById('custom_color_mg_time').show();
@@ -65,6 +68,7 @@ module.exports = function (minified) {
clayConfig.getItemById('custom_color_led').hide();
clayConfig.getItemById('custom_color_bg').hide();
clayConfig.getItemById('custom_color_mg_bars').hide();
clayConfig.getItemById('custom_color_fill_bars').hide();
clayConfig.getItemById('custom_color_cool_bars').hide();
clayConfig.getItemById('custom_color_hot_bars').hide();
clayConfig.getItemById('custom_color_mg_time').hide();