From 16f62b8c9725538d0382b2c5e8b6c2473f53dc21 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kriszti=C3=A1n=20L=C3=B6ki?= <krisztian.loki@ess.eu>
Date: Wed, 20 Jan 2021 15:36:32 +0100
Subject: [PATCH] Color the action buttons too

---
 .../embedded_displays/diagnostics/PLC_cabinet.bob | 15 +++++++++++++++
 .../diagnostics/RIO4_cabinet.bob                  | 15 +++++++++++++++
 .../diagnostics/RIO5_cabinet.bob                  | 15 +++++++++++++++
 .../embedded_displays/diagnostics/cabinet.bob     | 15 +++++++++++++++
 4 files changed, 60 insertions(+)

diff --git a/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/PLC_cabinet.bob b/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/PLC_cabinet.bob
index 896ded09..24c16d3c 100644
--- a/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/PLC_cabinet.bob
+++ b/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/PLC_cabinet.bob
@@ -62,6 +62,21 @@
         <font name="Header 3" family="Source Sans Pro" style="BOLD_ITALIC" size="18.0">
         </font>
       </font>
+      <background_color>
+        <color name="ERROR" red="252" green="13" blue="27">
+        </color>
+      </background_color>
+      <rules>
+        <rule name="Background" prop_id="background_color" out_exp="false">
+          <exp bool_exp="pvInt0">
+            <value>
+              <color name="Button_Background" red="236" green="236" blue="236">
+              </color>
+            </value>
+          </exp>
+          <pv_name>$(P):Cabinet_Stat</pv_name>
+        </rule>
+      </rules>
       <tooltip>$(actions)</tooltip>
     </widget>
     <widget type="label" version="2.0.0">
diff --git a/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/RIO4_cabinet.bob b/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/RIO4_cabinet.bob
index a129176c..f684daae 100644
--- a/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/RIO4_cabinet.bob
+++ b/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/RIO4_cabinet.bob
@@ -66,6 +66,21 @@
         <font name="Header 3" family="Source Sans Pro" style="BOLD_ITALIC" size="18.0">
         </font>
       </font>
+      <background_color>
+        <color name="ERROR" red="252" green="13" blue="27">
+        </color>
+      </background_color>
+      <rules>
+        <rule name="Background" prop_id="background_color" out_exp="false">
+          <exp bool_exp="pvInt0">
+            <value>
+              <color name="Button_Background" red="236" green="236" blue="236">
+              </color>
+            </value>
+          </exp>
+          <pv_name>$(P):Cabinet_Stat</pv_name>
+        </rule>
+      </rules>
       <tooltip>$(actions)</tooltip>
     </widget>
     <widget type="label" version="2.0.0">
diff --git a/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/RIO5_cabinet.bob b/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/RIO5_cabinet.bob
index a8128d6f..4cbe9b32 100644
--- a/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/RIO5_cabinet.bob
+++ b/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/RIO5_cabinet.bob
@@ -80,6 +80,21 @@
         <font name="Header 3" family="Source Sans Pro" style="BOLD_ITALIC" size="18.0">
         </font>
       </font>
+      <background_color>
+        <color name="ERROR" red="252" green="13" blue="27">
+        </color>
+      </background_color>
+      <rules>
+        <rule name="Background" prop_id="background_color" out_exp="false">
+          <exp bool_exp="pvInt0">
+            <value>
+              <color name="Button_Background" red="236" green="236" blue="236">
+              </color>
+            </value>
+          </exp>
+          <pv_name>$(P):Cabinet_Stat</pv_name>
+        </rule>
+      </rules>
       <tooltip>$(actions)</tooltip>
     </widget>
     <widget type="group" version="2.0.0">
diff --git a/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/cabinet.bob b/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/cabinet.bob
index df54d5db..f14407ab 100644
--- a/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/cabinet.bob
+++ b/NON-APPROVED/pss1-pss/embedded_displays/diagnostics/cabinet.bob
@@ -62,6 +62,21 @@
         <font name="Header 3" family="Source Sans Pro" style="BOLD_ITALIC" size="18.0">
         </font>
       </font>
+      <background_color>
+        <color name="ERROR" red="252" green="13" blue="27">
+        </color>
+      </background_color>
+      <rules>
+        <rule name="Background" prop_id="background_color" out_exp="false">
+          <exp bool_exp="pvInt0">
+            <value>
+              <color name="Button_Background" red="236" green="236" blue="236">
+              </color>
+            </value>
+          </exp>
+          <pv_name>$(P):Cabinet_Stat</pv_name>
+        </rule>
+      </rules>
       <tooltip>$(actions)</tooltip>
     </widget>
     <widget type="label" version="2.0.0">
-- 
GitLab