mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 07:24:24 +01:00
fixed active color setting (add nextion2text)
This commit is contained in:
@@ -1076,12 +1076,12 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,",",9
|
spstr strCommand.txt,tTmp.txt,",",9
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
|
// set icon
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
substr pageIcons.tIcons.txt,bt0.txt,sys0,1
|
substr pageIcons.tIcons.txt,bt0.txt,sys0,1
|
||||||
// set text color on active state
|
// set text color on active state
|
||||||
spstr strCommand.txt,tTmp.txt,",",10
|
spstr strCommand.txt,tTmp.txt,",",10
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,bt0.pco2,0,0
|
||||||
substr pageIcons.tIcons.txt,bt0.pco2,sys0,1
|
|
||||||
// set state
|
// set state
|
||||||
spstr strCommand.txt,tTmp.txt,",",11
|
spstr strCommand.txt,tTmp.txt,",",11
|
||||||
covx tTmp.txt,bt0.val,0,0
|
covx tTmp.txt,bt0.val,0,0
|
||||||
@@ -1092,12 +1092,12 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,",",12
|
spstr strCommand.txt,tTmp.txt,",",12
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
|
// set icon
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
substr pageIcons.tIcons.txt,bt1.txt,sys0,1
|
substr pageIcons.tIcons.txt,bt1.txt,sys0,1
|
||||||
// set text color on active state
|
// set text color on active state
|
||||||
spstr strCommand.txt,tTmp.txt,",",13
|
spstr strCommand.txt,tTmp.txt,",",13
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,bt1.pco2,0,0
|
||||||
substr pageIcons.tIcons.txt,bt1.pco2,sys0,1
|
|
||||||
// set state
|
// set state
|
||||||
spstr strCommand.txt,tTmp.txt,",",14
|
spstr strCommand.txt,tTmp.txt,",",14
|
||||||
covx tTmp.txt,bt1.val,0,0
|
covx tTmp.txt,bt1.val,0,0
|
||||||
@@ -1108,12 +1108,12 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,",",15
|
spstr strCommand.txt,tTmp.txt,",",15
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
|
// set icon
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
substr pageIcons.tIcons.txt,bt2.txt,sys0,1
|
substr pageIcons.tIcons.txt,bt2.txt,sys0,1
|
||||||
// set text color on active state
|
// set text color on active state
|
||||||
spstr strCommand.txt,tTmp.txt,",",16
|
spstr strCommand.txt,tTmp.txt,",",16
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,bt2.pco2,0,0
|
||||||
substr pageIcons.tIcons.txt,bt2.pco2,sys0,1
|
|
||||||
// set state
|
// set state
|
||||||
spstr strCommand.txt,tTmp.txt,",",17
|
spstr strCommand.txt,tTmp.txt,",",17
|
||||||
covx tTmp.txt,bt2.val,0,0
|
covx tTmp.txt,bt2.val,0,0
|
||||||
@@ -1124,12 +1124,12 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,",",18
|
spstr strCommand.txt,tTmp.txt,",",18
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
|
// set icon
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
substr pageIcons.tIcons.txt,bt3.txt,sys0,1
|
substr pageIcons.tIcons.txt,bt3.txt,sys0,1
|
||||||
// set text color on active state
|
// set text color on active state
|
||||||
spstr strCommand.txt,tTmp.txt,",",19
|
spstr strCommand.txt,tTmp.txt,",",19
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,bt3.pco2,0,0
|
||||||
substr pageIcons.tIcons.txt,bt3.pco2,sys0,1
|
|
||||||
// set state
|
// set state
|
||||||
spstr strCommand.txt,tTmp.txt,",",20
|
spstr strCommand.txt,tTmp.txt,",",20
|
||||||
covx tTmp.txt,bt3.val,0,0
|
covx tTmp.txt,bt3.val,0,0
|
||||||
@@ -1140,12 +1140,12 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,",",21
|
spstr strCommand.txt,tTmp.txt,",",21
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
|
// set icon
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
substr pageIcons.tIcons.txt,bt4.txt,sys0,1
|
substr pageIcons.tIcons.txt,bt4.txt,sys0,1
|
||||||
// set text color on active state
|
// set text color on active state
|
||||||
spstr strCommand.txt,tTmp.txt,",",22
|
spstr strCommand.txt,tTmp.txt,",",22
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,bt4.pco2,0,0
|
||||||
substr pageIcons.tIcons.txt,bt4.pco2,sys0,1
|
|
||||||
// set state
|
// set state
|
||||||
spstr strCommand.txt,tTmp.txt,",",23
|
spstr strCommand.txt,tTmp.txt,",",23
|
||||||
covx tTmp.txt,bt4.val,0,0
|
covx tTmp.txt,bt4.val,0,0
|
||||||
@@ -1156,12 +1156,12 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,",",24
|
spstr strCommand.txt,tTmp.txt,",",24
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
|
// set icon
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
substr pageIcons.tIcons.txt,bt5.txt,sys0,1
|
substr pageIcons.tIcons.txt,bt5.txt,sys0,1
|
||||||
// set text color on active state
|
// set text color on active state
|
||||||
spstr strCommand.txt,tTmp.txt,",",25
|
spstr strCommand.txt,tTmp.txt,",",25
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,bt5.pco2,0,0
|
||||||
substr pageIcons.tIcons.txt,bt5.pco2,sys0,1
|
|
||||||
// set state
|
// set state
|
||||||
spstr strCommand.txt,tTmp.txt,",",26
|
spstr strCommand.txt,tTmp.txt,",",26
|
||||||
covx tTmp.txt,bt5.val,0,0
|
covx tTmp.txt,bt5.val,0,0
|
||||||
@@ -1172,12 +1172,12 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,",",27
|
spstr strCommand.txt,tTmp.txt,",",27
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
|
// set icon
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
substr pageIcons.tIcons.txt,bt6.txt,sys0,1
|
substr pageIcons.tIcons.txt,bt6.txt,sys0,1
|
||||||
// set text color on active state
|
// set text color on active state
|
||||||
spstr strCommand.txt,tTmp.txt,",",28
|
spstr strCommand.txt,tTmp.txt,",",28
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,bt6.pco2,0,0
|
||||||
substr pageIcons.tIcons.txt,bt6.pco2,sys0,1
|
|
||||||
// set state
|
// set state
|
||||||
spstr strCommand.txt,tTmp.txt,",",29
|
spstr strCommand.txt,tTmp.txt,",",29
|
||||||
covx tTmp.txt,bt6.val,0,0
|
covx tTmp.txt,bt6.val,0,0
|
||||||
@@ -1188,12 +1188,12 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,",",30
|
spstr strCommand.txt,tTmp.txt,",",30
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
|
// set icon
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
substr pageIcons.tIcons.txt,bt7.txt,sys0,1
|
substr pageIcons.tIcons.txt,bt7.txt,sys0,1
|
||||||
// set text color on active state
|
// set text color on active state
|
||||||
spstr strCommand.txt,tTmp.txt,",",31
|
spstr strCommand.txt,tTmp.txt,",",31
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,bt7.pco2,0,0
|
||||||
substr pageIcons.tIcons.txt,bt7.pco2,sys0,1
|
|
||||||
// set state
|
// set state
|
||||||
spstr strCommand.txt,tTmp.txt,",",32
|
spstr strCommand.txt,tTmp.txt,",",32
|
||||||
covx tTmp.txt,bt7.val,0,0
|
covx tTmp.txt,bt7.val,0,0
|
||||||
@@ -1204,12 +1204,12 @@ Timer tmSerial
|
|||||||
spstr strCommand.txt,tTmp.txt,",",33
|
spstr strCommand.txt,tTmp.txt,",",33
|
||||||
if(tTmp.txt!="")
|
if(tTmp.txt!="")
|
||||||
{
|
{
|
||||||
|
// set icon
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,sys0,0,0
|
||||||
substr pageIcons.tIcons.txt,bt8.txt,sys0,1
|
substr pageIcons.tIcons.txt,bt8.txt,sys0,1
|
||||||
// set text color on active state
|
// set text color on active state
|
||||||
spstr strCommand.txt,tTmp.txt,",",34
|
spstr strCommand.txt,tTmp.txt,",",34
|
||||||
covx tTmp.txt,sys0,0,0
|
covx tTmp.txt,bt8.pco2,0,0
|
||||||
substr pageIcons.tIcons.txt,bt8.pco2,sys0,1
|
|
||||||
// set state
|
// set state
|
||||||
spstr strCommand.txt,tTmp.txt,",",35
|
spstr strCommand.txt,tTmp.txt,",",35
|
||||||
covx tTmp.txt,bt8.val,0,0
|
covx tTmp.txt,bt8.val,0,0
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ popupShutter
|
|||||||
84 Unique line(s) of event code
|
84 Unique line(s) of event code
|
||||||
cardThermo
|
cardThermo
|
||||||
33 Component(s)
|
33 Component(s)
|
||||||
324 Line(s) of event code
|
315 Line(s) of event code
|
||||||
200 Unique line(s) of event code
|
200 Unique line(s) of event code
|
||||||
cardEntities
|
cardEntities
|
||||||
55 Component(s)
|
55 Component(s)
|
||||||
@@ -54,5 +54,5 @@ cardEntities
|
|||||||
Total
|
Total
|
||||||
12 Page(s)
|
12 Page(s)
|
||||||
264 Component(s)
|
264 Component(s)
|
||||||
2379 Line(s) of event code
|
2370 Line(s) of event code
|
||||||
658 Unique line(s) of event code
|
658 Unique line(s) of event code
|
||||||
|
|||||||
Reference in New Issue
Block a user