Page settings redesign
Clean up the UI of settings page. Prepare for translations.
This commit is contained in:
@@ -14,7 +14,9 @@ Page settings
|
||||
Preinitialize Event
|
||||
dim=brightness
|
||||
covx brightslider.val,bright_text.txt,0,0
|
||||
bright_text.txt+="%"
|
||||
covx dimslider.val,dim_text.txt,0,0
|
||||
dim_text.txt+="%"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
@@ -45,8 +47,8 @@ Text bright_text
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text :
|
||||
Max. Text Size : 3
|
||||
Text : 80%
|
||||
Max. Text Size : 4
|
||||
|
||||
Text dim_text
|
||||
Attributes
|
||||
@@ -55,33 +57,33 @@ Text dim_text
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text :
|
||||
Max. Text Size : 3
|
||||
Text : 20%
|
||||
Max. Text Size : 4
|
||||
|
||||
Text lbl_reboot
|
||||
Attributes
|
||||
ID : 5
|
||||
Scope : local
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Reboot
|
||||
Max. Text Size : 6
|
||||
Max. Text Size : 15
|
||||
|
||||
Text lbl_sleep
|
||||
Attributes
|
||||
ID : 6
|
||||
Scope : local
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Sleep
|
||||
Max. Text Size : 5
|
||||
Text : Sleep mode
|
||||
Max. Text Size : 15
|
||||
|
||||
Text lbl_brightness
|
||||
Attributes
|
||||
ID : 7
|
||||
Scope : local
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
@@ -91,13 +93,33 @@ Text lbl_brightness
|
||||
Text lbl_dimming
|
||||
Attributes
|
||||
ID : 8
|
||||
Scope : local
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text : Dimming
|
||||
Max. Text Size : 7
|
||||
|
||||
Text icon_bright
|
||||
Attributes
|
||||
ID : 16
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text :
|
||||
Max. Text Size : 3
|
||||
|
||||
Text icon_dim
|
||||
Attributes
|
||||
ID : 17
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard: none
|
||||
Text :
|
||||
Max. Text Size : 3
|
||||
|
||||
Slider brightslider
|
||||
Attributes
|
||||
ID : 1
|
||||
@@ -109,8 +131,17 @@ Slider brightslider
|
||||
Lower range limit: 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"press\"}",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
covx brightslider.val,bright_text.txt,0,0
|
||||
bright_text.txt+="%"
|
||||
printh 91
|
||||
prints "brightslider",0
|
||||
printh 00
|
||||
@@ -128,8 +159,17 @@ Slider dimslider
|
||||
Lower range limit: 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"press\"}",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
covx dimslider.val,dim_text.txt,0,0
|
||||
dim_text.txt+="%"
|
||||
printh 91
|
||||
prints "dimslider",0
|
||||
printh 00
|
||||
@@ -157,8 +197,8 @@ Dual-state Button bt_reboot
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
State : unpressed
|
||||
Text :
|
||||
Max. Text Size : 0
|
||||
Text :
|
||||
Max. Text Size : 3
|
||||
|
||||
Dual-state Button bt_sleep
|
||||
Attributes
|
||||
@@ -167,8 +207,8 @@ Dual-state Button bt_sleep
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
State : unpressed
|
||||
Text :
|
||||
Max. Text Size : 0
|
||||
Text :
|
||||
Max. Text Size : 3
|
||||
|
||||
Hotspot bt_bright_down
|
||||
Attributes
|
||||
|
||||
Reference in New Issue
Block a user