diff --git a/HMI/code_gen/pages/shared.py b/HMI/code_gen/pages/shared.py index 78354d46..7ea81b89 100644 --- a/HMI/code_gen/pages/shared.py +++ b/HMI/code_gen/pages/shared.py @@ -123,6 +123,18 @@ sharedfoot = """ spstr strCommand.txt,tTmp.txt,"~",2 covx tTmp.txt,dimValueNormal,0,0 dim=dimValueNormal + // get background color + spstr strCommand.txt,tTmp.txt,"~",3 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultBcoColor,0,0 + } + // get font color + spstr strCommand.txt,tTmp.txt,"~",4 + if(tTmp.txt!="") + { + covx tTmp.txt,defaultFontColor,0,0 + } } if(tInstruction.txt=="timeout") { diff --git a/HMI/nspanel.HMI b/HMI/nspanel.HMI index ded44f3b..495a2123 100644 Binary files a/HMI/nspanel.HMI and b/HMI/nspanel.HMI differ