mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-27 08:02:14 +01:00
fix some color stuff (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
8db8a108e4
commit
08676c5947
@@ -38,7 +38,7 @@ Page cardAlarm
|
||||
vis bPrev,0
|
||||
vis bNext,0
|
||||
cardAlarm.bco=defaultBcoColor
|
||||
for(sys0=0;sys0<40;sys0++)
|
||||
for(sys0=0;sys0<44;sys0++)
|
||||
{
|
||||
if(b[sys0].type==98||b[sys0].type==116)
|
||||
{
|
||||
@@ -670,13 +670,15 @@ Timer tmSerial
|
||||
{
|
||||
//entn
|
||||
spstr strCommand.txt,tHeading.txt,"~",1
|
||||
if(tHeading.txt=="unknown")
|
||||
{
|
||||
tHeading.txt=""
|
||||
}
|
||||
if(tHeading.txt!="")
|
||||
{
|
||||
vis tCode,0
|
||||
vis tHeading,1
|
||||
}else
|
||||
{
|
||||
vis tCode,1
|
||||
vis tHeading,0
|
||||
}
|
||||
// navigation icon left
|
||||
@@ -769,7 +771,13 @@ Timer tmSerial
|
||||
vis b9,1
|
||||
vis b10,1
|
||||
vis b11,1
|
||||
vis tCode,1
|
||||
if(tHeading.txt!="")
|
||||
{
|
||||
vis tCode,0
|
||||
}else
|
||||
{
|
||||
vis tCode,1
|
||||
}
|
||||
}else
|
||||
{
|
||||
vis b0,0
|
||||
|
||||
@@ -66,7 +66,7 @@ Page cardEntities
|
||||
vis bPrev,0
|
||||
vis bNext,0
|
||||
cardEntities.bco=defaultBcoColor
|
||||
for(sys0=0;sys0<65;sys0++)
|
||||
for(sys0=0;sys0<67;sys0++)
|
||||
{
|
||||
if(b[sys0].type==98||b[sys0].type==116||b[sys0].type==54)
|
||||
{
|
||||
|
||||
@@ -606,11 +606,11 @@ Timer tmSerial
|
||||
{
|
||||
if(type1.txt=="delete"||type1.txt=="")
|
||||
{
|
||||
qrcode m1.x,m1.y,200,6371,65535,-1,vaQR.txt
|
||||
qrcode m1.x,m1.y,200,defaultBcoColor,65535,-1,vaQR.txt
|
||||
}
|
||||
}else
|
||||
{
|
||||
qrcode m0.x,m0.y,200,6371,65535,-1,vaQR.txt
|
||||
qrcode m0.x,m0.y,200,defaultBcoColor,65535,-1,vaQR.txt
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
|
||||
Reference in New Issue
Block a user