Clean-up Cover page

I'm preparing this page to have icons changing based on the device_class selected to a cover.
This commit is contained in:
Edward Firmo
2023-09-02 00:35:32 +02:00
parent 0a3babfbce
commit 2e33d94955
34 changed files with 102 additions and 436 deletions

View File

@@ -51,21 +51,21 @@ Page cover
Variable (string) va1
Attributes
ID : 9
ID : 7
Scope : local
Text : newtxt
Max. Text Size: 10
Variable (string) coversetting
Attributes
ID : 13
ID : 11
Scope : local
Text :
Max. Text Size: 255
Variable (string) back_page
Attributes
ID : 14
ID : 12
Scope : local
Text : home
Max. Text Size: 15
@@ -102,7 +102,7 @@ Text page_label
Text icon_state
Attributes
ID : 11
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -112,7 +112,7 @@ Text icon_state
Text battery_icon
Attributes
ID : 12
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
@@ -150,7 +150,7 @@ Button cover_open
Send Component ID: disabled
State : unpressed
Text :
Max. Text Size : 10
Max. Text Size : 3
Events
Touch Press Event
@@ -170,7 +170,7 @@ Button cover_close
Send Component ID: disabled
State : unpressed
Text :
Max. Text Size : 10
Max. Text Size : 3
Events
Touch Press Event
@@ -184,13 +184,13 @@ Button cover_close
Button cover_stop
Attributes
ID : 10
ID : 8
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text :
Max. Text Size : 10
Max. Text Size : 3
Events
Touch Press Event
@@ -204,7 +204,7 @@ Button cover_stop
Button button_back
Attributes
ID : 15
ID : 13
Scope : local
Dragging : 0
Send Component ID: disabled
@@ -231,60 +231,3 @@ Button button_back
page home
}
Timer swipestore
Attributes
ID : 8
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
TouchCap swipe
Attributes
ID : 7
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}