keyboard: add num template for PIN input
Credit for the xml updates: fordownloads (vnukov.d03@gmail.com) MrYacha (yacha@orangefox.tech) Change-Id: Ie776b7de206dbeda122184052d474ebf5fbd7d68
This commit is contained in:
@@ -4771,6 +4771,11 @@ edi <conditions>
|
||||
<action function="page">decrypt_pattern</action>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<condition var1="tw_crypto_pwtype" var2="3"/>
|
||||
<action function="page">decrypt_pin</action>
|
||||
</action>
|
||||
|
||||
<text style="text_l">
|
||||
<placement x="%col1_x_header%" y="%row3_header_y%"/>
|
||||
<text>{@mount_hdr=Mount}</text>
|
||||
@@ -4900,6 +4905,69 @@ edi <conditions>
|
||||
</button>
|
||||
</page>
|
||||
|
||||
<page name="decrypt_pin">
|
||||
<template name="page"/>
|
||||
|
||||
<text style="text_l">
|
||||
<placement x="%col1_x_header%" y="%row3_header_y%"/>
|
||||
<text>{@mount_hdr=Mount}</text>
|
||||
</text>
|
||||
|
||||
<text style="text_m">
|
||||
<placement x="%col1_x_header%" y="%row4_header_y%"/>
|
||||
<text>{@decrypt_data_hdr=Decrypt Data}</text>
|
||||
</text>
|
||||
|
||||
<text style="text_m_accent">
|
||||
<condition var1="tw_is_fbe" op="!=" var2="1"/>
|
||||
<placement x="%center_x%" y="%row2_y%" placement="5"/>
|
||||
<text>{@decrypt_data_enter_pass=Enter PIN:}</text>
|
||||
</text>
|
||||
|
||||
<text style="text_m_accent">
|
||||
<condition var1="tw_is_fbe" var2="1"/>
|
||||
<placement x="%center_x%" y="%row2_y%" placement="5"/>
|
||||
<text>{@decrypt_data_enter_pass_fbe=Enter PIN for User [%tw_crypto_user_id%]}</text>
|
||||
</text>
|
||||
|
||||
<input>
|
||||
<placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
|
||||
<text>%tw_crypto_display%</text>
|
||||
<data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
|
||||
<restrict minlen="1" maxlen="254"/>
|
||||
<action function="page">trydecrypt</action>
|
||||
</input>
|
||||
|
||||
<fill color="%accent_color%">
|
||||
<placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
|
||||
</fill>
|
||||
|
||||
<fill color="%text_fail_color%">
|
||||
<condition var1="tw_password_fail" var2="1"/>
|
||||
<placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
|
||||
</fill>
|
||||
|
||||
<text style="text_m_fail">
|
||||
<condition var1="tw_password_fail" var2="1"/>
|
||||
<placement x="%col1_x_left%" y="%row5_y%"/>
|
||||
<text>{@decrypt_data_failed=PIN failed, please try again!}</text>
|
||||
</text>
|
||||
|
||||
<button style="main_button_half_width_low">
|
||||
<placement x="%indent%" y="%row6_y%"/>
|
||||
<text>{@cancel_btn=Cancel}</text>
|
||||
<action function="page">canceldecrypt</action>
|
||||
</button>
|
||||
|
||||
<button style="main_button_half_width_low">
|
||||
<placement x="%indent_right%" y="%row6_y%" placement="1"/>
|
||||
<text>{@sel_lang_btn=Select Language}</text>
|
||||
<action function="overlay">select_language</action>
|
||||
</button>
|
||||
|
||||
<template name="keyboardnum"/>
|
||||
</page>
|
||||
|
||||
<page name="trydecrypt">
|
||||
<template name="page"/>
|
||||
|
||||
|
||||
@@ -4894,6 +4894,11 @@
|
||||
<action function="page">decrypt_pattern</action>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<condition var1="tw_crypto_pwtype" var2="3"/>
|
||||
<action function="page">decrypt_pin</action>
|
||||
</action>
|
||||
|
||||
<text style="text_l">
|
||||
<placement x="%col1_x_header%" y="%row3_header_y%"/>
|
||||
<text>{@mount_hdr=Mount}</text>
|
||||
@@ -5030,6 +5035,69 @@
|
||||
</button>
|
||||
</page>
|
||||
|
||||
<page name="decrypt_pin">
|
||||
<template name="page"/>
|
||||
|
||||
<text style="text_l">
|
||||
<placement x="%col1_x_header%" y="%row3_header_y%"/>
|
||||
<text>{@mount_hdr=Mount}</text>
|
||||
</text>
|
||||
|
||||
<text style="text_m">
|
||||
<placement x="%col1_x_header%" y="%row4_header_y%"/>
|
||||
<text>{@decrypt_data_hdr=Decrypt Data}</text>
|
||||
</text>
|
||||
|
||||
<text style="text_m_accent">
|
||||
<condition var1="tw_is_fbe" op="!=" var2="1"/>
|
||||
<placement x="%center_x%" y="%row2_y%" placement="5"/>
|
||||
<text>{@decrypt_data_enter_pass=Enter PIN:}</text>
|
||||
</text>
|
||||
|
||||
<text style="text_m_accent">
|
||||
<condition var1="tw_is_fbe" var2="1"/>
|
||||
<placement x="%center_x%" y="%row2_y%" placement="5"/>
|
||||
<text>{@decrypt_data_enter_pass_fbe=Enter PIN for User [%tw_crypto_user_id%]}</text>
|
||||
</text>
|
||||
|
||||
<input>
|
||||
<placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
|
||||
<text>%tw_crypto_display%</text>
|
||||
<data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
|
||||
<restrict minlen="1" maxlen="254"/>
|
||||
<action function="page">trydecrypt</action>
|
||||
</input>
|
||||
|
||||
<fill color="%accent_color%">
|
||||
<placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
|
||||
</fill>
|
||||
|
||||
<fill color="%text_fail_color%">
|
||||
<condition var1="tw_password_fail" var2="1"/>
|
||||
<placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
|
||||
</fill>
|
||||
|
||||
<text style="text_m_fail">
|
||||
<condition var1="tw_password_fail" var2="1"/>
|
||||
<placement x="%indent%" y="%row5_y%"/>
|
||||
<text>{@decrypt_data_failed=PIN failed, please try again!}</text>
|
||||
</text>
|
||||
|
||||
<button style="main_button_half_height">
|
||||
<placement x="%indent%" y="%row10_y%"/>
|
||||
<text>{@cancel_btn=Cancel}</text>
|
||||
<action function="page">canceldecrypt</action>
|
||||
</button>
|
||||
|
||||
<button style="main_button_half_height">
|
||||
<placement x="%center_x%" y="%row10_y%"/>
|
||||
<text>{@sel_lang_btn=Select Language}</text>
|
||||
<action function="overlay">select_language</action>
|
||||
</button>
|
||||
|
||||
<template name="keyboardnum"/>
|
||||
</page>
|
||||
|
||||
<page name="trydecrypt">
|
||||
<template name="page"/>
|
||||
|
||||
|
||||
@@ -5446,6 +5446,11 @@
|
||||
<action function="page">decrypt_pattern</action>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<condition var1="tw_crypto_pwtype" var2="3"/>
|
||||
<action function="page">decrypt_pin</action>
|
||||
</action>
|
||||
|
||||
<text style="text_m">
|
||||
<placement x="%col1_x_left%" y="%row1_header_y%"/>
|
||||
<text>{@mount_hdr=Mount} > {@decrypt_data_hdr=Decrypt Data}</text>
|
||||
@@ -5616,6 +5621,66 @@
|
||||
</button>
|
||||
</page>
|
||||
|
||||
<page name="decrypt_pin">
|
||||
<template name="page"/>
|
||||
|
||||
<template name="statusbar"/>
|
||||
|
||||
<text style="text_m">
|
||||
<placement x="%col1_x_left%" y="%row1_header_y%"/>
|
||||
<text>{@mount_hdr=Mount} > {@decrypt_data_hdr=Decrypt Data}</text>
|
||||
</text>
|
||||
|
||||
<text style="text_m_accent">
|
||||
<condition var1="tw_is_fbe" op="!=" var2="1"/>
|
||||
<placement x="%col1_x_left%" y="%row1_y%"/>
|
||||
<text>{@decrypt_data_enter_pass=Enter PIN:}</text>
|
||||
</text>
|
||||
|
||||
<text style="text_m_accent">
|
||||
<condition var1="tw_is_fbe" var2="1"/>
|
||||
<placement x="%col1_x_left%" y="%row1_y%"/>
|
||||
<text>{@decrypt_data_enter_pass_fbe=Enter PIN for User [%tw_crypto_user_id%]}</text>
|
||||
</text>
|
||||
|
||||
<input>
|
||||
<placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
|
||||
<text>%tw_crypto_display%</text>
|
||||
<data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
|
||||
<restrict minlen="1" maxlen="254"/>
|
||||
<action function="page">trydecrypt</action>
|
||||
</input>
|
||||
|
||||
<fill color="%accent_color%">
|
||||
<placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
|
||||
</fill>
|
||||
|
||||
<fill color="%text_fail_color%">
|
||||
<condition var1="tw_password_fail" var2="1"/>
|
||||
<placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
|
||||
</fill>
|
||||
|
||||
<text style="text_m_fail">
|
||||
<condition var1="tw_password_fail" var2="1"/>
|
||||
<placement x="%col1_x_left%" y="%row3_input_y%"/>
|
||||
<text>{@decrypt_data_failed=PIN failed, please try again!}</text>
|
||||
</text>
|
||||
|
||||
<button style="main_button_half_height">
|
||||
<placement x="%col1_x_left%" y="%row4_y%"/>
|
||||
<text>{@sel_lang_btn=Select Language}</text>
|
||||
<action function="page">settings_language</action>
|
||||
</button>
|
||||
|
||||
<button style="main_button_half_height">
|
||||
<placement x="%col1_x_right%" y="%row4_y%"/>
|
||||
<text>{@cancel_btn=Cancel}</text>
|
||||
<action function="page">canceldecrypt</action>
|
||||
</button>
|
||||
|
||||
<template name="keyboardnum"/>
|
||||
</page>
|
||||
|
||||
<page name="trydecrypt">
|
||||
<template name="page"/>
|
||||
|
||||
|
||||
@@ -720,5 +720,28 @@
|
||||
</layout4>
|
||||
</keyboard>
|
||||
</template>
|
||||
|
||||
<template name="keyboardnum">
|
||||
<keyboard>
|
||||
<placement x="0" y="%keyboard_y%" w="1920" h="512"/>
|
||||
<keymargin x="6" y="6"/>
|
||||
<background color="#111111"/>
|
||||
<key-alphanumeric color="#111111" font="keylabel" textcolor="#EEEEEE"/>
|
||||
<key-other color="#111111" font="keylabel-small" textcolor="#5b5b5bff"/>
|
||||
<longpress font="keylabel-longpress" textcolor="#5b5b5bff" x="40" y="4"/>
|
||||
<keylabel key="0:c:8" text="Bksp" resource="backspace"/>
|
||||
<keylabel key="0:action" text="Enter" resource="enter"/>
|
||||
<keylabel key=" " text="Space" resource="space"/>
|
||||
<highlight color="%highlight_color%"/>
|
||||
<capshighlight color="%highlight_color%"/>
|
||||
<layout1>
|
||||
<keysize height="127" width="376"/>
|
||||
<row1 key01="396:" key02="1" key03="2" key04="3" key05="396:"/>
|
||||
<row2 key01="396:" key02="4" key03="5" key04="6" key05="396:"/>
|
||||
<row3 key01="396:" key02="7" key03="8" key04="9" key05="396:"/>
|
||||
<row4 key01="396:" key02="376:c:8" key03="0" key04="378:action" key05="396:"/>
|
||||
</layout1>
|
||||
</keyboard>
|
||||
</template>
|
||||
</templates>
|
||||
</recovery>
|
||||
|
||||
@@ -720,5 +720,28 @@
|
||||
</layout4>
|
||||
</keyboard>
|
||||
</template>
|
||||
|
||||
<template name="keyboardnum">
|
||||
<keyboard>
|
||||
<placement x="0" y="%keyboard_y%" w="800" h="192"/>
|
||||
<keymargin x="4" y="4"/>
|
||||
<background color="#111111"/>
|
||||
<key-alphanumeric color="#111111" font="keylabel" textcolor="#EEEEEE"/>
|
||||
<key-other color="#111111" font="keylabel-small" textcolor="#5b5b5bff"/>
|
||||
<longpress font="keylabel-longpress" textcolor="#5b5b5bff" x="14" y="2"/>
|
||||
<keylabel key="0:c:8" text="Bksp" resource="backspace"/>
|
||||
<keylabel key="0:action" text="Enter" resource="enter"/>
|
||||
<keylabel key=" " text="Space" resource="space"/>
|
||||
<highlight color="%highlight_color%"/>
|
||||
<capshighlight color="%highlight_color%"/>
|
||||
<layout1>
|
||||
<keysize height="47" width="158"/>
|
||||
<row1 key01="164:" key02="1" key03="2" key04="3" key05="164:"/>
|
||||
<row2 key01="164:" key02="4" key03="5" key04="6" key05="164:"/>
|
||||
<row3 key01="164:" key02="7" key03="8" key04="9" key05="164:"/>
|
||||
<row4 key01="164:" key02="158:c:8" key03="0" key04="159:action" key05="164:"/>
|
||||
</layout1>
|
||||
</keyboard>
|
||||
</template>
|
||||
</templates>
|
||||
</recovery>
|
||||
|
||||
@@ -638,5 +638,29 @@
|
||||
</layout4>
|
||||
</keyboard>
|
||||
</template>
|
||||
|
||||
<template name="keyboardnum">
|
||||
<keyboard>
|
||||
<condition var1="tw_hide_kb" var2="0"/>
|
||||
<placement x="0" y="%keyboard_y%" w="1080" h="644"/>
|
||||
<keymargin x="8" y="8"/>
|
||||
<background color="#111111"/>
|
||||
<key-alphanumeric color="#111111" font="keylabel" textcolor="#EEEEEE"/>
|
||||
<key-other color="#111111" font="keylabel-small" textcolor="#5b5b5bff"/>
|
||||
<longpress font="keylabel-longpress" textcolor="#5b5b5bff" x="12" y="0"/>
|
||||
<keylabel key="0:c:8" text="Bksp" resource="backspace"/>
|
||||
<keylabel key="0:action" text="Enter" resource="enter"/>
|
||||
<keylabel key=" " text="Space" resource="space"/>
|
||||
<highlight color="%highlight_color%"/>
|
||||
<capshighlight color="%highlight_color%"/>
|
||||
<layout1>
|
||||
<keysize height="160" width="212"/>
|
||||
<row1 key01="225:" key02="1" key03="2" key04="3" key05="225:"/>
|
||||
<row2 key01="225:" key02="4" key03="5" key04="6" key05="225:"/>
|
||||
<row3 key01="225:" key02="7" key03="8" key04="9" key05="225:"/>
|
||||
<row4 key01="225:" key02="212:c:8" key03="0" key04="214:action" key05="225:"/>
|
||||
</layout1>
|
||||
</keyboard>
|
||||
</template>
|
||||
</templates>
|
||||
</recovery>
|
||||
|
||||
@@ -638,5 +638,29 @@
|
||||
</layout4>
|
||||
</keyboard>
|
||||
</template>
|
||||
|
||||
<template name="keyboardnum">
|
||||
<keyboard>
|
||||
<condition var1="tw_hide_kb" var2="0"/>
|
||||
<placement x="0" y="%keyboard_y%" w="480" h="284"/>
|
||||
<keymargin x="4" y="4"/>
|
||||
<background color="#111111"/>
|
||||
<key-alphanumeric color="#111111" font="keylabel" textcolor="#EEEEEE"/>
|
||||
<key-other color="#111111" font="keylabel-small" textcolor="#5b5b5bff"/>
|
||||
<longpress font="keylabel-longpress" textcolor="#5b5b5bff" x="6" y="0"/>
|
||||
<keylabel key="0:c:8" text="Bksp" resource="backspace"/>
|
||||
<keylabel key="0:action" text="Enter" resource="enter"/>
|
||||
<keylabel key=" " text="Space" resource="space"/>
|
||||
<highlight color="%highlight_color%"/>
|
||||
<capshighlight color="%highlight_color%"/>
|
||||
<layout1>
|
||||
<keysize height="70" width="94"/>
|
||||
<row1 key01="100:" key02="1" key03="2" key04="3" key05="100:"/>
|
||||
<row2 key01="100:" key02="4" key03="5" key04="6" key05="100:"/>
|
||||
<row3 key01="100:" key02="7" key03="8" key04="9" key05="100:"/>
|
||||
<row4 key01="100:" key02="94:c:8" key03="0" key04="95:action" key05="100:"/>
|
||||
</layout1>
|
||||
</keyboard>
|
||||
</template>
|
||||
</templates>
|
||||
</recovery>
|
||||
|
||||
@@ -388,5 +388,29 @@
|
||||
</layout4>
|
||||
</keyboard>
|
||||
</template>
|
||||
|
||||
<template name="keyboardnum">
|
||||
<keyboard>
|
||||
<condition var1="tw_hide_kb" var2="0"/>
|
||||
<placement x="0" y="%keyboard_y%" w="320" h="144"/>
|
||||
<keymargin x="2" y="2"/>
|
||||
<background color="#111111"/>
|
||||
<key-alphanumeric color="#111111" font="keylabel" textcolor="#EEEEEE"/>
|
||||
<key-other color="#111111" font="keylabel-small" textcolor="#5b5b5bff"/>
|
||||
<longpress font="keylabel-longpress" textcolor="#5b5b5bff" x="0" y="0"/>
|
||||
<keylabel key="0:c:8" text="Bksp" resource="backspace"/>
|
||||
<keylabel key="0:action" text="Enter" resource="enter"/>
|
||||
<keylabel key=" " text="Space" resource="space"/>
|
||||
<highlight color="%highlight_color%"/>
|
||||
<capshighlight color="%highlight_color%"/>
|
||||
<layout1>
|
||||
<keysize height="35" width="62"/>
|
||||
<row1 key01="67:" key02="1" key03="2" key04="3" key05="67:"/>
|
||||
<row2 key01="67:" key02="4" key03="5" key04="6" key05="67:"/>
|
||||
<row3 key01="67:" key02="7" key03="8" key04="9" key05="67:"/>
|
||||
<row4 key01="67:" key02="62:c:8" key03="0" key04="63:action" key05="67:"/>
|
||||
</layout1>
|
||||
</keyboard>
|
||||
</template>
|
||||
</templates>
|
||||
</recovery>
|
||||
|
||||
Reference in New Issue
Block a user