From c98ee8db3ed4eab776f6f38f9558b53a9e4779be Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Tue, 17 Dec 2024 12:48:24 +0200 Subject: [PATCH] UI: Fixed color for hp scada filter --- .../json/system/scada_symbols/filter-hp.svg | 17 +++++++++++------ .../assets/locale/locale.constant-en_US.json | 1 + 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/application/src/main/data/json/system/scada_symbols/filter-hp.svg b/application/src/main/data/json/system/scada_symbols/filter-hp.svg index 6225d70b0e..58ff3951e5 100644 --- a/application/src/main/data/json/system/scada_symbols/filter-hp.svg +++ b/application/src/main/data/json/system/scada_symbols/filter-hp.svg @@ -1,12 +1,17 @@ { "title": "HP Filter", - "description": "Filter", + "description": "Filter with various states.", "searchTags": [ "filter" ], "widgetSizeX": 1, "widgetSizeY": 2, "tags": [ + { + "tag": "background", + "stateRenderFunction": "element.attr({fill: ctx.properties.filterColor});", + "actions": null + }, { "tag": "clickArea", "stateRenderFunction": null, @@ -219,13 +224,13 @@ ], "properties": [ { - "id": "runningColor", - "name": "{i18n:scada.symbol.colors}", + "id": "filterColor", + "name": "{i18n:scada.symbol.filter-color}", "type": "color", "default": "#FFFFFF", "required": null, - "subLabel": "{i18n:scada.symbol.running}", - "divider": true, + "subLabel": "", + "divider": false, "fieldSuffix": null, "disableOnProperty": null, "rowClass": "", @@ -268,7 +273,7 @@ } ] } - + diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json index e7157222de..1353bc25b6 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -3305,6 +3305,7 @@ "show-low-critical-scale": "Show Low Critical state", "low-critical-scale": "Low Critical state", "low-critical-state-hint": "Double value indicates a low critical range up to the min value scale.", + "filter-color": "Filter color", "colors": "Colors", "alarm-colors": "Alarm colors" }