mirror of
https://git.wetfence.xyz/RandyTheSilly/Civic-Segments.git
synced 2026-09-05 18:17:13 -04:00
Make low fuel color configurable
This commit is contained in:
@@ -123,6 +123,14 @@ module.exports = [
|
||||
"defaultValue": "ffffff",
|
||||
"label": "Foreground color",
|
||||
"sunlight": false,
|
||||
},
|
||||
{
|
||||
"id": "custom_color_low_fuel",
|
||||
"type": "color",
|
||||
"messageKey": "CLAY_LOW_FUEL_COLOR",
|
||||
"defaultValue": "ffaa00",
|
||||
"label": "Low fuel indicator color",
|
||||
"sunlight": false,
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -13,6 +13,7 @@ module.exports = function (minified) {
|
||||
clayConfig.getItemById('custom_color_mg_bars').set('555555');
|
||||
clayConfig.getItemById('custom_color_mg_time').set('555555');
|
||||
clayConfig.getItemById('custom_color_fg').set('ff0000');
|
||||
clayConfig.getItemById('custom_color_low_fuel').set('ffaa00');
|
||||
break
|
||||
default:
|
||||
clayConfig.getItemById('custom_color_led').set('ffffff');
|
||||
@@ -32,6 +33,7 @@ module.exports = function (minified) {
|
||||
clayConfig.getItemById('custom_color_mg_bars').show();
|
||||
clayConfig.getItemById('custom_color_mg_time').show();
|
||||
clayConfig.getItemById('custom_color_fg').show();
|
||||
clayConfig.getItemById('custom_color_low_fuel').show();
|
||||
} else {
|
||||
setColorsToPreset();
|
||||
clayConfig.getItemById('color_preset_selector').show();
|
||||
@@ -40,6 +42,7 @@ module.exports = function (minified) {
|
||||
clayConfig.getItemById('custom_color_mg_bars').hide();
|
||||
clayConfig.getItemById('custom_color_mg_time').hide();
|
||||
clayConfig.getItemById('custom_color_fg').hide();
|
||||
clayConfig.getItemById('custom_color_low_fuel').hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user