Word-wrap for Alarm page

This commit is contained in:
Edward Firmo
2023-09-06 01:29:56 +02:00
parent 4668073522
commit 3a2da38c6f
11 changed files with 24 additions and 26 deletions

View File

@@ -637,12 +637,12 @@ api:
id(disp1).set_component_text_printf("bt_disarm_icon", "\uE99D"); //mdi:shield-off
// Alarm page - Button's text
id(disp1).set_component_text_printf("bt_home_text", mui_alarm[0].c_str());
id(disp1).set_component_text_printf("bt_away_text", mui_alarm[1].c_str());
id(disp1).set_component_text_printf("bt_night_text", mui_alarm[2].c_str());
id(disp1).set_component_text_printf("bt_vacat_text", mui_alarm[3].c_str());
id(disp1).set_component_text_printf("bt_bypass_text", mui_alarm[4].c_str());
id(disp1).set_component_text_printf("bt_disarm_text", mui_alarm[5].c_str());
id(display_wrapped_text).execute("bt_home_text", mui_alarm[0].c_str(), 10);
id(display_wrapped_text).execute("bt_away_text", mui_alarm[1].c_str(), 10);
id(display_wrapped_text).execute("bt_night_text", mui_alarm[2].c_str(), 10);
id(display_wrapped_text).execute("bt_vacat_text", mui_alarm[3].c_str(), 10);
id(display_wrapped_text).execute("bt_bypass_text", mui_alarm[4].c_str(), 10);
id(display_wrapped_text).execute("bt_disarm_text", mui_alarm[5].c_str(), 10);
// Alarm page - Buttons
if (supported_features & 1) // Alarm - Button - Home

Binary file not shown.

Binary file not shown.

View File

@@ -116,7 +116,7 @@ Text bt_home_text
Send Component ID : disabled
Associated Keyboard: none
Text : Home
Max. Text Size : 10
Max. Text Size : 22
Text bt_away_text
Attributes
@@ -126,7 +126,7 @@ Text bt_away_text
Send Component ID : disabled
Associated Keyboard: none
Text : Away
Max. Text Size : 10
Max. Text Size : 22
Text bt_night_text
Attributes
@@ -136,7 +136,7 @@ Text bt_night_text
Send Component ID : disabled
Associated Keyboard: none
Text : Night
Max. Text Size : 10
Max. Text Size : 22
Text bt_vacat_text
Attributes
@@ -146,7 +146,7 @@ Text bt_vacat_text
Send Component ID : disabled
Associated Keyboard: none
Text : Vacation
Max. Text Size : 10
Max. Text Size : 22
Text bt_bypass_text
Attributes
@@ -156,7 +156,7 @@ Text bt_bypass_text
Send Component ID : disabled
Associated Keyboard: none
Text : Bypass
Max. Text Size : 10
Max. Text Size : 22
Text bt_disarm_text
Attributes
@@ -166,7 +166,7 @@ Text bt_disarm_text
Send Component ID : disabled
Associated Keyboard: none
Text : Disarm
Max. Text Size : 10
Max. Text Size : 22
Text bt_home_icon
Attributes

Binary file not shown.

Binary file not shown.

View File

@@ -116,7 +116,7 @@ Text bt_home_text
Send Component ID : disabled
Associated Keyboard: none
Text : Home
Max. Text Size : 10
Max. Text Size : 22
Text bt_away_text
Attributes
@@ -126,7 +126,7 @@ Text bt_away_text
Send Component ID : disabled
Associated Keyboard: none
Text : Away
Max. Text Size : 10
Max. Text Size : 22
Text bt_night_text
Attributes
@@ -136,7 +136,7 @@ Text bt_night_text
Send Component ID : disabled
Associated Keyboard: none
Text : Night
Max. Text Size : 10
Max. Text Size : 22
Text bt_vacat_text
Attributes
@@ -146,7 +146,7 @@ Text bt_vacat_text
Send Component ID : disabled
Associated Keyboard: none
Text : Vacation
Max. Text Size : 10
Max. Text Size : 22
Text bt_bypass_text
Attributes
@@ -156,7 +156,7 @@ Text bt_bypass_text
Send Component ID : disabled
Associated Keyboard: none
Text : Bypass
Max. Text Size : 10
Max. Text Size : 22
Text bt_disarm_text
Attributes
@@ -166,7 +166,7 @@ Text bt_disarm_text
Send Component ID : disabled
Associated Keyboard: none
Text : Disarm
Max. Text Size : 10
Max. Text Size : 22
Text bt_home_icon
Attributes

Binary file not shown.

Binary file not shown.

View File

@@ -116,7 +116,7 @@ Text bt_home_text
Send Component ID : disabled
Associated Keyboard: none
Text : Home
Max. Text Size : 10
Max. Text Size : 22
Text bt_away_text
Attributes
@@ -126,7 +126,7 @@ Text bt_away_text
Send Component ID : disabled
Associated Keyboard: none
Text : Away
Max. Text Size : 10
Max. Text Size : 22
Text bt_night_text
Attributes
@@ -136,7 +136,7 @@ Text bt_night_text
Send Component ID : disabled
Associated Keyboard: none
Text : Night
Max. Text Size : 10
Max. Text Size : 22
Text bt_vacat_text
Attributes
@@ -146,7 +146,7 @@ Text bt_vacat_text
Send Component ID : disabled
Associated Keyboard: none
Text : Vacation
Max. Text Size : 10
Max. Text Size : 22
Text bt_bypass_text
Attributes
@@ -156,7 +156,7 @@ Text bt_bypass_text
Send Component ID : disabled
Associated Keyboard: none
Text : Bypass
Max. Text Size : 10
Max. Text Size : 22
Text bt_disarm_text
Attributes
@@ -166,7 +166,7 @@ Text bt_disarm_text
Send Component ID : disabled
Associated Keyboard: none
Text : Disarm
Max. Text Size : 10
Max. Text Size : 22
Text bt_home_icon
Attributes

View File

@@ -25,8 +25,6 @@ Page home
vis bt_qrcode,is_qrcode
vis bt_entities,is_entities
vis bt_alarm,is_alarm
vis left_bt_text,0
vis right_bt_text,0
if(display_mode==3)
{
vis left_bt_text,0