summaryrefslogtreecommitdiffstats
path: root/gui/devices/480x854
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-25 17:06:46 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-26 15:00:46 +0200
commitb46a6849719a8cd1045e08cd2c48f2ef94a2ccf6 (patch)
treeac584e693d2894a336815602996150a45049d10a /gui/devices/480x854
parentFix skip MD5 setting during backup (diff)
downloadandroid_bootable_recovery-b46a6849719a8cd1045e08cd2c48f2ef94a2ccf6.tar
android_bootable_recovery-b46a6849719a8cd1045e08cd2c48f2ef94a2ccf6.tar.gz
android_bootable_recovery-b46a6849719a8cd1045e08cd2c48f2ef94a2ccf6.tar.bz2
android_bootable_recovery-b46a6849719a8cd1045e08cd2c48f2ef94a2ccf6.tar.lz
android_bootable_recovery-b46a6849719a8cd1045e08cd2c48f2ef94a2ccf6.tar.xz
android_bootable_recovery-b46a6849719a8cd1045e08cd2c48f2ef94a2ccf6.tar.zst
android_bootable_recovery-b46a6849719a8cd1045e08cd2c48f2ef94a2ccf6.zip
Diffstat (limited to '')
-rw-r--r--gui/devices/480x854/res/ui.xml125
1 files changed, 82 insertions, 43 deletions
diff --git a/gui/devices/480x854/res/ui.xml b/gui/devices/480x854/res/ui.xml
index 76d193d63..c13ce5c51 100644
--- a/gui/devices/480x854/res/ui.xml
+++ b/gui/devices/480x854/res/ui.xml
@@ -11,7 +11,7 @@
<resources>
<resource name="font" type="font" filename="Roboto-Regular-20" />
- <resource name="condensedfont" type="font" filename="Roboto-Regular-20" />
+ <resource name="mediumfont" type="font" filename="Roboto-Regular-20" />
<resource name="filelist" type="font" filename="Roboto-Regular-20" />
<resource name="top_bar" type="image" filename="top-bar.jpg" />
<resource name="main_button" type="image" filename="menu-button" />
@@ -42,7 +42,6 @@
</resources>
<variables>
- <variable name="backgroundcolor" value="#000000FF" />
<variable name="col1_x" value="10" />
<variable name="col2_x" value="240" />
<variable name="col_center_x" value="128" />
@@ -151,6 +150,9 @@
<variable name="terminal_console_height" value="424" />
<variable name="terminal_text_y" value="444" />
<variable name="terminal_button_y" value="434" />
+ <variable name="row_dst_text_y" value="440" />
+ <variable name="row_offset_text_y" value="480" />
+ <variable name="row_offset_medium_y" value="505" />
</variables>
<templates>
@@ -441,7 +443,7 @@
<object type="button">
<placement x="%col1_x%" y="%row1_text_y%" />
- <font resource="font" color="%text_color%" />
+ <font resource="mediumfont" color="%text_color%" />
<conditions>
<condition var1="tw_has_dual_storage" var2="1" />
<condition var1="tw_use_external_storage" var2="1" />
@@ -453,7 +455,7 @@
<object type="button">
<placement x="%col1_x%" y="%row1_text_y%" />
- <font resource="font" color="%text_color%" />
+ <font resource="mediumfont" color="%text_color%" />
<conditions>
<condition var1="tw_has_dual_storage" var2="1" />
<condition var1="tw_use_external_storage" var2="0" />
@@ -465,7 +467,7 @@
<object type="button">
<placement x="%col2_x%" y="%row1_text_y%" />
- <font resource="font" color="%text_color%" />
+ <font resource="mediumfont" color="%text_color%" />
<conditions>
<condition var1="tw_has_dual_storage" var2="1" />
<condition var1="tw_use_external_storage" var2="1" />
@@ -477,7 +479,7 @@
<object type="button">
<placement x="%col2_x%" y="%row1_text_y%" />
- <font resource="font" color="%text_color%" />
+ <font resource="mediumfont" color="%text_color%" />
<conditions>
<condition var1="tw_has_dual_storage" var2="1" />
<condition var1="tw_use_external_storage" var2="0" />
@@ -547,7 +549,7 @@
</object>
<object type="text" color="%text_color%">
- <font resource="font" />
+ <font resource="mediumfont" />
<placement x="%center_x%" y="%row4_text_y%" placement="5" />
<text>%tw_zip_location%</text>
</object>
@@ -559,7 +561,7 @@
</object>
<object type="text" color="%text_color%">
- <font resource="font" />
+ <font resource="mediumfont" />
<placement x="%center_x%" y="%row6_text_y%" placement="5" />
<text>%tw_file%</text>
</object>
@@ -573,7 +575,7 @@
<object type="checkbox">
<placement x="%col1_x%" y="%row8_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Zip file signature verification?</text>
+ <text>Zip file signature verification.</text>
<data variable="tw_signed_zip_verify" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -581,7 +583,7 @@
<object type="checkbox">
<placement x="%col1_x%" y="%row9_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Force MD5 check on all zips?</text>
+ <text>Force MD5 check on all zips.</text>
<data variable="tw_force_md5_check" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -590,14 +592,14 @@
<condition var1="tw_has_injecttwrp" var2="1" />
<placement x="%col1_x%" y="%row10_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Inject TWRP after install?</text>
+ <text>Inject TWRP after install.</text>
<data variable="tw_inject_after_zip" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
<object type="text" color="%text_color%">
<font resource="font" />
- <placement x="%center_x%" y="%row12_text_y%" placement="5" />
+ <placement x="%center_x%" y="%row11_text_y%" placement="5" />
<text>File %tw_zip_queue_count% of max of 10</text>
</object>
@@ -665,7 +667,7 @@
</object>
<object type="text" color="%text_color%">
- <font resource="font" />
+ <font resource="mediumfont" />
<placement x="%center_x%" y="%row18_text_y%" placement="5" />
<text>%tw_filename%</text>
</object>
@@ -787,6 +789,9 @@
<action function="set">tw_has_action2=0</action>
<action function="set">tw_action2=</action>
<action function="set">tw_action2_param=</action>
+ <action function="set">tw_has_cancel=0</action>
+ <action function="set">tw_cancel_action=</action>
+ <action function="set">tw_cancel_param=</action>
<action function="page">%tw_clear_destination%</action>
</object>
</page>
@@ -869,6 +874,15 @@
<object type="template" name="action_page_console" />
+ <object type="button">
+ <condition var1="tw_has_cancel" var2="1" />
+ <placement x="%col_center_medium_x%" y="%row4_y%" />
+ <font resource="font" color="%button_text_color%" />
+ <text>Cancel</text>
+ <image resource="medium_button" />
+ <action function="%tw_cancel_action%">%tw_cancel_param%</action>
+ </object>
+
<object type="template" name="progress_bar" />
<object type="action">
@@ -1092,7 +1106,7 @@
<action function="set">tw_has_action2=1</action>
<action function="set">tw_action2=set</action>
<action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
- <action function="set">tw_text1=Wipe External Storage (SD card)?</action>
+ <action function="set">tw_text1=Wipe External Storage (SD Card)?</action>
<action function="set">tw_action_text1=Wiping External Storage...</action>
<action function="set">tw_complete_text1=External Storage Wipe Complete</action>
<action function="set">tw_slider_text=Swipe to Wipe</action>
@@ -1287,7 +1301,7 @@
<object type="checkbox">
<condition var1="tw_sp1_name" op=">" var2="" />
- <placement x="%col1_x%" y="%row10_text_y%" />
+ <placement x="%col1_x%" y="%row9_text_y%" />
<font resource="font" color="%text_color%" />
<text>%tw_sp1_name% (%tw_backup_sp1_size% MB)</text>
<data variable="tw_backup_sp1" />
@@ -1296,7 +1310,7 @@
<object type="checkbox">
<condition var1="tw_sp2_name" op=">" var2="" />
- <placement x="%col1_x%" y="%row11_text_y%" />
+ <placement x="%col1_x%" y="%row10_text_y%" />
<font resource="font" color="%text_color%" />
<text>%tw_sp2_name% (%tw_backup_sp2_size% MB)</text>
<data variable="tw_backup_sp2" />
@@ -1305,7 +1319,7 @@
<object type="checkbox">
<condition var1="tw_sp3_name" op=">" var2="" />
- <placement x="%col1_x%" y="%row12_text_y%" />
+ <placement x="%col1_x%" y="%row11_text_y%" />
<font resource="font" color="%text_color%" />
<text>%tw_sp3_name% (%tw_backup_sp3_size% MB)</text>
<data variable="tw_backup_sp3" />
@@ -1314,28 +1328,28 @@
<object type="text" color="%text_color%">
<font resource="font" />
- <placement x="%col1_x%" y="%row14_text_y%" />
+ <placement x="%col1_x%" y="%row13_text_y%" />
<text>Free Space: %tw_storage_free_size% MB</text>
</object>
<object type="checkbox">
- <placement x="%col1_x%" y="%row15_text_y%" />
+ <placement x="%col1_x%" y="%row14_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Enable Compression (Requires more time)</text>
+ <text>Enable compression.</text>
<data variable="tw_use_compression" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
<object type="checkbox">
- <placement x="%col1_x%" y="%row16_text_y%" />
+ <placement x="%col1_x%" y="%row15_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Skip MD5 generation on backups</text>
+ <text>Skip MD5 generation during backup.</text>
<data variable="tw_skip_md5_generate" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
<object type="button">
- <placement x="%col1_x%" y="%row17_text_y%" />
+ <placement x="%col1_x%" y="%row16_text_y%" />
<font resource="font" color="%text_color%" />
<conditions>
<condition var1="tw_has_dual_storage" var2="1" />
@@ -1347,7 +1361,7 @@
</object>
<object type="button">
- <placement x="%col1_x%" y="%row17_text_y%" />
+ <placement x="%col1_x%" y="%row16_text_y%" />
<font resource="font" color="%text_color%" />
<conditions>
<condition var1="tw_has_dual_storage" var2="1" />
@@ -1359,7 +1373,7 @@
</object>
<object type="button">
- <placement x="%col2_x%" y="%row17_text_y%" />
+ <placement x="%col2_x%" y="%row16_text_y%" />
<font resource="font" color="%text_color%" />
<conditions>
<condition var1="tw_has_dual_storage" var2="1" />
@@ -1371,7 +1385,7 @@
</object>
<object type="button">
- <placement x="%col2_x%" y="%row17_text_y%" />
+ <placement x="%col2_x%" y="%row16_text_y%" />
<font resource="font" color="%text_color%" />
<conditions>
<condition var1="tw_has_dual_storage" var2="1" />
@@ -1721,7 +1735,7 @@
<object type="checkbox">
<placement x="%col1_x%" y="%row14_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Enable MD5 checking of backup files</text>
+ <text>Enable MD5 verification of backup files.</text>
<data variable="tw_skip_md5_check" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -1920,7 +1934,7 @@
<condition var1="tw_has_external" var2="1" />
<condition var1="mounted" op="!=" var2="EXTERNAL" />
</conditions>
- <text>Mount SDCard</text>
+ <text>Mount SD Card</text>
<image resource="checkbox_false" />
<action function="mount">EXTERNAL</action>
</object>
@@ -1932,7 +1946,7 @@
<condition var1="tw_has_external" var2="1" />
<condition var1="mounted" op="=" var2="EXTERNAL" />
</conditions>
- <text>Unmount SDCard</text>
+ <text>Unmount SD Card</text>
<image resource="checkbox_true" />
<action function="umount">EXTERNAL</action>
</object>
@@ -2259,7 +2273,7 @@
<object type="checkbox">
<placement x="%col1_x%" y="%row1_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Zip file signature verification?</text>
+ <text>Zip file signature verification.</text>
<data variable="tw_signed_zip_verify" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -2267,7 +2281,7 @@
<object type="checkbox">
<placement x="%col1_x%" y="%row2_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Force MD5 check on all zips?</text>
+ <text>Force MD5 check on all zips.</text>
<data variable="tw_force_md5_check" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -2275,7 +2289,7 @@
<object type="checkbox">
<placement x="%col1_x%" y="%row3_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Use rm -rf instead of formatting?</text>
+ <text>Use rm -rf instead of formatting.</text>
<data variable="tw_rm_rf" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -2283,7 +2297,7 @@
<object type="checkbox">
<placement x="%col1_x%" y="%row4_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Skip MD5 generation on backups</text>
+ <text>Skip MD5 generation during backup.</text>
<data variable="tw_skip_md5_generate" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -2291,7 +2305,7 @@
<object type="checkbox">
<placement x="%col1_x%" y="%row5_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Enable MD5 checking of backup files</text>
+ <text>Enable MD5 verification of backup files.</text>
<data variable="tw_skip_md5_check" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -2299,7 +2313,7 @@
<object type="checkbox">
<placement x="%col1_x%" y="%row6_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Ignore image size errors during backup</text>
+ <text>Ignore image size errors during backup.</text>
<data variable="tw_ignore_image_size" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -2307,7 +2321,7 @@
<object type="checkbox">
<placement x="%col1_x%" y="%row7_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Simulate most actions for theme testing</text>
+ <text>Simulate actions for theme testing.</text>
<data variable="tw_simulate_actions" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -2316,7 +2330,7 @@
<condition var1="tw_simulate_actions" var2="1" />
<placement x="%col1_x%" y="%row8_text_y%" />
<font resource="font" color="%text_color%" />
- <text>Simulate failure for actions</text>
+ <text>Simulate failure for actions.</text>
<data variable="tw_simulate_fail" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
@@ -2392,7 +2406,7 @@
</object>
<object type="checkbox">
- <placement x="%col1_x%" y="%row11_text_y%" />
+ <placement x="%col1_x%" y="%row_dst_text_y%" />
<font resource="font" color="%text_color%" />
<text>Do you use daylight savings time (DST)?</text>
<data variable="tw_time_zone_guidst" />
@@ -2401,12 +2415,12 @@
<object type="text" color="%text_color%">
<font resource="font" />
- <placement x="%center_x%" y="%row12_text_y%" placement="5" />
+ <placement x="%center_x%" y="%row_offset_text_y%" placement="5" />
<text>Offset (usually 0): %tw_time_zone_guioffset%</text>
</object>
<object type="button">
- <placement x="%col1_medium_x%" y="%row6_medium_y%" />
+ <placement x="%col1_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>None</text>
<image resource="medium_button" />
@@ -2414,7 +2428,7 @@
</object>
<object type="button">
- <placement x="%col2_medium_x%" y="%row6_medium_y%" />
+ <placement x="%col2_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
<image resource="medium_button" />
@@ -2422,7 +2436,7 @@
</object>
<object type="button">
- <placement x="%col3_medium_x%" y="%row6_medium_y%" />
+ <placement x="%col3_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
<image resource="medium_button" />
@@ -2430,7 +2444,7 @@
</object>
<object type="button">
- <placement x="%col4_medium_x%" y="%row6_medium_y%" />
+ <placement x="%col4_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
<image resource="medium_button" />
@@ -2533,6 +2547,31 @@
</object>
<object type="button">
+ <placement x="%col2_x%" y="%row3_y%" />
+ <font resource="font" color="%button_text_color%" />
+ <text>Reload Theme</text>
+ <image resource="main_button" />
+ <action function="reload"></action>
+ </object>
+
+ <object type="button">
+ <placement x="%col1_x%" y="%row4_y%" />
+ <font resource="font" color="%button_text_color%" />
+ <text>ADB Sideload</text>
+ <image resource="main_button" />
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=adbsideload</action>
+ <action function="set">tw_action_text1=ADB Sideload</action>
+ <action function="set">tw_action_text2=Usage: adb sideload filename.zip</action>
+ <action function="set">tw_complete_text1=ADB Sideload Complete</action>
+ <action function="set">tw_has_cancel=1</action>
+ <action function="set">tw_cancel_action=adbsideloadcancel</action>
+ <action function="page">action_page</action>
+ </actions>
+ </object>
+
+ <object type="button">
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />