Logic Machine Forum
changing sidebar color - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: changing sidebar color (/showthread.php?tid=6061)



changing sidebar color - khalil - 27.07.2025

Hello Dears,
is it possible to change the side bar content color, 
for example if there is an alarm in the intrusion & Gas page, its text and highlight color becomes read!
   


RE: changing sidebar color - admin - 28.07.2025

Add this to Custom JS. Change group address (1/1/1) and plan ID (#menu-plan-2) as needed:
Code:
$(function(){
  if (window.grp) {
    grp.listen('1/1/1', function(obj) {
      $('#menu-plan-2 > span').css({
        color: obj.value ? '#fff' : '',
        backgroundColor: obj.value ? '#b94a48' : '',
      });
    });
  }
});



RE: changing sidebar color - khalil - 29.07.2025

Many Thanks admin