diff options
author | z31s1g <z31s1g@googlemail.com> | 2015-11-07 18:50:22 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2015-12-19 15:28:11 +0100 |
commit | 28f0a92bb2604f8a6d27f7d5501fc2b652bcd13c (patch) | |
tree | 48627cd271058bbe2ed9f31704052d6e4a8c87bb | |
parent | Rename libexfat target to prevent conflicts (diff) | |
download | android_bootable_recovery-28f0a92bb2604f8a6d27f7d5501fc2b652bcd13c.tar android_bootable_recovery-28f0a92bb2604f8a6d27f7d5501fc2b652bcd13c.tar.gz android_bootable_recovery-28f0a92bb2604f8a6d27f7d5501fc2b652bcd13c.tar.bz2 android_bootable_recovery-28f0a92bb2604f8a6d27f7d5501fc2b652bcd13c.tar.lz android_bootable_recovery-28f0a92bb2604f8a6d27f7d5501fc2b652bcd13c.tar.xz android_bootable_recovery-28f0a92bb2604f8a6d27f7d5501fc2b652bcd13c.tar.zst android_bootable_recovery-28f0a92bb2604f8a6d27f7d5501fc2b652bcd13c.zip |
244 files changed, 16576 insertions, 1 deletions
diff --git a/gui/Android.mk b/gui/Android.mk index 6633e9abc..66883a4fa 100644 --- a/gui/Android.mk +++ b/gui/Android.mk @@ -82,7 +82,7 @@ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWRES_PATH) TWRP_RES := $(commands_recovery_local_path)/gui/devices/common/res/* # enable this to use new themes: -#TWRP_NEW_THEME := true +TWRP_NEW_THEME := true ifeq ($(TW_CUSTOM_THEME),) ifeq ($(TW_THEME),) diff --git a/gui/theme/common/fonts/DroidSansMono.ttf b/gui/theme/common/fonts/DroidSansMono.ttf Binary files differnew file mode 100644 index 000000000..4085cee84 --- /dev/null +++ b/gui/theme/common/fonts/DroidSansMono.ttf diff --git a/gui/theme/common/fonts/RobotoCondensed-Regular.ttf b/gui/theme/common/fonts/RobotoCondensed-Regular.ttf Binary files differnew file mode 100644 index 000000000..b9fc49c95 --- /dev/null +++ b/gui/theme/common/fonts/RobotoCondensed-Regular.ttf diff --git a/gui/theme/common/images/progress_empty.png b/gui/theme/common/images/progress_empty.png Binary files differnew file mode 100644 index 000000000..b85371014 --- /dev/null +++ b/gui/theme/common/images/progress_empty.png diff --git a/gui/theme/common/images/progress_fill.png b/gui/theme/common/images/progress_fill.png Binary files differnew file mode 100644 index 000000000..6731dae4a --- /dev/null +++ b/gui/theme/common/images/progress_fill.png diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml new file mode 100644 index 000000000..a6b38a25f --- /dev/null +++ b/gui/theme/common/landscape.xml @@ -0,0 +1,4295 @@ +<?xml version="1.0"?> +<recovery> + <styles> + <style name="text_l"> + <font resource="font_l" color="%text_color%"/> + </style> + + <style name="text_m"> + <font resource="font_m" color="%text_color%"/> + </style> + + <style name="text_m_accent"> + <font resource="font_m" color="%accent_color%"/> + </style> + + <style name="text_m_fail"> + <font resource="font_m" color="%text_fail_color%"/> + </style> + + <style name="text_s"> + <font resource="font_s" color="%text_color%"/> + </style> + + <style name="input"> + <background color="%background_color%"/> + <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/> + <font resource="font_m" color="%text_color%"/> + </style> + + <style name="checkbox"> + <font resource="font_m" color="%text_color%"/> + <image checked="checkbox_true" unchecked="checkbox_false"/> + </style> + + <style name="radiobutton"> + <font resource="font_m" color="%text_color%"/> + <image checked="radio_true" unchecked="radio_false"/> + </style> + + <style name="main_button"> + <highlight color="%highlight_color%"/> + <font resource="font_l" color="%text_button_color%"/> + <image resource="main_button"/> + </style> + + <style name="main_button_m"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="main_button"/> + </style> + + <style name="main_button_half_width"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="main_button_half_width"/> + </style> + + <style name="main_button_half_width_low"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="main_button_half_width_low"/> + </style> + + <style name="button_third_width"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="tab_3"/> + </style> + + <style name="button_quarter_width"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="tab_4"/> + </style> + + <style name="sort_asc"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="sort_asc"/> + </style> + + <style name="sort_desc"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="sort_desc"/> + </style> + + <style name="sort_empty"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="sort_empty"/> + </style> + + <style name="fab"> + <highlight color="%highlight_color%"/> + <placement x="%indent_right%" y="%row21a_y%" placement="1"/> + <font resource="font_m" color="%button_text_color%"/> + </style> + + <style name="tab"> + <highlight color="%highlight_color%"/> + <fill color="%accent_color%"/> + <font resource="font_s" color="%text_button_color%"/> + </style> + + <style name="console"> + <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/> + <font resource="fixed"/> + </style> + + <style name="fileselector"> + <highlight color="%fileselector_highlight_color%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <sort name="tw_gui_sort_order"/> + <icon folder="folder" file="file"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/> + </style> + + <style name="listbox"> + <highlight color="%fileselector_highlight_color%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <icon selected="radio_true" unselected="radio_false"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/> + </style> + + <style name="scrolllist"> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/> + </style> + + <style name="partitionlist"> + <highlight color="%fileselector_highlight_color%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/> + <icon selected="checkbox_true" unselected="checkbox_false"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/> + </style> + + <style name="partitionlist_storage"> + <highlight color="%fileselector_highlight_color%"/> + <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/> + <icon selected="radio_true" unselected="radio_false"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/> + </style> + + <style name="slider"> + <placement x="%col2_x_right%" y="%row17a_y%"/> + <font resource="font_m" color="%text_color%"/> + <resource base="slider" used="slider_used" touch="slider_touch"/> + </style> + + <style name="slider_centered"> + <placement x="%center_x%" y="%row17a_y%"/> + <font resource="font_m" color="%text_color%"/> + <resource base="slider" used="slider_used" touch="slider_touch"/> + </style> + + <style name="slidervalue"> + <resource handle="handle"/> + <font resource="font_m" color="%text_color%"/> + <colors line="%fileselector_linecolor%"/> + <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/> + </style> + </styles> + + <pages> + <page name="main"> + <action> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="main2"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Team Win Recovery Project</text> + </text> + + <text style="text_m"> + <condition var1="tw_no_cpu_temp" var2="0"/> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_version%</text> + </text> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>Install</text> + <actions> + <action function="queueclear"/> + <action function="set">tw_selectimage=0</action> + <action function="page">install</action> + </actions> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row2_y%"/> + <text>Wipe</text> + <action function="page">wipe</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row6a_y%"/> + <text>Backup</text> + <action function="page">backup</action> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row6a_y%"/> + <text>Restore</text> + <action function="page">restore</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>Mount</text> + <action function="page">mount</action> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row11_y%"/> + <text>Settings</text> + <action function="page">settings</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row15a_y%"/> + <text>Advanced</text> + <action function="page">advanced</action> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row15a_y%"/> + <text>Reboot</text> + <action function="page">reboot</action> + </button> + </page> + + <page name="install"> + <template name="page"/> + + <text style="text_l"> + <condition var1="tw_selectimage" var2="0"/> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Zip</text> + </text> + + <text style="text_l"> + <condition var1="tw_selectimage" var2="1"/> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Image</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <template name="sort_options"/> + + <fileselector> + <placement x="%col1_x_left%" y="%row1a_y%" w="%fileselector_install_folder_width%" h="%fileselector_install_height%"/> + <text>Folders</text> + <filter folders="1" files="0"/> + <path name="tw_zip_location" default="/sdcard"/> + <data name="select"/> + </fileselector> + + <fileselector> + <condition var1="tw_selectimage" var2="0"/> + <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/> + <text>%tw_zip_location%</text> + <filter extn=".zip" folders="0" files="1"/> + <path name="tw_zip_location" default="/sdcard"/> + <data name="tw_filename"/> + <selection name="tw_file"/> + </fileselector> + + <fileselector> + <condition var1="tw_selectimage" var2="1"/> + <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/> + <text>%tw_zip_location%</text> + <filter extn=".img" folders="0" files="1"/> + <path name="tw_zip_location" default="/sdcard"/> + <data name="tw_filename"/> + <selection name="tw_file"/> + </fileselector> + + <button style="main_button_half_width_low"> + <condition var1="tw_selectimage" var2="0"/> + <placement x="%col_button_right%" y="%row13a_y%"/> + <text>Install Image</text> + <actions> + <action function="set">tw_selectimage=1</action> + <action function="page">install</action> + </actions> + </button> + + <button style="main_button_half_width_low"> + <condition var1="tw_selectimage" var2="1"/> + <placement x="%col_button_right%" y="%row13a_y%"/> + <text>Install Zip</text> + <actions> + <action function="set">tw_selectimage=0</action> + <action function="page">install</action> + </actions> + </button> + + <button style="main_button_half_width_low"> + <placement x="%col_button_right%" y="%row16a_y%"/> + <text>Select Storage</text> + <actions> + <action function="set">tw_back=install</action> + <action function="overlay">select_storage</action> + </actions> + </button> + + <action> + <conditions> + <condition var1="tw_selectimage" var2="0"/> + <condition var1="tw_filename" op="modified"/> + </conditions> + <actions> + <action function="queuezip"/> + <action function="page">flash_confirm</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_selectimage" var2="1"/> + <condition var1="tw_filename" op="modified"/> + </conditions> + <action function="page">flashimage_confirm</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="flash_confirm"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Zip</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_zip_queue_count% of max of 10 Files queued</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>This operation may install incompatible</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>software and render your device unusable.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>Press back to cancel adding this zip.</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row8_y%"/> + <text>Folder:</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row9_y%"/> + <text>%tw_zip_location%</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>File:</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row12_y%"/> + <text>%tw_file%</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row8_y%"/> + <text>Options:</text> + </text> + + <checkbox> + <placement x="%col1_x_right%" y="%row9_y%"/> + <text>Zip file signature verification</text> + <data variable="tw_signed_zip_verify"/> + </checkbox> + + <checkbox> + <condition var1="tw_has_injecttwrp" var2="1"/> + <placement x="%col1_x_right%" y="%row10a_y%"/> + <text>Inject TWRP after install</text> + <data variable="tw_inject_after_zip"/> + </checkbox> + + <button style="main_button_half_width"> + <placement x="%col1_x_left%" y="%row15a_y%"/> + <text>Add more Zips</text> + <action function="page">install</action> + </button> + + <button style="main_button_half_width"> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>Clear Zip Queue</text> + <actions> + <action function="queueclear"/> + <action function="page">install</action> + </actions> + </button> + + <slider> + <text>Swipe to confirm Flash</text> + <action function="flash">flash_zip</action> + </slider> + + <action> + <touch key="back"/> + <actions> + <action function="cancelzip"/> + <action function="page">install</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="flash_zip"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Zip %tw_zip_index% of %tw_zip_queue_count%</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_file%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <action function="page">flash_done</action> + </action> + </page> + + <page name="flash_done"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Zip</text> + </text> + + <text style="text_m_fail"> + <condition var1="tw_operation_status" op="!=" var2="0"/> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Failed</text> + </text> + + <text style="text_m"> + <condition var1="tw_operation_status" var2="0"/> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Successful</text> + </text> + + <template name="console"/> + + <button style="main_button_half_width"> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>Wipe cache/dalvik</text> + <actions> + <action function="set">tw_back=flash_done</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=/cache</action> + <action function="set">tw_has_action2=1</action> + <action function="set">tw_action2=wipe</action> + <action function="set">tw_action2_param=dalvik</action> + <action function="set">tw_text1=Wipe Cache & Dalvik?</action> + <action function="set">tw_action_text1=Wiping Cache & Dalvik...</action> + <action function="set">tw_complete_text1=Cache & Dalvik Wipe Complete</action> + <action function="set">tw_slider_text=Swipe to Wipe</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_width"> + <placement x="%center_x%" y="%row15a_y%"/> + <text>Reboot System</text> + <actions> + <action function="set">tw_back=main2</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=system</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_text3=</action> + <action function="set">tw_text4=</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=install</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="flashimage_confirm"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Image</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Select Target Partition</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>This operation may install incompatible</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>software and render your device unusable.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>Press back to cancel adding this image.</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row8_y%"/> + <text>Folder:</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row9_y%"/> + <text>%tw_zip_location%</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>File:</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row12_y%"/> + <text>%tw_file%</text> + </text> + + <partitionlist> + <placement x="%col1_x_right%" y="%row7a_y%" w="%content_half_width%" h="%partitionlist_flashimage_height%"/> + <icon selected="radio_true" unselected="radio_false"/> + <text>Select Partition to Flash Image:</text> + <data name="tw_flash_partition"/> + <listtype name="flashimg"/> + </partitionlist> + + <slider> + <text>Swipe to confirm Flash</text> + <actions> + <action function="set">tw_back=flashimage_confirm</action> + <action function="set">tw_action=flashimage</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_action_text1=Flashing Image...</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_complete_text1=Image Flashed</action> + <action function="page">action_page</action> + </actions> + <action function="flashimage"/> + </slider> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=install</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="clear_vars"> + <action> + <action function="set">tw_operation_state=0</action> + <action function="set">tw_text1=</action> + <action function="set">tw_text2=</action> + <action function="set">tw_text3=</action> + <action function="set">tw_text4=</action> + <action function="set">tw_action_text1=</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_action_param=</action> + <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="set">tw_show_exclamation=0</action> + <action function="set">tw_show_reboot=0</action> + <action function="page">%tw_clear_destination%</action> + </action> + </page> + + <page name="confirm_action"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Confirm Action</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text/> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>%tw_text1%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>%tw_text2%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>%tw_text3%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>%tw_text4%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row7_y%" placement="5"/> + <text>Press back button to cancel.</text> + </text> + + <slider style="slider_centered"> + <text>%tw_slider_text%</text> + <action function="page">action_page</action> + </slider> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="action_page"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>%tw_action_text1%</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_action_text2%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <button style="main_button_half_width"> + <condition var1="tw_has_cancel" var2="1"/> + <placement x="%col2_x_right%" y="%row15a_y%"/> + <text>Cancel</text> + <action function="%tw_cancel_action%">%tw_cancel_param%</action> + </button> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <actions> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="0"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="1"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + <action function="%tw_action2%">%tw_action2_param%</action> + </actions> + </action> + </page> + + <page name="singleaction_page"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>%tw_action_text1%</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_action_text2%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <actions> + <action function="set">tw_page_done=1</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="0"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="1"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + <action function="%tw_action2%">%tw_action2_param%</action> + </actions> + </action> + </page> + + <page name="action_complete"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>%tw_complete_text1%</text> + </text> + + <text style="text_m_fail"> + <condition var1="tw_operation_status" op="!=" var2="0"/> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Failed</text> + </text> + + <text style="text_m"> + <condition var1="tw_operation_status" var2="0"/> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Successful</text> + </text> + + <template name="console"/> + + <button style="main_button_half_width"> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>Back</text> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="page">clear_vars</action> + </actions> + </button> + + <button style="main_button_half_width"> + <placement x="%center_x%" y="%row15a_y%"/> + <text>Reboot System</text> + <actions> + <action function="set">tw_back=main2</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=system</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_text3=</action> + <action function="set">tw_text4=</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="filecheck"> + <action> + <action function="fileexists">%tw_filecheck%</action> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" var2="0"/> + </conditions> + <actions> + <action function="set">tw_fileexists=1</action> + <action function="page">%tw_existpage%</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" var2="1"/> + </conditions> + <actions> + <action function="set">tw_fileexists=0</action> + <action function="page">%tw_notexistpage%</action> + </actions> + </action> + </page> + + <page name="rebootcheck"> + <action> + <condition var1="tw_backup_system_size" op=">=" var2="%tw_min_system%"/> + <action function="reboot">%tw_action_param%</action> + </action> + + <action> + <condition var1="tw_backup_system_size" op="<" var2="%tw_min_system%"/> + <action function="page">confirm_action</action> + </action> + </page> + + <page name="wipe"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Wipe</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Factory Reset</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Wipes Data, Cache, and Dalvik</text> + </text> + + <text style="text_m_accent"> + <condition var1="tw_has_data_media" var2="1"/> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>(not including internal storage)</text> + </text> + + <text style="text_m_accent"> + <conditions> + <condition var1="tw_has_android_secure" var2="1"/> + <condition var1="fileexists" var2="/and-sec"/> + </conditions> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>Android Secure</text> + </text> + + <text style="text_m_accent"> + <condition var1="tw_has_sdext_partition" var2="1"/> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>SD-EXT</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row7_y%" placement="5"/> + <text>Most of the time this is</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row8_y%" placement="5"/> + <text>the only wipe that you need.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row10_y%" placement="5"/> + <text>Press back button to cancel.</text> + </text> + + <button style="main_button_half_width"> + <placement x="%col1_x_left%" y="%row15a_y%"/> + <text>Advanced Wipe</text> + <actions> + <action function="set">partitionlisterror=0</action> + <action function="page">advancedwipe</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_has_data_media" var2="1"/> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>Format Data</text> + <action function="page">formatdata</action> + </button> + + <button style="main_button_half_width"> + <conditions> + <condition var1="tw_is_encrypted" var2="1"/> + <condition var1="tw_has_data_media" var2="0"/> + </conditions> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>Wipe Encryption</text> + <actions> + <action function="set">tw_back=wipe</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=DATAMEDIA</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Wipe Encryption from Data?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting Data...</action> + <action function="set">tw_complete_text1=Data Format Complete</action> + <action function="set">tw_slider_text=Swipe to Format Data</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <slider> + <text>Swipe to Factory Reset</text> + <actions> + <action function="set">tw_back=wipe</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=data</action> + <action function="set">tw_action_text1=Factory Reset...</action> + <action function="set">tw_complete_text1=Factory Reset Complete</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="advancedwipe"> + <template name="page"/> + + <action> + <action function="set">tw_wipe_list=</action> + </action> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Wipe</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Advanced Wipe</text> + </text> + + <partitionlist> + <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/> + <text>Select Partitions to Wipe:</text> + <data name="tw_wipe_list"/> + <listtype name="wipe"/> + </partitionlist> + + <text style="text_m_fail"> + <condition var1="partitionlisterror" var2="1"/> + <placement x="%col2_x_left%" y="%row14a_y%" placement="5"/> + <text>Invalid partition selection</text> + </text> + + <button style="main_button_m"> + <placement x="%col1_x_left%" y="%row15a_y%"/> + <text>Repair or Change File System</text> + <actions> + <action function="checkpartitionlist"/> + <action function="page">checkpartitionlist</action> + </actions> + </button> + + <slider> + <text>Swipe to Wipe</text> + <actions> + <action function="set">tw_back=advancedwipe</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=LIST</action> + <action function="set">tw_text1=Wipe Selected Partition(s)?</action> + <action function="set">tw_action_text1=Wiping Partition(s)...</action> + <action function="set">tw_complete_text1=Wipe Complete</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">wipe</action> + </action> + </page> + + <page name="formatdata"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Wipe</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Format Data</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Format Data will wipe all of your apps, backups, pictures, videos, media, and</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>removes encryption on internal storage.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>This cannot be undone. Press back to cancel.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>Type yes to continue.</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_confirm_formatdata%</text> + <data name="tw_confirm_formatdata"/> + <restrict minlen="3" maxlen="3" allow="yes"/> + <action function="page">formatdata_confirm</action> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row9_y" w="%content_width%" h="input_line_width"/> + </fill> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">wipe</action> + </action> + </page> + + <page name="formatdata_confirm"> + <action> + <condition var1="tw_confirm_formatdata" op="=" var2="yes"/> + <actions> + <action function="set">tw_back=formatdata</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=DATAMEDIA</action> + <action function="set">tw_action_text1=Formatting Data...</action> + <action function="set">tw_complete_text1=Data Format Complete</action> + <action function="page">action_page</action> + </actions> + </action> + + <action> + <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/> + <action function="page">formatdata</action> + </action> + </page> + + <page name="checkpartitionlist"> + <action> + <condition var1="tw_check_partition_list" op="=" var2="1"/> + <actions> + <action function="set">partitionlisterror=0</action> + <action function="getpartitiondetails"/> + <action function="page">partitionoptions</action> + </actions> + </action> + + <action> + <condition var1="tw_check_partition_list" op="!=" var2="1"/> + <actions> + <action function="set">partitionlisterror=1</action> + <action function="set">tw_wipe_list=</action> + <action function="page">advancedwipe</action> + </actions> + </action> + </page> + + <page name="partitionoptions"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Wipe</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Partition Options for: %tw_partition_name%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Mount Point: %tw_partition_mount_point%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>Current file system: %tw_partition_file_system%</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_is_present" var2="1"/> + <placement x="%col2_x_left%" y="%row5_y%"/> + <text>Present: Yes</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_is_present" var2="0"/> + <placement x="%col2_x_left%" y="%row5_y%"/> + <text>Present: No</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_removable" var2="1"/> + <placement x="%col1_x_right%" y="%row5_y%"/> + <text>Removable: Yes</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_removable" var2="0"/> + <placement x="%col1_x_right%" y="%row5_y%"/> + <text>Removable: No</text> + </text> + + <text style="text_m"> + <placement x="%col2_x_left%" y="%row7_y%"/> + <text>Size: %tw_partition_size%MB</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_right%" y="%row7_y%"/> + <text>Used: %tw_partition_used%MB</text> + </text> + + <text style="text_m"> + <placement x="%col2_x_left%" y="%row9_y%"/> + <text>Free: %tw_partition_free%MB</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_right%" y="%row9_y%"/> + <text>Backup Size: %tw_partition_backup_size%MB</text> + </text> + + <button style="main_button_half_width"> + <condition var1="tw_partition_can_resize" op="=" var2="1"/> + <placement x="%col1_x_left%" y="%row15a_y%"/> + <text>Resize File System</text> + <actions> + <action function="set">tw_back=partitionoptions</action> + <action function="set">tw_action=resize</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_has_action2=1</action> + <action function="set">tw_action2=getpartitiondetails</action> + <action function="set">tw_text1=Resize %tw_partition_name%?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Resizing...</action> + <action function="set">tw_complete_text1=Resize Complete</action> + <action function="set">tw_slider_text=Swipe to Resize</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_partition_can_repair" op="=" var2="1"/> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>Repair File System</text> + <actions> + <action function="set">tw_back=partitionoptions</action> + <action function="set">tw_action=repair</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Repair %tw_partition_name%?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Repairing...</action> + <action function="set">tw_complete_text1=Repair Complete</action> + <action function="set">tw_slider_text=Swipe to Repair</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_width"> + <placement x="%center_x%" y="%row15a_y%"/> + <text>Change File System</text> + <action function="page">selectfilesystem</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advancedwipe</action> + </action> + </page> + + <page name="refreshfilesystem"> + <action> + <condition var1="tw_check_partition_list" op="=" var2="1"/> + <actions> + <action function="set">partitionlisterror=0</action> + <action function="getpartitiondetails"/> + <action function="page">selectfilesystem</action> + </actions> + </action> + + <action> + <condition var1="tw_check_partition_list" op="!=" var2="1"/> + <actions> + <action function="set">partitionlisterror=1</action> + <action function="set">tw_wipe_list=</action> + <action function="page">advancedwipe</action> + </actions> + </action> + </page> + + <page name="selectfilesystem"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Wipe</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Change File System for: %tw_partition_name%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Mount Point: %tw_partition_mount_point%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>Current file system: %tw_partition_file_system%</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>Some ROMs or kernels may not support some</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>file systems. Proceed with caution!</text> + </text> + + <button style="main_button_half_width"> + <condition var1="tw_partition_ext" op="=" var2="1"/> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>EXT2</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=ext2</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to EXT2?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_partition_ext" op="=" var2="1"/> + <placement x="%col2_x_left%" y="%row11_y%"/> + <text>EXT3</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=ext3</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to EXT3?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_partition_ext" op="=" var2="1"/> + <placement x="%center_x%" y="%row11_y%"/> + <text>EXT4</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=ext4</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to EXT4?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_partition_vfat" op="=" var2="1"/> + <placement x="%col2_x_right%" y="%row11_y%"/> + <text>FAT</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=vfat</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to FAT?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_partition_exfat" op="=" var2="1"/> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>exFAT</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=exfat</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to exFAT?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_partition_f2fs" op="=" var2="1"/> + <placement x="%center_x%" y="%row15a_y%"/> + <text>F2FS</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=f2fs</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to F2FS?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">partitionoptions</action> + </action> + </page> + + <page name="backup"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Backup</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>Name:</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row3_y%"/> + <text>%tw_backup_name%</text> + </text> + + <fill color="%fileselector_linecolor%"> + <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width"/> + </fill> + + <button> + <placement x="col1_x_left" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/> + <fill color="%transparent%"/> + <actions> + <action function="set">tw_fileexists=0</action> + <action function="page">backupname1</action> + </actions> + </button> + + <partitionlist> + <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/> + <text>Select Partitions to Backup:</text> + <data name="tw_backup_list"/> + <listtype name="backup"/> + </partitionlist> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row2_y%"/> + <text>Encryption:</text> + </text> + + <text style="text_m"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="0"/> + </conditions> + <placement x="%col1_x_right%" y="%row3_y%"/> + <text>disabled - set a password to enable</text> + </text> + + <text style="text_m"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="1"/> + </conditions> + <placement x="%col1_x_right%" y="%row3_y%"/> + <text>enabled</text> + </text> + + <fill color="%fileselector_linecolor%"> + <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/> + </fill> + + <button> + <placement x="col1_x_right" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/> + <fill color="%transparent%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row5_y%"/> + <text>Options:</text> + </text> + + <checkbox> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>Enable compression</text> + <data variable="tw_use_compression"/> + </checkbox> + + <checkbox> + <placement x="%col1_x_right%" y="%row7a_y%"/> + <text>Skip MD5 generation during backup</text> + <data variable="tw_skip_md5_generate"/> + </checkbox> + + <checkbox> + <placement x="%col1_x_right%" y="%row9_y%"/> + <text>Disable Free Space Check</text> + <data variable="tw_disable_free_space"/> + </checkbox> + + <button style="main_button_half_width"> + <placement x="%col1_x_left%" y="%row15a_y%"/> + <text>Select Storage</text> + <actions> + <action function="set">tw_back=backup</action> + <action function="overlay">select_storage</action> + </actions> + </button> + + <button style="main_button_half_width"> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>Refresh Sizes</text> + <actions> + <action function="refreshsizes"/> + <action function="page">backup</action> + </actions> + </button> + + <slider> + <text>Swipe to Backup</text> + <action function="page">backup_run</action> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="backupname1"> + <action> + <condition var1="tw_backup_name" op="=" var2="(Auto Generate)"/> + <action function="generatebackupname"/> + </action> + + <action> + <action function="page">backupname2</action> + </action> + </page> + + <page name="backupname2"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Backup</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_backup_name%</text> + <data name="tw_backup_name"/> + <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/> + <actions> + <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action> + <action function="set">tw_existpage=backupname2</action> + <action function="set">tw_notexistpage=backup</action> + <action function="page">filecheck</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/> + </fill> + + <fill color="%text_fail_color%"> + <condition var1="tw_fileexists" var2="1"/> + <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/> + </fill> + + <text style="text_m_fail"> + <condition var1="tw_fileexists" var2="1"/> + <placement x="%col1_x_left%" y="%row4_y%"/> + <text>A backup with that name already exists!</text> + </text> + + <button style="main_button_half_width_low"> + <placement x="%indent%" y="%row5_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_backup_name=(Auto Generate)</action> + <action function="page">backup</action> + </actions> + </button> + + <button style="main_button_half_width_low"> + <placement x="%date_button_x%" y="%row5_y%"/> + <text>Append Date</text> + <action function="appenddatetobackupname"/> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_backup_name=(Auto Generate)</action> + <action function="page">main</action> + </actions> + </action> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_backup_name=(Auto Generate)</action> + <action function="page">backup</action> + </actions> + </action> + </page> + + <page name="backupencryption"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Backup</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row2_y%"/> + <text>Encryption Password:</text> + </text> + + <input> + <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/> + <text>%tw_backup_encrypt_display%</text> + <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/> + <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/> + <action function="page">backupencryption2</action> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/> + </fill> + + <fill color="%text_fail_color%"> + <condition var1="tw_password_not_match" var2="1"/> + <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/> + </fill> + + <text style="text_m_fail"> + <condition var1="tw_password_not_match" var2="1"/> + <placement x="%col1_x_right%" y="%row4_y%"/> + <text>Passwords do not match!</text> + </text> + + <button style="main_button_half_width_low"> + <placement x="%center_x%" y="%row5_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_encrypt_backup=0</action> + <action function="set">tw_backup_password=</action> + <action function="set">tw_backup_password2=</action> + <action function="set">tw_backup_encrypt_display=</action> + <action function="set">tw_backup_encrypt_display2=</action> + <action function="page">backup</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">backup</action> + </action> + </page> + + <page name="backupencryption2"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Backup</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row2_y%"/> + <text>Encryption Password:</text> + </text> + + <input> + <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/> + <text>%tw_backup_encrypt_display2%</text> + <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/> + <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/> + <action function="page">checkbackuppassword</action> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/> + </fill> + + <text style="text_m"> + <placement x="%col1_x_right%" y="%row4_y%"/> + <text>Enter Password again!</text> + </text> + + <button style="main_button_half_width_low"> + <placement x="%center_x%" y="%row5_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_encrypt_backup=0</action> + <action function="set">tw_backup_password=</action> + <action function="set">tw_backup_password2=</action> + <action function="set">tw_backup_encrypt_display=</action> + <action function="set">tw_backup_encrypt_display2=</action> + <action function="page">backup</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">backup</action> + </action> + </page> + + <page name="checkbackuppassword"> + <action> + <condition var1="tw_backup_password2" var2="tw_backup_password"/> + <actions> + <action function="set">tw_encrypt_backup=1</action> + <action function="page">backup</action> + </actions> + </action> + + <action> + <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/> + <actions> + <action function="set">tw_encrypt_backup=0</action> + <action function="set">tw_password_not_match=1</action> + <action function="set">tw_backup_password=</action> + <action function="set">tw_backup_password2=</action> + <action function="set">tw_backup_encrypt_display=</action> + <action function="set">tw_backup_encrypt_display2=</action> + <action function="page">backupencryption</action> + </actions> + </action> + </page> + + <page name="backup_run"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>%tw_operation%</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_partition% Partition</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <text style="text_m_accent"> + <placement x="%progress_text_x%" y="%progress_text_y%"/> + <text>Progress:</text> + </text> + + <text style="text_m"> + <placement x="%progress_text_x%" y="%row17_y%"/> + <text>%tw_file_progress%</text> + </text> + + <text style="text_m"> + <placement x="%progress_text_x%" y="%row18_y%"/> + <text>%tw_size_progress%</text> + </text> + + <button style="main_button_half_width"> + <placement x="%col2_x_right%" y="%row15a_y%"/> + <text>Cancel</text> + <action function="cancelbackup"/> + </button> + + <action> + <action function="nandroid">backup</action> + </action> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_cancel_backup" var2="0"/> + <actions> + <action function="set">tw_back=backup</action> + <action function="set">tw_complete_text1=Backup Complete</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_cancel_backup" var2="1"/> + <actions> + <action function="set">tw_back=backup</action> + <action function="set">tw_complete_text1=Backup Cancelled</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_complete</action> + </actions> + </action> + </page> + + <page name="restore"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <template name="sort_options"/> + + <fileselector> + <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_install_height%"/> + <text>Select Package to Restore:</text> + <filter folders="1" files="0" nav="0"/> + <path name="tw_backups_folder"/> + <data name="tw_restore" default=""/> + <selection name="tw_restore_name"/> + </fileselector> + + <button style="main_button_half_width_low"> + <placement x="%col_button_right%" y="%row16a_y%"/> + <text>Select Storage</text> + <actions> + <action function="set">tw_back=restore</action> + <action function="overlay">select_storage</action> + </actions> + </button> + + <action> + <condition var1="tw_restore" op="modified"/> + <actions> + <action function="readBackup"/> + <action function="page">restore_read</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="restore_read"> + <action> + <condition var1="tw_restore_encrypted" var2="1"/> + <actions> + <action function="set">tw_password_fail=0</action> + <action function="page">restore_decrypt</action> + </actions> + </action> + + <action> + <condition var1="tw_restore_encrypted" var2="0"/> + <actions> + <action function="page">restore_select</action> + </actions> + </action> + </page> + + <page name="restore_decrypt"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Encrypted Backup</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Enter Password:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_restore_display%</text> + <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/> + <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/> + <action function="page">try_restore_decrypt</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>Password failed, please try again!</text> + </text> + + <button style="main_button_half_width_low"> + <placement x="%indent%" y="%row6_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">restore</action> + </actions> + </button> + + <button style="main_button_half_width_low"> + <placement x="%col_button_right%" y="%row6_y%"/> + <text>Delete Backup</text> + <actions> + <action function="set">tw_back=restore</action> + <action function="set">tw_action=cmd</action> + <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf "%tw_restore_name%"</action> + <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action> + <action function="set">tw_text2=This cannot be undone!</action> + <action function="set">tw_action_text1=Deleting Backup...</action> + <action function="set">tw_complete_text1=Backup Delete Complete</action> + <action function="set">tw_slider_text=Swipe to Delete</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">restore</action> + </action> + </page> + + <page name="try_restore_decrypt"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Encrypted Backup - Trying Decryption</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <action function="decrypt_backup"/> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="!=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_password_fail=1</action> + <action function="page">restore_decrypt</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">restore_select</action> + </actions> + </action> + </page> + + <page name="restore_select"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Backup made on %tw_restore_file_date%</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>Name:</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row3_y%"/> + <text>%tw_restore_name%</text> + </text> + + <fill color="%fileselector_linecolor%"> + <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width"/> + </fill> + + <button> + <placement x="col1_x_left" y="%row2_y%" w="%content_width%" h="%navbar_height%"/> + <fill color="%transparent%"/> + <actions> + <action function="set">tw_backup_rename=%tw_restore_name%</action> + <action function="set">tw_fileexists=0</action> + <action function="page">renamebackup</action> + </actions> + </button> + + <partitionlist> + <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/> + <text>Select Partitions to Restore:</text> + <data name="tw_restore_list" selectedlist="tw_restore_selected"/> + <listtype name="restore"/> + </partitionlist> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row5_y%"/> + <text>Options:</text> + </text> + + <checkbox> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>Enable MD5 Verification of Backup Files</text> + <data variable="tw_skip_md5_check"/> + </checkbox> + + <button style="main_button_half_width"> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>Delete Backup</text> + <actions> + <action function="set">tw_back=restore</action> + <action function="set">tw_action=cmd</action> + <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf "%tw_restore_name%"</action> + <action function="set">tw_text1=Delete Backup?</action> + <action function="set">tw_text2=%tw_restore_name%</action> + <action function="set">tw_text4=This cannot be undone!</action> + <action function="set">tw_action_text1=Deleting Backup...</action> + <action function="set">tw_complete_text1=Backup Delete Complete</action> + <action function="set">tw_slider_text=Swipe to Delete</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <slider> + <text>Swipe to Restore</text> + <action function="page">restore_run</action> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">restore</action> + </action> + </page> + + <page name="renamebackup"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Rename Backup</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_backup_rename%</text> + <data name="tw_backup_rename"/> + <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/> + <actions> + <action function="set">tw_back=restore</action> + <action function="set">tw_action=cmd</action> + <action function="set">tw_action_param=cd %tw_backups_folder% && mv "%tw_restore_name%" "%tw_backup_rename%"</action> + <action function="set">tw_text1=Rename Backup?</action> + <action function="set">tw_text2=This cannot be undone!</action> + <action function="set">tw_action_text1=Renaming Backup...</action> + <action function="set">tw_complete_text1=Backup Rename Complete</action> + <action function="set">tw_slider_text=Swipe to Rename</action> + <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action> + <action function="set">tw_existpage=renamebackup</action> + <action function="set">tw_notexistpage=confirm_action</action> + <action function="page">filecheck</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <fill color="%text_fail_color%"> + <condition var1="tw_fileexists" var2="1"/> + <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <text style="text_m_fail"> + <condition var1="tw_fileexists" var2="1"/> + <placement x="%col1_x_left%" y="%row4_y%"/> + <text>A backup with that name already exists!</text> + </text> + + <button style="main_button_half_width_low"> + <placement x="%indent%" y="%row5_y%"/> + <text>Cancel</text> + <action function="page">restore_select</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">restore_select</action> + </action> + </page> + + <page name="restore_run"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_operation% %tw_partition%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <text style="text_m_accent"> + <placement x="%progress_text_x%" y="%progress_text_y%"/> + <text>Progress:</text> + </text> + + <text style="text_m"> + <placement x="%progress_text_x%" y="%row18_y%"/> + <text>%tw_size_progress%</text> + </text> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <actions> + <action function="set">tw_back=restore_select</action> + <action function="set">tw_complete_text1=Restore Complete</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <action function="nandroid">restore</action> + </action> + </page> + + <page name="mount"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Mount</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <partitionlist> + <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/> + <text>Select Partitions to Mount:</text> + <listtype name="mount"/> + </partitionlist> + + <button style="checkbox"> + <condition var1="tw_mount_system_ro" op="=" var2="0"/> + <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/> + <text>Mount system partition read-only</text> + <image resource="checkbox_false"/> + <action function="mountsystemtoggle">1</action> + </button> + + <button style="checkbox"> + <condition var1="tw_mount_system_ro" op="!=" var2="0"/> + <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/> + <text>Mount system partition read-only</text> + <image resource="checkbox_true"/> + <actions> + <action function="set">tw_lifetime_writes=2</action> + <action function="page">system_readonly_check</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_has_usb_storage" var2="1"/> + <placement x="%col1_x_left%" y="%row15a_y%"/> + <text>Mount USB Storage</text> + <action function="page">usb_mount</action> + </button> + + <button style="main_button_half_width"> + <conditions> + <condition var1="tw_is_encrypted" var2="1"/> + <condition var1="tw_is_decrypted" var2="0"/> + </conditions> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>Decrypt Data</text> + <action function="page">decrypt</action> + </button> + + <button style="main_button_half_width"> + <placement x="%center_x%" y="%row15a_y%"/> + <text>Select Storage</text> + <actions> + <action function="set">tw_back=mount</action> + <action function="overlay">select_storage</action> + </actions> + </button> + + <button style="main_button_half_width"> + <conditions> + <condition var1="tw_has_mtp" var2="1"/> + <condition var1="tw_mtp_enabled" var2="0"/> + </conditions> + <placement x="%col2_x_right%" y="%row15a_y%"/> + <text>Enable MTP</text> + <action function="startmtp"/> + </button> + + <button style="main_button_half_width"> + <conditions> + <condition var1="tw_has_mtp" var2="1"/> + <condition var1="tw_mtp_enabled" var2="1"/> + </conditions> + <placement x="%col2_x_right%" y="%row15a_y%"/> + <text>Disable MTP</text> + <action function="stopmtp"/> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="usb_mount"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Mount</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>USB Storage</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>USB Storage Mounted</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>Be sure to safely remove your device</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>from your computer before unmounting!</text> + </text> + + <button style="main_button_half_width"> + <placement x="%col1_x_left%" y="%row15a_y%"/> + <text>Unmount USB-Storage</text> + <action function="page">usb_umount</action> + </button> + + <action> + <action function="mount">usb</action> + <action function="set">tw_busy=1</action> + </action> + </page> + + <page name="usb_umount"> + <action> + <action function="unmount">usb</action> + </action> + + <action> + <action function="page">mount</action> + <action function="set">tw_busy=0</action> + </action> + </page> + + <page name="system_readonly_check"> + <action> + <action function="checkpartitionlifetimewrites">/system</action> + </action> + + <action> + <condition var1="tw_lifetime_writes" var2="1"/> + <actions> + <action function="mountsystemtoggle">0</action> + <action function="page">mount</action> + </actions> + </action> + + <action> + <condition var1="tw_lifetime_writes" var2="0"/> + <actions> + <action function="set">tw_back=mount</action> + <action function="page">system_readonly</action> + </actions> + </action> + </page> + + <page name="reboot"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Reboot Menu</text> + </text> + + <button style="main_button"> + <condition var1="tw_reboot_system" var2="1"/> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>System</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=system</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_reboot_poweroff" var2="1"/> + <placement x="%center_x%" y="%row2_y%"/> + <text>Power Off</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=poweroff</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to power off?</action> + <action function="set">tw_action_text1=Turning Off...</action> + <action function="set">tw_complete_text1=Turning Off...</action> + <action function="set">tw_slider_text=Swipe to Power Off</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_reboot_recovery" var2="1"/> + <placement x="%col1_x_left%" y="%row6a_y%"/> + <text>Recovery</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=recovery</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_reboot_bootloader" var2="1"/> + <placement x="%center_x%" y="%row6a_y%"/> + <text>Bootloader</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=bootloader</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_download_mode" var2="1"/> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>Download</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=download</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="system_readonly"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Unmodified System Partition</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Keep System Read only?</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>TWRP can leave your system partition unmodified to make it easier for you to take official updates.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>TWRP will be unable to prevent the stock ROM from replacing TWRP and will not offer to root your device.</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>Installing zips or performing adb operations may still modify the system partition.</text> + </text> + + <checkbox> + <condition var1="tw_is_encrypted" var2="0"/> + <placement x="%col1_x_left%" y="%row14_y%"/> + <text>Never show this screen during boot again</text> + <data variable="tw_never_show_system_ro_page"/> + </checkbox> + + <button style="main_button_half_width"> + <placement x="%col1_x_left%" y="%row15a_y%"/> + <text>Keep Read Only</text> + <actions> + <action function="mountsystemtoggle">1</action> + <action function="set">tw_page_done=1</action> + <action function="page">%tw_back%</action> + </actions> + </button> + + <slider> + <text>Swipe to Allow Modifications</text> + <actions> + <action function="mountsystemtoggle">0</action> + <action function="set">tw_page_done=1</action> + <action function="page">%tw_back%</action> + </actions> + </slider> + </page> + + <page name="settings"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Settings</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>General Settings</text> + </text> + + <template name="tabs_settings"/> + + <fill color="%text_color%"> + <placement x="0" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/> + </fill> + + <listbox style="scrolllist"> + <placement x="%col1_x_left%" y="%row3a_y%" w="%content_half_width%" h="%listbox_settings_height%"/> + <icon selected="checkbox_true" unselected="checkbox_false"/> + <listitem name="Zip file signature verification"> + <data variable="tw_signed_zip_verify"/> + </listitem> + <listitem name="Use rm -rf instead of formatting"> + <data variable="tw_rm_rf"/> + </listitem> + <listitem name="Skip MD5 generation during backup"> + <data variable="tw_skip_md5_generate"/> + </listitem> + <listitem name="Enable MD5 verification of backup files"> + <data variable="tw_skip_md5_check"/> + </listitem> + <listitem name="Use 24-hour clock"> + <data variable="tw_military_time"/> + </listitem> + <listitem name="Simulate actions for theme testing"> + <data variable="tw_simulate_actions"/> + </listitem> + <listitem name="Simulate failure for actions"> + <condition var1="tw_simulate_actions" var2="1"/> + <data variable="tw_simulate_fail"/> + </listitem> + </listbox> + + <checkbox> + <placement x="%col1_x_right%" y="%row3a_y%"/> + <text>Reversed navbar layout</text> + <data variable="tw_samsung_navbar"/> + </checkbox> + + <button style="radiobutton"> + <condition var1="tw_navbar_button_position" op="!=" var2="0"/> + <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/> + <text>Center navbar buttons</text> + <image resource="radio_false"/> + <action function="set">tw_navbar_button_position=0</action> + </button> + + <button style="radiobutton"> + <condition var1="tw_navbar_button_position" var2="0"/> + <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/> + <text>Center navbar buttons</text> + <image resource="radio_true"/> + <action function="set">tw_navbar_button_position=0</action> + </button> + + <button style="radiobutton"> + <condition var1="tw_navbar_button_position" op="!=" var2="1"/> + <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/> + <text>Left align navbar buttons</text> + <image resource="radio_false"/> + <action function="set">tw_navbar_button_position=1</action> + </button> + + <button style="radiobutton"> + <condition var1="tw_navbar_button_position" var2="1"/> + <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/> + <text>Left align navbar buttons</text> + <image resource="radio_true"/> + <action function="set">tw_navbar_button_position=1</action> + </button> + + <button style="radiobutton"> + <condition var1="tw_navbar_button_position" op="!=" var2="2"/> + <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/> + <text>Right align navbar buttons</text> + <image resource="radio_false"/> + <action function="set">tw_navbar_button_position=2</action> + </button> + + <button style="radiobutton"> + <condition var1="tw_navbar_button_position" var2="2"/> + <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/> + <text>Right align navbar buttons</text> + <image resource="radio_true"/> + <action function="set">tw_navbar_button_position=2</action> + </button> + + <button style="main_button_half_width"> + <placement x="%col2_x_right%" y="%row15a_y%"/> + <text>Restore Defaults</text> + <action function="restoredefaultsettings"/> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="settings_timezone"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Settings</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Time Zone Settings</text> + </text> + + <template name="tabs_settings"/> + + <fill color="%text_color%"> + <placement x="%tab4_col2_x%" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/> + </fill> + + <listbox> + <placement x="%col1_x_left%" y="%row3_y%" w="%content_half_width%" h="%listbox_timezone_height%"/> + <text>Select Time Zone:</text> + <data name="tw_time_zone_guisel"/> + <listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem> + <listitem name="(UTC -10) Hawaii">HST10;HDT</listitem> + <listitem name="(UTC -9) Alaska">AST9;ADT</listitem> + <listitem name="(UTC -8) Pacific Time">PST8;PDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -7) Mountain Time">MST7;MDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -6) Central Time">CST6;CDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -5) Eastern Time">EST5;EDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -4) Atlantic Time">AST4;ADT</listitem> + <listitem name="(UTC -3) Brazil, Buenos Aires">GRNLNDST3;GRNLNDDT</listitem> + <listitem name="(UTC -2) Mid-Atlantic">FALKST2;FALKDT</listitem> + <listitem name="(UTC -1) Azores, Cape Verde">AZOREST1;AZOREDT</listitem> + <listitem name="(UTC 0) London, Dublin, Lisbon">GMT0;BST,M3.5.0,M10.5.0</listitem> + <listitem name="(UTC +1) Berlin, Brussels, Paris">CET-1;CEST,M3.5.0,M10.5.0</listitem> + <listitem name="(UTC +2) Athens, Istanbul, South Africa">WET-2;WET,M3.5.0,M10.5.0</listitem> + <listitem name="(UTC +3) Moscow, Baghdad">SAUST-3;SAUDT</listitem> + <listitem name="(UTC +4) Abu Dhabi, Tbilisi, Muscat">WST-4;WDT</listitem> + <listitem name="(UTC +5) Yekaterinburg, Islamabad">PAKST-5;PAKDT</listitem> + <listitem name="(UTC +6) Almaty, Dhaka, Colombo">TASHST-6;TASHDT</listitem> + <listitem name="(UTC +7) Bangkok, Hanoi, Jakarta">THAIST-7;THAIDT</listitem> + <listitem name="(UTC +8) Beijing, Singapore, Hong Kong">TAIST-8;TAIDT</listitem> + <listitem name="(UTC +9) Tokyo, Seoul, Yakutsk">JST-9;JSTDT</listitem> + <listitem name="(UTC +10) Eastern Australia, Guam">EET-10;EETDT</listitem> + <listitem name="(UTC +11) Vladivostok, Solomon Islands">MET-11;METDT</listitem> + <listitem name="(UTC +12) Auckland, Wellington, Fiji">NZST-12;NZDT</listitem> + </listbox> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row3a_y%"/> + <text>Select Offset (usually 0): %tw_time_zone_guioffset%</text> + </text> + + <button style="button_quarter_width"> + <placement x="%col1_x_right%" y="%row5_y%"/> + <text>None</text> + <action function="set">tw_time_zone_guioffset=0</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col2_x_right%" y="%row5_y%"/> + <text>15</text> + <action function="set">tw_time_zone_guioffset=15</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col3_x_right%" y="%row5_y%"/> + <text>30</text> + <action function="set">tw_time_zone_guioffset=30</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col4_x_right%" y="%row5_y%"/> + <text>45</text> + <action function="set">tw_time_zone_guioffset=45</action> + </button> + + <checkbox> + <placement x="%col1_x_right%" y="%row7_y%"/> + <font resource="font_m" color="%text_color%"/> + <text>Use daylight savings time (DST)</text> + <data variable="tw_time_zone_guidst"/> + <image checked="checkbox_true" unchecked="checkbox_false"/> + </checkbox> + + <text color="%text_color%"> + <font resource="font_m"/> + <placement x="%col1_x_right%" y="%row9_y%"/> + <text>Current Time Zone: %tw_time_zone%</text> + </text> + + <button> + <highlight color="%highlight_color%"/> + <placement x="%col2_x_right%" y="%row15a_y%"/> + <font resource="font_m" color="%text_button_color%"/> + <text>Set Time Zone</text> + <image resource="main_button_half_width"/> + <action function="setguitimezone"/> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="settings_screen"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Settings</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Screen Settings</text> + </text> + + <template name="tabs_settings"/> + + <fill color="%text_color%"> + <placement x="%center_x%" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/> + </fill> + + <button> + <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/> + <font resource="font_m" color="%text_color%"/> + <condition var1="tw_screen_timeout_secs" op="=" var2="0"/> + <condition var1="tw_no_screen_timeout" op="!=" var2="1"/> + <text>Enable screen timeout.</text> + <image resource="checkbox_false"/> + <action function="set">tw_screen_timeout_secs=60</action> + </button> + + <button> + <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/> + <font resource="font_m" color="%text_color%"/> + <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/> + <condition var1="tw_no_screen_timeout" op="!=" var2="1"/> + <text>Enable screen timeout.</text> + <image resource="checkbox_true"/> + <action function="set">tw_screen_timeout_secs=0</action> + </button> + + <slidervalue> + <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/> + <condition var1="tw_no_screen_timeout" op="!=" var2="1"/> + <placement x="col1_x_left" y="%row5_y%" w="%content_width%"/> + <text>Screen timeout in seconds:</text> + <data variable="tw_screen_timeout_secs" min="15" max="300"/> + </slidervalue> + + <slidervalue> + <condition var1="tw_has_brightnesss_file" var2="1"/> + <placement x="col1_x_left" y="%row10_y%" w="%content_width%"/> + <text>Brightness: %tw_brightness_pct%%</text> + <data variable="tw_brightness_pct" min="10" max="100"/> + <actions> + <action function="set">tw_brightness=%tw_brightness_max%</action> + <action function="compute">tw_brightness*%tw_brightness_pct%</action> + <action function="compute">tw_brightness/100</action> + <action function="setbrightness">%tw_brightness%</action> + </actions> + </slidervalue> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="settings_vibration"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Settings</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Vibration Settings</text> + </text> + + <template name="tabs_settings"/> + + <fill color="%text_color%"> + <placement x="%tab4_col4_x%" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/> + </fill> + + <slidervalue> + <placement x="col1_x_left" y="%row4_y%" w="%content_width%"/> + <text>Button Vibration:</text> + <data variable="tw_button_vibrate" min="0" max="300"/> + </slidervalue> + + <slidervalue> + <placement x="col1_x_left" y="%row9_y%" w="%content_width%"/> + <text>Keyboard Vibration:</text> + <data variable="tw_keyboard_vibrate" min="0" max="300"/> + </slidervalue> + + <slidervalue> + <placement x="col1_x_left" y="%row14_y%" w="%content_width%"/> + <text>Action Vibration:</text> + <data variable="tw_action_vibrate" min="0" max="500"/> + </slidervalue> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="advanced"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Advanced</text> + </text> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>Copy Log to SD</text> + <actions> + <action function="set">tw_back=advanced</action> + <action function="set">tw_action=copylog</action> + <action function="set">tw_text1=Copy Log to SD Card?</action> + <action function="set">tw_action_text1=Copying Log to SD Card...</action> + <action function="set">tw_complete_text1=Log Copy Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row2_y%"/> + <text>Fix Permissions</text> + <action function="page">fixperms</action> + </button> + + <button style="main_button"> + <condition var1="tw_allow_partition_sdcard" var2="1"/> + <placement x="%col1_x_left%" y="%row6a_y%"/> + <text>Partition SD Card</text> + <action function="page">partsdcard</action> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row6a_y%"/> + <text>File Manager</text> + <action function="page">filemanagerlist</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>Terminal</text> + <action function="page">terminalfolder</action> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row11_y%"/> + <text>Reload Theme</text> + <action function="reload"/> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row15a_y%"/> + <text>ADB Sideload</text> + <action function="page">sideload</action> + </button> + + <button style="main_button"> + <condition var1="tw_show_dumlock" var2="1"/> + <placement x="%center_x%" y="%row15a_y%"/> + <text>HTC Dumlock</text> + <action function="page">htcdumlock</action> + </button> + + <button style="main_button"> + <condition var1="tw_has_injecttwrp" var2="1"/> + <placement x="%center_x%" y="%row15a_y%"/> + <text>Re-Inject TWRP</text> + <actions> + <action function="set">tw_back=advanced</action> + <action function="set">tw_action=reinjecttwrp</action> + <action function="set">tw_text1=Re-Inject TWRP?</action> + <action function="set">tw_action_text1=Re-Injecting TWRP...</action> + <action function="set">tw_complete_text1=TWRP Injection Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="partsdcard"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Advanced</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Partition SD Card</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>You will lose all files on your SD card!</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>This action cannot be undone!</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>EXT Size:</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>%tw_sdext_size%</text> + </text> + + <button style="button_quarter_width"> + <placement x="%btn4_col3_x_left%" y="%row5_y%"/> + <text>-</text> + <action function="addsubtract">tw_sdext_size-128</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col2_x_right%" y="%row5_y%"/> + <text>+</text> + <action function="addsubtract">tw_sdext_size+128</action> + </button> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row9_y%" placement="5"/> + <text>Swap Size:</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row10_y%" placement="5"/> + <text>%tw_swap_size%</text> + </text> + + <button style="button_quarter_width"> + <placement x="%btn4_col3_x_left%" y="%row9_y%"/> + <text>-</text> + <action function="addsubtract">tw_swap_size-32</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col2_x_right%" y="%row9_y%"/> + <text>+</text> + <action function="addsubtract">tw_swap_size+32</action> + </button> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row13_y%" placement="5"/> + <text>File System:</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row14_y%" placement="5"/> + <text>%tw_sdpart_file_system%</text> + </text> + + <button style="button_quarter_width"> + <placement x="%btn4_col3_x_left%" y="%row13_y%"/> + <text>EXT3</text> + <action function="set">tw_sdpart_file_system=ext3</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col2_x_right%" y="%row13_y%"/> + <text>EXT4</text> + <action function="set">tw_sdpart_file_system=ext4</action> + </button> + + <slider style="slider_centered"> + <text>Swipe to Partition</text> + <action function="page">partsdcardaction</action> + <actions> + <action function="set">tw_back=partsdcard</action> + <action function="set">tw_action=partitionsd</action> + <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_action_text1=Partitioning SD Card...</action> + <action function="set">tw_action_text2=This will take a few minutes.</action> + <action function="set">tw_complete_text1=Partitioning Complete</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="htcdumlock"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Advanced</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>HTC Dumlock</text> + </text> + + <button style="main_button_m"> + <placement x="%col2_x_left%" y="%row2_y%"/> + <text>Restore Original Boot</text> + <actions> + <action function="set">tw_back=htcdumlock</action> + <action function="set">tw_action=htcdumlockrestoreboot</action> + <action function="set">tw_text1=Restore original boot image?</action> + <action function="set">tw_action_text1=Restoring Original Boot...</action> + <action function="set">tw_complete_text1=Restore Original Boot Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_m"> + <placement x="%col2_x_left%" y="%row6a_y%"/> + <text>Reflash Recovery</text> + <actions> + <action function="set">tw_back=htcdumlock</action> + <action function="set">tw_action=htcdumlockreflashrecovery</action> + <action function="set">tw_text1=Reflash recovery to boot?</action> + <action function="set">tw_action_text1=Flashing recovery to boot...</action> + <action function="set">tw_complete_text1=Recovery Flash to Boot Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_m"> + <placement x="%col2_x_left%" y="%row11_y%"/> + <text>Install HTC Dumlock</text> + <actions> + <action function="set">tw_back=htcdumlock</action> + <action function="set">tw_action=installhtcdumlock</action> + <action function="set">tw_text1=Install HTC dumlock files to ROM?</action> + <action function="set">tw_action_text1=Installing HTC Dumlock...</action> + <action function="set">tw_complete_text1=HTC Dumlock Install Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="lock"> + <background color="%semi_transparent%"/> + + <image> + <image resource="unlock_icon"/> + <placement x="%center_x%" y="%row8_y%" placement="4"/> + </image> + + <slider style="slider_centered"> + <text>Swipe to Unlock</text> + <action function="overlay"/> + </slider> + </page> + + <page name="filemanagerlist"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Select a File or Folder</text> + </text> + + <template name="sort_options"/> + + <fileselector> + <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/> + <text>%tw_file_location1%</text> + <filter folders="1" files="1"/> + <path name="tw_file_location1" default="/"/> + <data name="tw_filename1"/> + <selection name="tw_selection1"/> + </fileselector> + + <button style="main_button_half_width_low"> + <placement x="%col_button_right%" y="%row16a_y%"/> + <text>Select current Folder</text> + <actions> + <action function="set">tw_filename1=tw_file_location1</action> + <action function="set">tw_fm_isfolder=1</action> + <action function="set">tw_fm_type=Folder</action> + <action function="page">filemanageroptions</action> + </actions> + </button> + + <action> + <actions> + <action function="set">tw_fm_type=File</action> + <action function="set">tw_fm_isfolder=0</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + + <action> + <condition var1="tw_filename1" op="modified"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanageroptions"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Choose Action</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>%tw_fm_type% selected:</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row3_y%"/> + <text>%tw_filename1%</text> + </text> + + <button style="main_button_half_width"> + <condition var1="tw_fm_isfolder" var2="0"/> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>Copy File</text> + <actions> + <action function="set">tw_filemanager_command=cp</action> + <action function="set">tw_fm_text1=Copying</action> + <action function="page">choosedestinationfolder</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_fm_isfolder" var2="1"/> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>Copy Folder</text> + <actions> + <action function="set">tw_filemanager_command=cd "%tw_file_location1%" && cd .. && cp -R</action> + <action function="set">tw_fm_text1=Copying</action> + <action function="page">choosedestinationfolder</action> + </actions> + </button> + + <button style="main_button_half_width"> + <placement x="%col2_x_left%" y="%row11_y%"/> + <text>Move</text> + <actions> + <action function="set">tw_filemanager_command=mv</action> + <action function="set">tw_fm_text1=Moving</action> + <action function="page">choosedestinationfolder</action> + </actions> + </button> + + <button style="main_button_half_width"> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>chmod 755</text> + <actions> + <action function="set">tw_filemanager_command=chmod 755</action> + <action function="set">tw_fm_text1=chmod 755</action> + <action function="set">tw_fm_text2=</action> + <action function="set">tw_fm_text3=</action> + <action function="set">tw_include_text3=0</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </button> + + <button style="main_button_half_width"> + <placement x="%center_x%" y="%row15a_y%"/> + <text>chmod</text> + <actions> + <action function="set">tw_filemanager_rename=0000</action> + <action function="set">tw_fm_text2=</action> + <action function="set">tw_fm_text3=</action> + <action function="set">tw_include_text3=0</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerchmod</action> + </actions> + </button> + + <button style="main_button_half_width"> + <placement x="%col2_x_right%" y="%row11_y%"/> + <text>Delete</text> + <actions> + <action function="set">tw_filemanager_command=rm -rf</action> + <action function="set">tw_fm_text1=Deleting</action> + <action function="set">tw_fm_text2=</action> + <action function="set">tw_fm_text3=</action> + <action function="set">tw_include_text3=0</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_fm_isfolder" var2="0"/> + <placement x="%center_x%" y="%row11_y%"/> + <text>Rename File</text> + <actions> + <action function="set">tw_filemanager_rename=tw_selection1</action> + <action function="set">tw_fm_text1=Renaming</action> + <action function="set">tw_filemanager_command=mv</action> + <action function="page">filemanagerrenamefile</action> + </actions> + </button> + + <button style="main_button_half_width"> + <condition var1="tw_fm_isfolder" var2="1"/> + <placement x="%center_x%" y="%row11_y%"/> + <text>Rename Folder</text> + <actions> + <action function="set">tw_filemanager_rename=tw_selection1</action> + <action function="set">tw_fm_text1=Renaming</action> + <action function="set">tw_filemanager_command=cd "%tw_file_location1%" && cd .. && mv</action> + <action function="page">filemanagerrenamefolder</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanagerlist</action> + </action> + </page> + + <page name="choosedestinationfolder"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Select Destination Folder</text> + </text> + + <template name="sort_options"/> + + <fileselector> + <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/> + <text>%tw_file_location2%</text> + <filter folders="1" files="0"/> + <path name="tw_file_location2" default="/"/> + <data name="tw_filename2"/> + <selection name="tw_selection2"/> + </fileselector> + + <button style="main_button_half_width_low"> + <placement x="%col_button_right%" y="%row16a_y%"/> + <text>Select current Folder</text> + <actions> + <action function="set">tw_fm_text2=to</action> + <action function="set">tw_fm_text3=%tw_file_location2%</action> + <action function="set">tw_include_text3=1</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerrenamefile"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Rename %tw_fm_type%</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_filemanager_rename%</text> + <data name="tw_filemanager_rename"/> + <restrict minlen="1" maxlen="128"/> + <actions> + <action function="set">tw_fm_text2=to</action> + <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action> + <action function="set">tw_include_text3=1</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button style="main_button_half_width_low"> + <placement x="%indent%" y="%row5_y%"/> + <text>Cancel</text> + <action function="page">filemanageroptions</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerrenamefolder"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Rename %tw_fm_type%</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_filemanager_rename%</text> + <data name="tw_filemanager_rename"/> + <restrict minlen="1" maxlen="128"/> + <actions> + <action function="set">tw_fm_text2=to</action> + <action function="set">tw_fm_text3=%tw_filemanager_rename%</action> + <action function="set">tw_include_text3=1</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button style="main_button_half_width_low"> + <placement x="%indent%" y="%row5_y%"/> + <text>Cancel</text> + <action function="page">filemanageroptions</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerchmod"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Set Permissions</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>Permissions:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_filemanager_rename%</text> + <data name="tw_filemanager_rename"/> + <restrict minlen="3" maxlen="4" allow="0123456789"/> + <actions> + <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action> + <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button style="main_button_half_width_low"> + <placement x="%indent%" y="%row5_y%"/> + <text>Cancel</text> + <action function="page">filemanageroptions</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerconfirm"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Confirm Action</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>%tw_fm_text1%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>%tw_filename1%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>%tw_fm_text2%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>%tw_fm_text3%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row8_y%" placement="5"/> + <text>Press back button to cancel.</text> + </text> + + <slider style="slider_centered"> + <text>Swipe to Confirm</text> + <action function="page">filemanageraction</action> + </slider> + + <action> + <touch key="back"/> + <action function="page">%tw_back%</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="filemanageraction"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_fm_text1%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" var2="0"/> + </conditions> + <actions> + <action function="set">tw_back=filemanagerlist</action> + <action function="set">tw_complete_text1=File Operation Complete</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="!=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_complete_text1=File Operation Complete</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <condition var1="tw_include_text3" var2="0"/> + <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action> + </action> + + <action> + <condition var1="tw_include_text3" var2="1"/> + <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action> + </action> + </page> + + <page name="decrypt"> + <template name="page"/> + + <action> + <condition var1="tw_crypto_pwtype" var2="2"/> + <action function="page">decrypt_pattern</action> + </action> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Mount</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Decrypt Data</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Enter Password:</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>Password failed, please try again!</text> + </text> + + <button style="main_button_half_width_low"> + <placement x="%indent%" y="%row6_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">main</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + </page> + + <page name="decrypt_pattern"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Mount</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Decrypt Data</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Enter Pattern:</text> + </text> + + <patternpassword> + <placement x="%pattern_x%" y="%row4_y%" w="%pattern_size%" h="%pattern_size%"/> + <size name="tw_pattern_grid_size" default="3"/> + <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/> + <line color="%fileselector_linecolor%" width="%pattern_line_w%"/> + <data name="tw_crypto_password"/> + <action function="page">trydecrypt</action> + </patternpassword> + + <button style="main_button_half_width"> + <placement x="%col2_x_right%" y="%row15a_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">main</action> + </actions> + </button> + </page> + + <page name="trydecrypt"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Mount</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Decrypt Data - Trying Decryption</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <action function="decrypt"/> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="!=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_password_fail=1</action> + <action function="page">decrypt</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">main</action> + </actions> + </action> + </page> + + <page name="terminalfolder"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Terminal Command</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Browse to Starting Folder</text> + </text> + + <template name="sort_options"/> + + <fileselector> + <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/> + <text>%tw_terminal_location%</text> + <filter folders="1" files="0"/> + <path name="tw_terminal_location" default="/"/> + <data name="tw_terminal"/> + <selection name="tw_terminal_selection"/> + </fileselector> + + <button style="main_button_half_width_low"> + <placement x="%col_button_right%" y="%row16a_y%"/> + <text>Select current Folder</text> + <action function="page">terminalcommand</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="terminalcommand"> + <template name="page"/> + + <fill color="%background_color%"> + <placement x="0" y="%status_height%" w="%screen_width%" h="%header_height%"/> + </fill> + + <template name="console_terminal"/> + + <input> + <placement x="%col1_x_left%" y="%row8_y%" w="%content_quarter_width%" h="%input_height%"/> + <text>%tw_terminal_command%</text> + <data name="tw_terminal_command"/> + <restrict minlen="1"/> + <action function="terminalcommand">%tw_terminal_command%</action> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row9_y" w="%content_quarter_width%" h="input_line_width" placement="1"/> + </fill> + + <button> + <condition var1="tw_terminal_state" var2="1"/> + <highlight color="%highlight_color%"/> + <placement x="%btn4_col4_x_right%" y="%row7a_y%"/> + <font resource="font_m" color="%text_button_color%"/> + <text>Kill</text> + <image resource="tab_4"/> + <action function="killterminal"/> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">terminalfolder</action> + </action> + </page> + + <page name="sideload"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Advanced</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>ADB Sideload</text> + </text> + + <checkbox> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>Wipe Dalvik Cache</text> + <data variable="tw_wipe_dalvik"/> + </checkbox> + + <checkbox> + <placement x="%col1_x_left%" y="%row3a_y%"/> + <text>Wipe Cache</text> + <data variable="tw_wipe_cache"/> + </checkbox> + + <slider style="slider_centered"> + <text>Swipe to start Sideload</text> + <action function="page">partsdcardaction</action> + <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_show_reboot=1</action> + <action function="set">tw_cancel_action=adbsideloadcancel</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="fixperms"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Advanced</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Fix Permissions</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Note: Fixing permissions is rarely needed.</text> + </text> + + <checkbox> + <placement x="%col2_x_left%" y="%row4_y%"/> + <text>Also fix SELinux Contexts</text> + <data variable="tw_fixperms_restorecon"/> + </checkbox> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>Fixing SELinux Contexts may cause</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row7_y%" placement="5"/> + <text>your device to not boot properly.</text> + </text> + + <slider style="slider_centered"> + <text>Swipe to Fix Permissions</text> + <actions> + <action function="set">tw_back=advanced</action> + <action function="set">tw_action=fixpermissions</action> + <action function="set">tw_action_text1=Fixing Permissions...</action> + <action function="set">tw_complete_text1=Fix Permissions Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="installsu"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Reboot</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>SuperSU Check</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Your device does not appear to be rooted.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>Install SuperSU now?</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>This will root your device.</text> + </text> + + <button style="main_button_half_width"> + <placement x="%col2_x_left%" y="%row15a_y%"/> + <text>Do not Install</text> + <action function="set">tw_page_done=1</action> + </button> + + <slider> + <text>Swipe to Install</text> + <actions> + <action function="set">tw_action=installsu</action> + <action function="set">tw_action_text1=Installing SuperSU</action> + <action function="set">tw_action_text2=</action> + <action function="page">singleaction_page</action> + </actions> + </slider> + </page> + + <page name="slideout"> + <fill color="%background_color%"> + <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/> + </fill> + + <console> + <placement x="%col1_x_left%" y="%slideout_y%" w="%content_width%" h="%slideout_height%"/> + </console> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/> + <action function="overlay"/> + </button> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + + <page name="select_storage"> + <fill color="%semi_transparent%"> + <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/> + </fill> + + <fill color="%background_color%"> + <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/> + </fill> + + <partitionlist style="partitionlist_storage"> + <text>Select Storage</text> + <data name="tw_storage_path"/> + <listtype name="storage"/> + </partitionlist> + + <button style="button_third_width"> + <placement x="%dialog_button_x%" y="%row13_y%"/> + <text>OK</text> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="overlay"/> + <action function="page">clear_vars</action> + </actions> + </button> + + <fill color="#000000"> + <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/> + </fill> + + <button> + <condition var1="tw_samsung_navbar" op="!=" var2="1"/> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="back"/> + <condition var1="tw_busy" var2="0"/> + <actions> + <action function="overlay"/> + <action function="key">%tw_back%</action> + </actions> + </button> + + <button> + <condition var1="tw_samsung_navbar" op="=" var2="1"/> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="console"/> + <condition var1="tw_busy" var2="0"/> + <action function="overlay">slideout</action> + </button> + + <button> + <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="home"/> + <condition var1="tw_busy" var2="0"/> + <actions> + <action function="overlay"/> + <action function="key">home</action> + </actions> + </button> + + <button> + <condition var1="tw_samsung_navbar" op="!=" var2="1"/> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="console"/> + <condition var1="tw_busy" var2="0"/> + <action function="overlay">slideout</action> + </button> + + <button> + <condition var1="tw_samsung_navbar" op="=" var2="1"/> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="back"/> + <condition var1="tw_busy" var2="0"/> + <actions> + <action function="overlay"/> + <action function="key">%tw_back%</action> + </actions> + </button> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + </pages> +</recovery> diff --git a/gui/theme/common/portrait.xml b/gui/theme/common/portrait.xml new file mode 100644 index 000000000..dc9bea208 --- /dev/null +++ b/gui/theme/common/portrait.xml @@ -0,0 +1,4357 @@ +<?xml version="1.0"?> +<recovery> + <styles> + <style name="text_l"> + <font resource="font_l" color="%text_color%"/> + </style> + + <style name="text_m"> + <font resource="font_m" color="%text_color%"/> + </style> + + <style name="text_m_accent"> + <font resource="font_m" color="%accent_color%"/> + </style> + + <style name="text_m_fail"> + <font resource="font_m" color="%text_fail_color%"/> + </style> + + <style name="text_s"> + <font resource="font_s" color="%text_color%"/> + </style> + + <style name="input"> + <background color="%background_color%"/> + <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/> + <font resource="font_m" color="%text_color%"/> + </style> + + <style name="checkbox"> + <font resource="font_m" color="%text_color%"/> + <image checked="checkbox_true" unchecked="checkbox_false"/> + </style> + + <style name="main_button"> + <highlight color="%highlight_color%"/> + <font resource="font_l" color="%text_button_color%"/> + <image resource="main_button"/> + </style> + + <style name="main_button_half_height"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="main_button_half_height"/> + </style> + + <style name="main_button_half_height_full_width"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="main_button_half_height_full_width"/> + </style> + + <style name="button_third_width"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="tab_3"/> + </style> + + <style name="button_quarter_width"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="tab_4"/> + </style> + + <style name="fab"> + <highlight color="%highlight_color%"/> + <placement x="%indent_right%" y="%row21a_y%" placement="1"/> + <font resource="font_m" color="%button_text_color%"/> + </style> + + <style name="tab"> + <highlight color="%highlight_color%"/> + <fill color="%accent_color%"/> + <font resource="font_s" color="%text_button_color%"/> + </style> + + <style name="console"> + <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/> + <font resource="fixed"/> + </style> + + <style name="fileselector"> + <highlight color="%fileselector_highlight_color%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <sort name="tw_gui_sort_order"/> + <icon folder="folder" file="file"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/> + </style> + + <style name="listbox"> + <highlight color="%fileselector_highlight_color%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <icon selected="radio_true" unselected="radio_false"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/> + </style> + + <style name="scrolllist"> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/> + </style> + + <style name="partitionlist"> + <highlight color="%fileselector_highlight_color%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/> + <icon selected="checkbox_true" unselected="checkbox_false"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/> + </style> + + <style name="partitionlist_storage"> + <highlight color="%fileselector_highlight_color%"/> + <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/> + <icon selected="radio_true" unselected="radio_false"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/> + </style> + + <style name="slider"> + <placement x="%center_x%" y="%row23_y%"/> + <font resource="font_s" color="%text_color%"/> + <resource base="slider" used="slider_used" touch="slider_touch"/> + </style> + + <style name="slidervalue"> + <resource handle="handle"/> + <font resource="font_m" color="%text_color%"/> + <colors line="%fileselector_linecolor%"/> + <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/> + </style> + </styles> + + <pages> + <page name="main"> + <action> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="main2"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Team Win Recovery Project</text> + </text> + + <text style="text_m"> + <condition var1="tw_no_cpu_temp" var2="0"/> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_version%</text> + </text> + + <button style="main_button"> + <placement x="%indent%" y="%row2a_y%"/> + <text>Install</text> + <actions> + <action function="queueclear"/> + <action function="set">tw_selectimage=0</action> + <action function="page">install</action> + </actions> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row2a_y%"/> + <text>Wipe</text> + <action function="page">wipe</action> + </button> + + <button style="main_button"> + <placement x="%indent%" y="%row8_y%"/> + <text>Backup</text> + <action function="page">backup</action> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row8_y%"/> + <text>Restore</text> + <action function="page">restore</action> + </button> + + <button style="main_button"> + <placement x="%indent%" y="%row13a_y%"/> + <text>Mount</text> + <action function="page">mount</action> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row13a_y%"/> + <text>Settings</text> + <action function="page">settings</action> + </button> + + <button style="main_button"> + <placement x="%indent%" y="%row19_y%"/> + <text>Advanced</text> + <action function="page">advanced</action> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row19_y%"/> + <text>Reboot</text> + <action function="page">reboot</action> + </button> + </page> + + <page name="install"> + <template name="page"/> + + <text style="text_l"> + <condition var1="tw_selectimage" var2="0"/> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Zip</text> + </text> + + <text style="text_l"> + <condition var1="tw_selectimage" var2="1"/> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Image</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <template name="sort_options"/> + + <fileselector> + <condition var1="tw_selectimage" var2="0"/> + <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/> + <text>%tw_zip_location%</text> + <filter extn=".zip" folders="1" files="1"/> + <path name="tw_zip_location" default="/sdcard"/> + <data name="tw_filename"/> + <selection name="tw_file"/> + </fileselector> + + <fileselector> + <condition var1="tw_selectimage" var2="1"/> + <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/> + <text>%tw_zip_location%</text> + <filter extn=".img" folders="1" files="1"/> + <path name="tw_zip_location" default="/sdcard"/> + <data name="tw_filename"/> + <selection name="tw_file"/> + </fileselector> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row21a_y%"/> + <text>Select Storage</text> + <actions> + <action function="set">tw_back=install</action> + <action function="overlay">select_storage</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_selectimage" var2="0"/> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Install Image</text> + <actions> + <action function="set">tw_selectimage=1</action> + <action function="page">install</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_selectimage" var2="1"/> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Install Zip</text> + <actions> + <action function="set">tw_selectimage=0</action> + <action function="page">install</action> + </actions> + </button> + + <action> + <conditions> + <condition var1="tw_selectimage" var2="0"/> + <condition var1="tw_filename" op="modified"/> + </conditions> + <actions> + <action function="queuezip"/> + <action function="page">flash_confirm</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_selectimage" var2="1"/> + <condition var1="tw_filename" op="modified"/> + </conditions> + <action function="page">flashimage_confirm</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="flash_confirm"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Zip</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_zip_queue_count% of max of 10 Files queued</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>This operation may install incompatible</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>software and render your device unusable.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>Press back to cancel adding this zip.</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row7_y%"/> + <text>Folder:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row8_y%"/> + <text>%tw_zip_location%</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row9a_y%"/> + <text>File:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row10a_y%"/> + <text>%tw_file%</text> + </text> + + <checkbox> + <placement x="%indent%" y="%row12_y%"/> + <text>Zip file signature verification</text> + <data variable="tw_signed_zip_verify"/> + </checkbox> + + <checkbox> + <condition var1="tw_has_injecttwrp" var2="1"/> + <placement x="%indent%" y="%row13_y%"/> + <text>Inject TWRP after install</text> + <data variable="tw_inject_after_zip"/> + </checkbox> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row18a_y%"/> + <text>Add more Zips</text> + <action function="page">install</action> + </button> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row18a_y%"/> + <text>Clear Zip Queue</text> + <actions> + <action function="queueclear"/> + <action function="page">install</action> + </actions> + </button> + + <slider> + <text>Swipe to confirm Flash</text> + <action function="flash">flash_zip</action> + </slider> + + <action> + <touch key="back"/> + <actions> + <action function="cancelzip"/> + <action function="page">install</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="flash_zip"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Zip %tw_zip_index% of %tw_zip_queue_count%</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_file%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <action function="page">flash_done</action> + </action> + </page> + + <page name="flash_done"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Zip</text> + </text> + + <text style="text_m_fail"> + <condition var1="tw_operation_status" op="!=" var2="0"/> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Failed</text> + </text> + + <text style="text_m"> + <condition var1="tw_operation_status" var2="0"/> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Successful</text> + </text> + + <template name="console"/> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row21a_y%"/> + <text>Wipe cache/dalvik</text> + <actions> + <action function="set">tw_back=flash_done</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=/cache</action> + <action function="set">tw_has_action2=1</action> + <action function="set">tw_action2=wipe</action> + <action function="set">tw_action2_param=dalvik</action> + <action function="set">tw_text1=Wipe Cache & Dalvik?</action> + <action function="set">tw_action_text1=Wiping Cache & Dalvik...</action> + <action function="set">tw_complete_text1=Cache & Dalvik Wipe Complete</action> + <action function="set">tw_slider_text=Swipe to Wipe</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Reboot System</text> + <actions> + <action function="set">tw_back=main2</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=system</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_text3=</action> + <action function="set">tw_text4=</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=install</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="flashimage_confirm"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Install Image</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Select Target Partition</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row2_y%"/> + <text>Folder:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row3_y%"/> + <text>%tw_zip_location%</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row4a_y%"/> + <text>File:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row5a_y%"/> + <text>%tw_file%</text> + </text> + + <partitionlist> + <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/> + <icon selected="radio_true" unselected="radio_false"/> + <text>Select Partition to Flash Image:</text> + <data name="tw_flash_partition"/> + <listtype name="flashimg"/> + </partitionlist> + + <slider> + <text>Swipe to confirm Flash</text> + <actions> + <action function="set">tw_back=flashimage_confirm</action> + <action function="set">tw_action=flashimage</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_action_text1=Flashing Image...</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_complete_text1=Image Flashed</action> + <action function="page">action_page</action> + </actions> + <action function="flashimage"/> + </slider> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=install</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="clear_vars"> + <action> + <action function="set">tw_operation_state=0</action> + <action function="set">tw_text1=</action> + <action function="set">tw_text2=</action> + <action function="set">tw_text3=</action> + <action function="set">tw_text4=</action> + <action function="set">tw_action_text1=</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_action_param=</action> + <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="set">tw_show_exclamation=0</action> + <action function="set">tw_show_reboot=0</action> + <action function="page">%tw_clear_destination%</action> + </action> + </page> + + <page name="confirm_action"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Confirm Action</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text/> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>%tw_text1%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>%tw_text2%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>%tw_text3%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>%tw_text4%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row7_y%" placement="5"/> + <text>Press back button to cancel.</text> + </text> + + <slider> + <text>%tw_slider_text%</text> + <action function="page">action_page</action> + </slider> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="action_page"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>%tw_action_text1%</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_action_text2%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <button style="main_button_half_height"> + <condition var1="tw_has_cancel" var2="1"/> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Cancel</text> + <action function="%tw_cancel_action%">%tw_cancel_param%</action> + </button> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <actions> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="0"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="1"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + <action function="%tw_action2%">%tw_action2_param%</action> + </actions> + </action> + </page> + + <page name="singleaction_page"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>%tw_action_text1%</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_action_text2%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <actions> + <action function="set">tw_page_done=1</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="0"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="1"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + <action function="%tw_action2%">%tw_action2_param%</action> + </actions> + </action> + </page> + + <page name="action_complete"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>%tw_complete_text1%</text> + </text> + + <text style="text_m_fail"> + <condition var1="tw_operation_status" op="!=" var2="0"/> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Failed</text> + </text> + + <text style="text_m"> + <condition var1="tw_operation_status" var2="0"/> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Successful</text> + </text> + + <template name="console"/> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row21a_y%"/> + <text>Back</text> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="page">clear_vars</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Reboot System</text> + <actions> + <action function="set">tw_back=main2</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=system</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_text3=</action> + <action function="set">tw_text4=</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="filecheck"> + <action> + <action function="fileexists">%tw_filecheck%</action> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" var2="0"/> + </conditions> + <actions> + <action function="set">tw_fileexists=1</action> + <action function="page">%tw_existpage%</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" var2="1"/> + </conditions> + <actions> + <action function="set">tw_fileexists=0</action> + <action function="page">%tw_notexistpage%</action> + </actions> + </action> + </page> + + <page name="rebootcheck"> + <action> + <condition var1="tw_backup_system_size" op=">=" var2="%tw_min_system%"/> + <action function="reboot">%tw_action_param%</action> + </action> + + <action> + <condition var1="tw_backup_system_size" op="<" var2="%tw_min_system%"/> + <action function="page">confirm_action</action> + </action> + </page> + + <page name="wipe"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Wipe</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Factory Reset</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Wipes Data, Cache, and Dalvik</text> + </text> + + <text style="text_m_accent"> + <condition var1="tw_has_data_media" var2="1"/> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>(not including internal storage)</text> + </text> + + <text style="text_m_accent"> + <conditions> + <condition var1="tw_has_android_secure" var2="1"/> + <condition var1="fileexists" var2="/and-sec"/> + </conditions> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>Android Secure</text> + </text> + + <text style="text_m_accent"> + <condition var1="tw_has_sdext_partition" var2="1"/> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>SD-EXT</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row7_y%" placement="5"/> + <text>Most of the time this is</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row8_y%" placement="5"/> + <text>the only wipe that you need.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row10_y%" placement="5"/> + <text>Press back button to cancel.</text> + </text> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row18a_y%"/> + <text>Advanced Wipe</text> + <actions> + <action function="set">partitionlisterror=0</action> + <action function="page">advancedwipe</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_has_data_media" var2="1"/> + <placement x="%center_x%" y="%row18a_y%"/> + <text>Format Data</text> + <action function="page">formatdata</action> + </button> + + <button style="main_button_half_height"> + <conditions> + <condition var1="tw_is_encrypted" var2="1"/> + <condition var1="tw_has_data_media" var2="0"/> + </conditions> + <placement x="%center_x%" y="%row18a_y%"/> + <text>Wipe Encryption</text> + <actions> + <action function="set">tw_back=wipe</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=DATAMEDIA</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Wipe Encryption from Data?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting Data...</action> + <action function="set">tw_complete_text1=Data Format Complete</action> + <action function="set">tw_slider_text=Swipe to Format Data</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <slider> + <text>Swipe to Factory Reset</text> + <actions> + <action function="set">tw_back=wipe</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=data</action> + <action function="set">tw_action_text1=Factory Reset...</action> + <action function="set">tw_complete_text1=Factory Reset Complete</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="advancedwipe"> + <template name="page"/> + + <action> + <action function="set">tw_wipe_list=</action> + </action> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Wipe</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Advanced Wipe</text> + </text> + + <partitionlist> + <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/> + <text>Select Partitions to Wipe:</text> + <data name="tw_wipe_list"/> + <listtype name="wipe"/> + </partitionlist> + + <text style="text_m_fail"> + <condition var1="partitionlisterror" var2="1"/> + <placement x="%center_x%" y="%row17_y%" placement="5"/> + <text>Invalid partition selection</text> + </text> + + <button style="main_button_half_height_full_width"> + <placement x="%indent%" y="%row18a_y%"/> + <text>Repair or Change File System</text> + <actions> + <action function="checkpartitionlist"/> + <action function="page">checkpartitionlist</action> + </actions> + </button> + + <slider> + <text>Swipe to Wipe</text> + <actions> + <action function="set">tw_back=advancedwipe</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=LIST</action> + <action function="set">tw_text1=Wipe Selected Partition(s)?</action> + <action function="set">tw_action_text1=Wiping Partition(s)...</action> + <action function="set">tw_complete_text1=Wipe Complete</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">wipe</action> + </action> + </page> + + <page name="formatdata"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Wipe</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Format Data</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Format Data will wipe all of your apps,</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>backups, pictures, videos, media, and</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>removes encryption on internal storage.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>This cannot be undone. Press back to cancel.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row8_y%" placement="5"/> + <text>Type yes to continue.</text> + </text> + + <input> + <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_confirm_formatdata%</text> + <data name="tw_confirm_formatdata"/> + <restrict minlen="3" maxlen="3" allow="yes"/> + <action function="page">formatdata_confirm</action> + </input> + + <fill color="%accent_color%"> + <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/> + </fill> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">wipe</action> + </action> + </page> + + <page name="formatdata_confirm"> + <action> + <condition var1="tw_confirm_formatdata" op="=" var2="yes"/> + <actions> + <action function="set">tw_back=formatdata</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=DATAMEDIA</action> + <action function="set">tw_action_text1=Formatting Data...</action> + <action function="set">tw_complete_text1=Data Format Complete</action> + <action function="page">action_page</action> + </actions> + </action> + + <action> + <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/> + <action function="page">formatdata</action> + </action> + </page> + + <page name="checkpartitionlist"> + <action> + <condition var1="tw_check_partition_list" op="=" var2="1"/> + <actions> + <action function="set">partitionlisterror=0</action> + <action function="getpartitiondetails"/> + <action function="page">partitionoptions</action> + </actions> + </action> + + <action> + <condition var1="tw_check_partition_list" op="!=" var2="1"/> + <actions> + <action function="set">partitionlisterror=1</action> + <action function="set">tw_wipe_list=</action> + <action function="page">advancedwipe</action> + </actions> + </action> + </page> + + <page name="partitionoptions"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Wipe</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Partition Options for: %tw_partition_name%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Mount Point: %tw_partition_mount_point%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>Current file system: %tw_partition_file_system%</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_is_present" var2="1"/> + <placement x="%indent%" y="%row5_y%"/> + <text>Present: Yes</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_is_present" var2="0"/> + <placement x="%indent%" y="%row5_y%"/> + <text>Present: No</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_removable" var2="1"/> + <placement x="%center_x%" y="%row5_y%"/> + <text>Removable: Yes</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_removable" var2="0"/> + <placement x="%center_x%" y="%row5_y%"/> + <text>Removable: No</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row7_y%"/> + <text>Size: %tw_partition_size%MB</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row7_y%"/> + <text>Used: %tw_partition_used%MB</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row9_y%"/> + <text>Free: %tw_partition_free%MB</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row9_y%"/> + <text>Backup Size: %tw_partition_backup_size%MB</text> + </text> + + <button style="main_button_half_height"> + <condition var1="tw_partition_can_resize" op="=" var2="1"/> + <placement x="%indent%" y="%row18a_y%"/> + <text>Resize File System</text> + <actions> + <action function="set">tw_back=partitionoptions</action> + <action function="set">tw_action=resize</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_has_action2=1</action> + <action function="set">tw_action2=getpartitiondetails</action> + <action function="set">tw_text1=Resize %tw_partition_name%?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Resizing...</action> + <action function="set">tw_complete_text1=Resize Complete</action> + <action function="set">tw_slider_text=Swipe to Resize</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_partition_can_repair" op="=" var2="1"/> + <placement x="%indent%" y="%row21a_y%"/> + <text>Repair File System</text> + <actions> + <action function="set">tw_back=partitionoptions</action> + <action function="set">tw_action=repair</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Repair %tw_partition_name%?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Repairing...</action> + <action function="set">tw_complete_text1=Repair Complete</action> + <action function="set">tw_slider_text=Swipe to Repair</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Change File System</text> + <action function="page">selectfilesystem</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advancedwipe</action> + </action> + </page> + + <page name="refreshfilesystem"> + <action> + <condition var1="tw_check_partition_list" op="=" var2="1"/> + <actions> + <action function="set">partitionlisterror=0</action> + <action function="getpartitiondetails"/> + <action function="page">selectfilesystem</action> + </actions> + </action> + + <action> + <condition var1="tw_check_partition_list" op="!=" var2="1"/> + <actions> + <action function="set">partitionlisterror=1</action> + <action function="set">tw_wipe_list=</action> + <action function="page">advancedwipe</action> + </actions> + </action> + </page> + + <page name="selectfilesystem"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Wipe</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Change File System for: %tw_partition_name%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Mount Point: %tw_partition_mount_point%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>Current file system: %tw_partition_file_system%</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>Some ROMs or kernels may not support some</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>file systems. Proceed with caution!</text> + </text> + + <button style="main_button_half_height"> + <condition var1="tw_partition_ext" op="=" var2="1"/> + <placement x="%indent%" y="%row15a_y%"/> + <text>EXT2</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=ext2</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to EXT2?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_partition_ext" op="=" var2="1"/> + <placement x="%indent%" y="%row18a_y%"/> + <text>EXT3</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=ext3</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to EXT3?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_partition_ext" op="=" var2="1"/> + <placement x="%indent%" y="%row21a_y%"/> + <text>EXT4</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=ext4</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to EXT4?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_partition_vfat" op="=" var2="1"/> + <placement x="%center_x%" y="%row15a_y%"/> + <text>FAT</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=vfat</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to FAT?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_partition_exfat" op="=" var2="1"/> + <placement x="%center_x%" y="%row18a_y%"/> + <text>exFAT</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=exfat</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to exFAT?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_partition_f2fs" op="=" var2="1"/> + <placement x="%center_x%" y="%row21a_y%"/> + <text>F2FS</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=f2fs</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to F2FS?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text=Swipe to Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">partitionoptions</action> + </action> + </page> + + <page name="backup"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Backup</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <template name="tabs_backup"/> + + <fill color="%text_color%"> + <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/> + </fill> + + <button style="tab"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="0"/> + </conditions> + <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/> + <text>ENCRYPTION</text> + <font resource="font_s" color="%text_color%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <button style="tab"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="1"/> + </conditions> + <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/> + <text>ENCRYPTION</text> + <font resource="font_s" color="%text_success_color%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row3a_y%"/> + <text>Name:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row4a_y%"/> + <text>%tw_backup_name%</text> + </text> + + <fill color="%fileselector_linecolor%"> + <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/> + </fill> + + <button> + <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/> + <fill color="%transparent%"/> + <actions> + <action function="set">tw_fileexists=0</action> + <action function="page">backupname1</action> + </actions> + </button> + + <partitionlist> + <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/> + <text>Select Partitions to Backup:</text> + <data name="tw_backup_list"/> + <listtype name="backup"/> + </partitionlist> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row18a_y%"/> + <text>Select Storage</text> + <actions> + <action function="set">tw_back=backup</action> + <action function="overlay">select_storage</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row18a_y%"/> + <text>Refresh Sizes</text> + <actions> + <action function="refreshsizes"/> + <action function="page">backup</action> + </actions> + </button> + + <slider> + <text>Swipe to Backup</text> + <action function="page">backup_run</action> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="backup_options"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Backup</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <template name="tabs_backup"/> + + <fill color="%text_color%"> + <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/> + </fill> + + <button style="tab"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="0"/> + </conditions> + <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/> + <text>ENCRYPTION</text> + <font resource="font_s" color="%text_color%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <button style="tab"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="1"/> + </conditions> + <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/> + <text>ENCRYPTION</text> + <font resource="font_s" color="%text_success_color%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <checkbox> + <placement x="%indent%" y="%row3a_y%"/> + <text>Enable compression</text> + <data variable="tw_use_compression"/> + </checkbox> + + <checkbox> + <placement x="%indent%" y="%row5_y%"/> + <text>Skip MD5 generation during backup</text> + <data variable="tw_skip_md5_generate"/> + </checkbox> + + <checkbox> + <placement x="%indent%" y="%row6a_y%"/> + <text>Disable Free Space Check</text> + <data variable="tw_disable_free_space"/> + </checkbox> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">backup</action> + </action> + </page> + + <page name="backupname1"> + <action> + <condition var1="tw_backup_name" op="=" var2="(Auto Generate)"/> + <action function="generatebackupname"/> + </action> + + <action> + <action function="page">backupname2</action> + </action> + </page> + + <page name="backupname2"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Backup</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <template name="tabs_backup"/> + + <fill color="%text_color%"> + <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/> + </fill> + + <button style="tab"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="0"/> + </conditions> + <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/> + <text>ENCRYPTION</text> + <font resource="font_s" color="%text_color%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <button style="tab"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="1"/> + </conditions> + <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/> + <text>ENCRYPTION</text> + <font resource="font_s" color="%text_success_color%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row3a_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_backup_name%</text> + <data name="tw_backup_name"/> + <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/> + <actions> + <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action> + <action function="set">tw_existpage=backupname2</action> + <action function="set">tw_notexistpage=backup</action> + <action function="page">filecheck</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <fill color="%text_fail_color%"> + <condition var1="tw_fileexists" var2="1"/> + <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <text style="text_m_fail"> + <condition var1="tw_fileexists" var2="1"/> + <placement x="%indent%" y="%row6_y%"/> + <text>A backup with that name already exists!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row10_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_backup_name=(Auto Generate)</action> + <action function="page">backup</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row10_y%"/> + <text>Append Date</text> + <action function="appenddatetobackupname"/> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_backup_name=(Auto Generate)</action> + <action function="page">main</action> + </actions> + </action> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_backup_name=(Auto Generate)</action> + <action function="page">backup</action> + </actions> + </action> + </page> + + <page name="backupencryption"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Backup</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <template name="tabs_backup"/> + + <button style="tab"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="0"/> + </conditions> + <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/> + <text>ENCRYPTION</text> + <font resource="font_s" color="%text_color%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <button style="tab"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="1"/> + </conditions> + <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/> + <text>ENCRYPTION</text> + <font resource="font_s" color="%text_success_color%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <fill color="%text_color%"> + <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/> + </fill> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3a_y%" placement="5"/> + <text>Encrypt your Backup?</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>Enter a Password:</text> + </text> + + <input> + <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_backup_encrypt_display%</text> + <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/> + <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/> + <action function="page">backupencryption2</action> + </input> + + <fill color="%accent_color%"> + <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <fill color="%text_fail_color%"> + <condition var1="tw_password_not_match" var2="1"/> + <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <text style="text_m_fail"> + <condition var1="tw_password_not_match" var2="1"/> + <placement x="%indent%" y="%row8a_y%"/> + <text>Passwords do not match!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row10_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_encrypt_backup=0</action> + <action function="set">tw_backup_password=</action> + <action function="set">tw_backup_password2=</action> + <action function="set">tw_backup_encrypt_display=</action> + <action function="set">tw_backup_encrypt_display2=</action> + <action function="page">backup</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">backup</action> + </action> + </page> + + <page name="backupencryption2"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Backup</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <template name="tabs_backup"/> + + <button style="tab"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="0"/> + </conditions> + <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/> + <text>ENCRYPTION</text> + <font resource="font_s" color="%text_color%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <button style="tab"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="1"/> + </conditions> + <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/> + <text>ENCRYPTION</text> + <font resource="font_s" color="%text_success_color%"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <fill color="%text_color%"> + <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/> + </fill> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3a_y%" placement="5"/> + <text>Encrypt your Backup?</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>Enter Password again:</text> + </text> + + <input> + <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_backup_encrypt_display2%</text> + <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/> + <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/> + <action function="page">checkbackuppassword</action> + </input> + + <fill color="%accent_color%"> + <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row10_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_encrypt_backup=0</action> + <action function="set">tw_backup_password=</action> + <action function="set">tw_backup_password2=</action> + <action function="set">tw_backup_encrypt_display=</action> + <action function="set">tw_backup_encrypt_display2=</action> + <action function="page">backup</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">backup</action> + </action> + </page> + + <page name="checkbackuppassword"> + <action> + <condition var1="tw_backup_password2" var2="tw_backup_password"/> + <actions> + <action function="set">tw_encrypt_backup=1</action> + <action function="page">backup</action> + </actions> + </action> + + <action> + <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/> + <actions> + <action function="set">tw_encrypt_backup=0</action> + <action function="set">tw_password_not_match=1</action> + <action function="set">tw_backup_password=</action> + <action function="set">tw_backup_password2=</action> + <action function="set">tw_backup_encrypt_display=</action> + <action function="set">tw_backup_encrypt_display2=</action> + <action function="page">backupencryption</action> + </actions> + </action> + </page> + + <page name="backup_run"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>%tw_operation%</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_partition% Partition</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row19_y%"/> + <text>Progress:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row20_y%"/> + <text>%tw_file_progress%</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row21_y%"/> + <text>%tw_size_progress%</text> + </text> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Cancel</text> + <action function="cancelbackup"/> + </button> + + <action> + <action function="nandroid">backup</action> + </action> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_cancel_backup" var2="0"/> + <actions> + <action function="set">tw_back=backup</action> + <action function="set">tw_complete_text1=Backup Complete</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_cancel_backup" var2="1"/> + <actions> + <action function="set">tw_back=backup</action> + <action function="set">tw_complete_text1=Backup Cancelled</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_complete</action> + </actions> + </action> + </page> + + <page name="restore"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <template name="sort_options"/> + + <fileselector> + <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/> + <text>Select Package to Restore:</text> + <filter folders="1" files="0" nav="0"/> + <path name="tw_backups_folder"/> + <data name="tw_restore" default=""/> + <selection name="tw_restore_name"/> + </fileselector> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row21a_y%"/> + <text>Select Storage</text> + <actions> + <action function="set">tw_back=restore</action> + <action function="overlay">select_storage</action> + </actions> + </button> + + <action> + <condition var1="tw_restore" op="modified"/> + <actions> + <action function="readBackup"/> + <action function="page">restore_read</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="restore_read"> + <action> + <condition var1="tw_restore_encrypted" var2="1"/> + <actions> + <action function="set">tw_password_fail=0</action> + <action function="page">restore_decrypt</action> + </actions> + </action> + + <action> + <condition var1="tw_restore_encrypted" var2="0"/> + <actions> + <action function="page">restore_select</action> + </actions> + </action> + </page> + + <page name="restore_decrypt"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Encrypted Backup</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Enter Password:</text> + </text> + + <input> + <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_restore_display%</text> + <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/> + <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/> + <action function="page">try_restore_decrypt</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>Password failed, please try again!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row10_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">restore</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row10_y%"/> + <text>Delete Backup</text> + <actions> + <action function="set">tw_back=restore</action> + <action function="set">tw_action=cmd</action> + <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf "%tw_restore_name%"</action> + <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action> + <action function="set">tw_text2=This cannot be undone!</action> + <action function="set">tw_action_text1=Deleting Backup...</action> + <action function="set">tw_complete_text1=Backup Delete Complete</action> + <action function="set">tw_slider_text=Swipe to Delete</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">restore</action> + </action> + </page> + + <page name="try_restore_decrypt"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Encrypted Backup - Trying Decryption</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <action function="decrypt_backup"/> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="!=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_password_fail=1</action> + <action function="page">restore_decrypt</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">restore_select</action> + </actions> + </action> + </page> + + <page name="restore_select"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Backup made on %tw_restore_file_date%</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row2_y%"/> + <text>Name:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row3_y%"/> + <text>%tw_restore_name%</text> + </text> + + <fill color="%fileselector_linecolor%"> + <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/> + </fill> + + <button> + <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/> + <fill color="%transparent%"/> + <actions> + <action function="set">tw_backup_rename=%tw_restore_name%</action> + <action function="set">tw_fileexists=0</action> + <action function="page">renamebackup</action> + </actions> + </button> + + <partitionlist> + <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/> + <text>Select Partitions to Restore:</text> + <data name="tw_restore_list" selectedlist="tw_restore_selected"/> + <listtype name="restore"/> + </partitionlist> + + <checkbox> + <placement x="%indent%" y="%row17_y%"/> + <text>Enable MD5 Verification of Backup Files</text> + <data variable="tw_skip_md5_check"/> + </checkbox> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row18a_y%"/> + <text>Delete Backup</text> + <actions> + <action function="set">tw_back=restore</action> + <action function="set">tw_action=cmd</action> + <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf "%tw_restore_name%"</action> + <action function="set">tw_text1=Delete Backup?</action> + <action function="set">tw_text2=%tw_restore_name%</action> + <action function="set">tw_text4=This cannot be undone!</action> + <action function="set">tw_action_text1=Deleting Backup...</action> + <action function="set">tw_complete_text1=Backup Delete Complete</action> + <action function="set">tw_slider_text=Swipe to Delete</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <slider> + <text>Swipe to Restore</text> + <action function="page">restore_run</action> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">restore</action> + </action> + </page> + + <page name="renamebackup"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Rename Backup</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row2_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_backup_rename%</text> + <data name="tw_backup_rename"/> + <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/> + <actions> + <action function="set">tw_back=restore</action> + <action function="set">tw_action=cmd</action> + <action function="set">tw_action_param=cd %tw_backups_folder% && mv "%tw_restore_name%" "%tw_backup_rename%"</action> + <action function="set">tw_text1=Rename Backup?</action> + <action function="set">tw_text2=This cannot be undone!</action> + <action function="set">tw_action_text1=Renaming Backup...</action> + <action function="set">tw_complete_text1=Backup Rename Complete</action> + <action function="set">tw_slider_text=Swipe to Rename</action> + <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action> + <action function="set">tw_existpage=renamebackup</action> + <action function="set">tw_notexistpage=confirm_action</action> + <action function="page">filecheck</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <fill color="%text_fail_color%"> + <condition var1="tw_fileexists" var2="1"/> + <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <text style="text_m_fail"> + <condition var1="tw_fileexists" var2="1"/> + <placement x="%indent%" y="%row4a_y%"/> + <text>A backup with that name already exists!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row10_y%"/> + <text>Cancel</text> + <action function="page">restore_select</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">restore_select</action> + </action> + </page> + + <page name="restore_run"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Restore</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_operation% %tw_partition%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row19_y%"/> + <text>Progress:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row20_y%"/> + <text>%tw_size_progress%</text> + </text> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <actions> + <action function="set">tw_back=restore_select</action> + <action function="set">tw_complete_text1=Restore Complete</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <action function="nandroid">restore</action> + </action> + </page> + + <page name="mount"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Mount</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text> + </text> + + <partitionlist> + <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/> + <text>Select Partitions to Mount:</text> + <listtype name="mount"/> + </partitionlist> + + <button style="checkbox"> + <condition var1="tw_mount_system_ro" op="=" var2="0"/> + <placement x="%indent%" y="%row15a_y%" textplacement="6"/> + <text>Mount system partition read-only</text> + <image resource="checkbox_false"/> + <action function="mountsystemtoggle">1</action> + </button> + + <button style="checkbox"> + <condition var1="tw_mount_system_ro" op="!=" var2="0"/> + <placement x="%indent%" y="%row15a_y%" textplacement="6"/> + <text>Mount system partition read-only</text> + <image resource="checkbox_true"/> + <actions> + <action function="set">tw_lifetime_writes=2</action> + <action function="page">system_readonly_check</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_has_usb_storage" var2="1"/> + <placement x="%indent%" y="%row18a_y%"/> + <text>Mount USB Storage</text> + <action function="page">usb_mount</action> + </button> + + <button style="main_button_half_height"> + <conditions> + <condition var1="tw_is_encrypted" var2="1"/> + <condition var1="tw_is_decrypted" var2="0"/> + </conditions> + <placement x="%center_x%" y="%row18a_y%"/> + <text>Decrypt Data</text> + <action function="page">decrypt</action> + </button> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row21a_y%"/> + <text>Select Storage</text> + <actions> + <action function="set">tw_back=mount</action> + <action function="overlay">select_storage</action> + </actions> + </button> + + <button style="main_button_half_height"> + <conditions> + <condition var1="tw_has_mtp" var2="1"/> + <condition var1="tw_mtp_enabled" var2="0"/> + </conditions> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Enable MTP</text> + <action function="startmtp"/> + </button> + + <button style="main_button_half_height"> + <conditions> + <condition var1="tw_has_mtp" var2="1"/> + <condition var1="tw_mtp_enabled" var2="1"/> + </conditions> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Disable MTP</text> + <action function="stopmtp"/> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="usb_mount"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Mount</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>USB Storage</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>USB Storage Mounted</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>Be sure to safely remove your device</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>from your computer before unmounting!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row21a_y%"/> + <text>Unmount</text> + <action function="page">usb_umount</action> + </button> + + <action> + <action function="mount">usb</action> + <action function="set">tw_busy=1</action> + </action> + </page> + + <page name="usb_umount"> + <action> + <action function="unmount">usb</action> + </action> + + <action> + <action function="page">mount</action> + <action function="set">tw_busy=0</action> + </action> + </page> + + <page name="system_readonly_check"> + <action> + <action function="checkpartitionlifetimewrites">/system</action> + </action> + + <action> + <condition var1="tw_lifetime_writes" var2="1"/> + <actions> + <action function="mountsystemtoggle">0</action> + <action function="page">mount</action> + </actions> + </action> + + <action> + <condition var1="tw_lifetime_writes" var2="0"/> + <actions> + <action function="set">tw_back=mount</action> + <action function="page">system_readonly</action> + </actions> + </action> + </page> + + <page name="reboot"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Reboot Menu</text> + </text> + + <button style="main_button"> + <condition var1="tw_reboot_system" var2="1"/> + <placement x="%indent%" y="%row2a_y%"/> + <text>System</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=system</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_reboot_poweroff" var2="1"/> + <placement x="%center_x%" y="%row2a_y%"/> + <text>Power Off</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=poweroff</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to power off?</action> + <action function="set">tw_action_text1=Turning Off...</action> + <action function="set">tw_complete_text1=Turning Off...</action> + <action function="set">tw_slider_text=Swipe to Power Off</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_reboot_recovery" var2="1"/> + <placement x="%indent%" y="%row8_y%"/> + <text>Recovery</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=recovery</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_reboot_bootloader" var2="1"/> + <placement x="%center_x%" y="%row8_y%"/> + <text>Bootloader</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=bootloader</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_download_mode" var2="1"/> + <placement x="%indent%" y="%row13a_y%"/> + <text>Download</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=download</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Swipe to Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="system_readonly"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Unmodified System Partition</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Keep System Read only?</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>TWRP can leave your system partition unmodified</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>to make it easier for you to take official updates.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>TWRP will be unable to prevent the stock ROM from</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row7_y%" placement="5"/> + <text>replacing TWRP and will not offer to root your device.</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row9_y%" placement="5"/> + <text>Installing zips or performing adb operations may still</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row10_y%" placement="5"/> + <text>modify the system partition.</text> + </text> + + <checkbox> + <condition var1="tw_is_encrypted" var2="0"/> + <placement x="%indent%" y="%row15_y%"/> + <text>Never show this screen during boot again</text> + <data variable="tw_never_show_system_ro_page"/> + </checkbox> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row18a_y%"/> + <text>Keep Read Only</text> + <actions> + <action function="mountsystemtoggle">1</action> + <action function="set">tw_page_done=1</action> + <action function="page">%tw_back%</action> + </actions> + </button> + + <slider> + <text>Swipe to Allow Modifications</text> + <actions> + <action function="mountsystemtoggle">0</action> + <action function="set">tw_page_done=1</action> + <action function="page">%tw_back%</action> + </actions> + </slider> + </page> + + <page name="settings"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Settings</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>General Settings</text> + </text> + + <template name="tabs_settings"/> + + <fill color="%text_color%"> + <placement x="0" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/> + </fill> + + <listbox style="scrolllist"> + <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/> + <icon selected="checkbox_true" unselected="checkbox_false"/> + <listitem name="Zip file signature verification"> + <data variable="tw_signed_zip_verify"/> + </listitem> + <listitem name="Use rm -rf instead of formatting"> + <data variable="tw_rm_rf"/> + </listitem> + <listitem name="Skip MD5 generation during backup"> + <data variable="tw_skip_md5_generate"/> + </listitem> + <listitem name="Enable MD5 verification of backup files"> + <data variable="tw_skip_md5_check"/> + </listitem> + <listitem name="Use 24-hour clock"> + <data variable="tw_military_time"/> + </listitem> + <listitem name="Reversed navbar layout"> + <data variable="tw_samsung_navbar"/> + </listitem> + <listitem name="Simulate actions for theme testing"> + <data variable="tw_simulate_actions"/> + </listitem> + <listitem name="Simulate failure for actions"> + <condition var1="tw_simulate_actions" var2="1"/> + <data variable="tw_simulate_fail"/> + </listitem> + </listbox> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Restore Defaults</text> + <action function="restoredefaultsettings"/> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="settings_timezone"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Settings</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Time Zone Settings</text> + </text> + + <template name="tabs_settings"/> + + <fill color="%text_color%"> + <placement x="%tab4_col2_x%" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/> + </fill> + + <listbox> + <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/> + <text>Select Time Zone:</text> + <data name="tw_time_zone_guisel"/> + <listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem> + <listitem name="(UTC -10) Hawaii">HST10;HDT</listitem> + <listitem name="(UTC -9) Alaska">AST9;ADT</listitem> + <listitem name="(UTC -8) Pacific Time">PST8;PDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -7) Mountain Time">MST7;MDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -6) Central Time">CST6;CDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -5) Eastern Time">EST5;EDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -4) Atlantic Time">AST4;ADT</listitem> + <listitem name="(UTC -3) Brazil, Buenos Aires">GRNLNDST3;GRNLNDDT</listitem> + <listitem name="(UTC -2) Mid-Atlantic">FALKST2;FALKDT</listitem> + <listitem name="(UTC -1) Azores, Cape Verde">AZOREST1;AZOREDT</listitem> + <listitem name="(UTC 0) London, Dublin, Lisbon">GMT0;BST,M3.5.0,M10.5.0</listitem> + <listitem name="(UTC +1) Berlin, Brussels, Paris">CET-1;CEST,M3.5.0,M10.5.0</listitem> + <listitem name="(UTC +2) Athens, Istanbul, South Africa">WET-2;WET,M3.5.0,M10.5.0</listitem> + <listitem name="(UTC +3) Moscow, Baghdad">SAUST-3;SAUDT</listitem> + <listitem name="(UTC +4) Abu Dhabi, Tbilisi, Muscat">WST-4;WDT</listitem> + <listitem name="(UTC +5) Yekaterinburg, Islamabad">PAKST-5;PAKDT</listitem> + <listitem name="(UTC +6) Almaty, Dhaka, Colombo">TASHST-6;TASHDT</listitem> + <listitem name="(UTC +7) Bangkok, Hanoi, Jakarta">THAIST-7;THAIDT</listitem> + <listitem name="(UTC +8) Beijing, Singapore, Hong Kong">TAIST-8;TAIDT</listitem> + <listitem name="(UTC +9) Tokyo, Seoul, Yakutsk">JST-9;JSTDT</listitem> + <listitem name="(UTC +10) Eastern Australia, Guam">EET-10;EETDT</listitem> + <listitem name="(UTC +11) Vladivostok, Solomon Islands">MET-11;METDT</listitem> + <listitem name="(UTC +12) Auckland, Wellington, Fiji">NZST-12;NZDT</listitem> + </listbox> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row15a_y%"/> + <text>Select Offset (usually 0): %tw_time_zone_guioffset%</text> + </text> + + <button style="button_quarter_width"> + <placement x="%indent%" y="%row16a_y%"/> + <text>None</text> + <action function="set">tw_time_zone_guioffset=0</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col2_x%" y="%row16a_y%"/> + <text>15</text> + <action function="set">tw_time_zone_guioffset=15</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col3_x%" y="%row16a_y%"/> + <text>30</text> + <action function="set">tw_time_zone_guioffset=30</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col4_x%" y="%row16a_y%"/> + <text>45</text> + <action function="set">tw_time_zone_guioffset=45</action> + </button> + + <checkbox> + <placement x="%indent%" y="%row18a_y%"/> + <font resource="font_m" color="%text_color%"/> + <text>Use daylight savings time (DST)</text> + <data variable="tw_time_zone_guidst"/> + <image checked="checkbox_true" unchecked="checkbox_false"/> + </checkbox> + + <text color="%text_color%"> + <font resource="font_m"/> + <placement x="%indent%" y="%row20_y%"/> + <text>Current Time Zone: %tw_time_zone%</text> + </text> + + <button> + <highlight color="%highlight_color%"/> + <placement x="%center_x%" y="%row21a_y%"/> + <font resource="font_m" color="%text_button_color%"/> + <text>Set Time Zone</text> + <image resource="main_button_half_height"/> + <action function="setguitimezone"/> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="settings_screen"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Settings</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Screen Settings</text> + </text> + + <template name="tabs_settings"/> + + <fill color="%text_color%"> + <placement x="%center_x%" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/> + </fill> + + <button> + <placement x="%indent%" y="%row3a_y%" textplacement="6"/> + <font resource="font_m" color="%text_color%"/> + <condition var1="tw_screen_timeout_secs" op="=" var2="0"/> + <condition var1="tw_no_screen_timeout" op="!=" var2="1"/> + <text>Enable screen timeout</text> + <image resource="checkbox_false"/> + <action function="set">tw_screen_timeout_secs=60</action> + </button> + + <button> + <placement x="%indent%" y="%row3a_y%" textplacement="6"/> + <font resource="font_m" color="%text_color%"/> + <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/> + <condition var1="tw_no_screen_timeout" op="!=" var2="1"/> + <text>Enable screen timeout</text> + <image resource="checkbox_true"/> + <action function="set">tw_screen_timeout_secs=0</action> + </button> + + <slidervalue> + <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/> + <condition var1="tw_no_screen_timeout" op="!=" var2="1"/> + <placement x="indent" y="%row5_y%" w="%content_width%"/> + <text>Screen timeout in seconds:</text> + <data variable="tw_screen_timeout_secs" min="15" max="300"/> + </slidervalue> + + <slidervalue> + <condition var1="tw_has_brightnesss_file" var2="1"/> + <placement x="indent" y="%row10_y%" w="%content_width%"/> + <text>Brightness: %tw_brightness_pct%%</text> + <data variable="tw_brightness_pct" min="10" max="100"/> + <actions> + <action function="set">tw_brightness=%tw_brightness_max%</action> + <action function="compute">tw_brightness*%tw_brightness_pct%</action> + <action function="compute">tw_brightness/100</action> + <action function="setbrightness">%tw_brightness%</action> + </actions> + </slidervalue> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="settings_vibration"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Settings</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Vibration Settings</text> + </text> + + <template name="tabs_settings"/> + + <fill color="%text_color%"> + <placement x="%tab4_col4_x%" y="%row_tab_y%" w="%tab4_width%" h="%tab_indicator_height%"/> + </fill> + + <slidervalue> + <placement x="indent" y="%row4_y%" w="%content_width%"/> + <text>Button Vibration:</text> + <data variable="tw_button_vibrate" min="0" max="300"/> + </slidervalue> + + <slidervalue> + <placement x="indent" y="%row9_y%" w="%content_width%"/> + <text>Keyboard Vibration:</text> + <data variable="tw_keyboard_vibrate" min="0" max="300"/> + </slidervalue> + + <slidervalue> + <placement x="indent" y="%row14_y%" w="%content_width%"/> + <text>Action Vibration:</text> + <data variable="tw_action_vibrate" min="0" max="500"/> + </slidervalue> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="advanced"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Advanced</text> + </text> + + <button style="main_button"> + <placement x="%indent%" y="%row2a_y%"/> + <text>Copy Log to SD</text> + <actions> + <action function="set">tw_back=advanced</action> + <action function="set">tw_action=copylog</action> + <action function="set">tw_text1=Copy Log to SD Card?</action> + <action function="set">tw_action_text1=Copying Log to SD Card...</action> + <action function="set">tw_complete_text1=Log Copy Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row2a_y%"/> + <text>Fix Permissions</text> + <action function="page">fixperms</action> + </button> + + <button style="main_button"> + <condition var1="tw_allow_partition_sdcard" var2="1"/> + <placement x="%indent%" y="%row8_y%"/> + <text>Partition SD Card</text> + <action function="page">partsdcard</action> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row8_y%"/> + <text>File Manager</text> + <action function="page">filemanagerlist</action> + </button> + + <button style="main_button"> + <placement x="%indent%" y="%row13a_y%"/> + <text>Terminal</text> + <action function="page">terminalfolder</action> + </button> + + <button style="main_button"> + <placement x="%center_x%" y="%row13a_y%"/> + <text>Reload Theme</text> + <action function="reload"/> + </button> + + <button style="main_button"> + <placement x="%indent%" y="%row19_y%"/> + <text>ADB Sideload</text> + <action function="page">sideload</action> + </button> + + <button style="main_button"> + <condition var1="tw_show_dumlock" var2="1"/> + <placement x="%center_x%" y="%row19_y%"/> + <text>HTC Dumlock</text> + <action function="page">htcdumlock</action> + </button> + + <button style="main_button"> + <condition var1="tw_has_injecttwrp" var2="1"/> + <placement x="%center_x%" y="%row19_y%"/> + <text>Re-Inject TWRP</text> + <actions> + <action function="set">tw_back=advanced</action> + <action function="set">tw_action=reinjecttwrp</action> + <action function="set">tw_text1=Re-Inject TWRP?</action> + <action function="set">tw_action_text1=Re-Injecting TWRP...</action> + <action function="set">tw_complete_text1=TWRP Injection Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="partsdcard"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Advanced</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Partition SD Card</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>You will lose all files on your SD card!</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>This action cannot be undone!</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>EXT Size:</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6a_y%" placement="5"/> + <text>%tw_sdext_size%</text> + </text> + + <button style="button_quarter_width"> + <placement x="%indent%" y="%row6_y%"/> + <text>-</text> + <action function="addsubtract">tw_sdext_size-128</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col4_x%" y="%row6_y%"/> + <text>+</text> + <action function="addsubtract">tw_sdext_size+128</action> + </button> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row9_y%" placement="5"/> + <text>Swap Size:</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row10a_y%" placement="5"/> + <text>%tw_swap_size%</text> + </text> + + <button style="button_quarter_width"> + <placement x="%indent%" y="%row10_y%"/> + <text>-</text> + <action function="addsubtract">tw_swap_size-32</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col4_x%" y="%row10_y%"/> + <text>+</text> + <action function="addsubtract">tw_swap_size+32</action> + </button> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row13_y%" placement="5"/> + <text>File System:</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row14a_y%" placement="5"/> + <text>%tw_sdpart_file_system%</text> + </text> + + <button style="button_quarter_width"> + <placement x="%indent%" y="%row14_y%"/> + <text>EXT3</text> + <action function="set">tw_sdpart_file_system=ext3</action> + </button> + + <button style="button_quarter_width"> + <placement x="%btn4_col4_x%" y="%row14_y%"/> + <text>EXT4</text> + <action function="set">tw_sdpart_file_system=ext4</action> + </button> + + <slider> + <text>Swipe to Partition</text> + <action function="page">partsdcardaction</action> + <actions> + <action function="set">tw_back=partsdcard</action> + <action function="set">tw_action=partitionsd</action> + <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_action_text1=Partitioning SD Card...</action> + <action function="set">tw_action_text2=This will take a few minutes.</action> + <action function="set">tw_complete_text1=Partitioning Complete</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="htcdumlock"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Advanced</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>HTC Dumlock</text> + </text> + + <button style="main_button_half_height_full_width"> + <placement x="%indent%" y="%row15a_y%"/> + <text>Restore Original Boot</text> + <actions> + <action function="set">tw_back=htcdumlock</action> + <action function="set">tw_action=htcdumlockrestoreboot</action> + <action function="set">tw_text1=Restore original boot image?</action> + <action function="set">tw_action_text1=Restoring Original Boot...</action> + <action function="set">tw_complete_text1=Restore Original Boot Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height_full_width"> + <placement x="%indent%" y="%row18a_y%"/> + <text>Reflash Recovery</text> + <actions> + <action function="set">tw_back=htcdumlock</action> + <action function="set">tw_action=htcdumlockreflashrecovery</action> + <action function="set">tw_text1=Reflash recovery to boot?</action> + <action function="set">tw_action_text1=Flashing recovery to boot...</action> + <action function="set">tw_complete_text1=Recovery Flash to Boot Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height_full_width"> + <placement x="%indent%" y="%row21a_y%"/> + <text>Install HTC Dumlock</text> + <actions> + <action function="set">tw_back=htcdumlock</action> + <action function="set">tw_action=installhtcdumlock</action> + <action function="set">tw_text1=Install HTC dumlock files to ROM?</action> + <action function="set">tw_action_text1=Installing HTC Dumlock...</action> + <action function="set">tw_complete_text1=HTC Dumlock Install Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="lock"> + <background color="%semi_transparent%"/> + + <image> + <image resource="unlock_icon"/> + <placement x="%center_x%" y="%row10_y%" placement="4"/> + </image> + + <slider> + <text>Swipe to Unlock</text> + <action function="overlay"/> + </slider> + </page> + + <page name="filemanagerlist"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Select a File or Folder</text> + </text> + + <template name="sort_options"/> + + <fileselector> + <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/> + <text>%tw_file_location1%</text> + <filter folders="1" files="1"/> + <path name="tw_file_location1" default="/"/> + <data name="tw_filename1"/> + <selection name="tw_selection1"/> + </fileselector> + + <button style="fab"> + <image resource="fab_selectfolder"/> + <actions> + <action function="set">tw_filename1=tw_file_location1</action> + <action function="set">tw_fm_isfolder=1</action> + <action function="set">tw_fm_type=Folder</action> + <action function="page">filemanageroptions</action> + </actions> + </button> + + <action> + <actions> + <action function="set">tw_fm_type=File</action> + <action function="set">tw_fm_isfolder=0</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + + <action> + <condition var1="tw_filename1" op="modified"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanageroptions"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Choose Action</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row2_y%"/> + <text>%tw_fm_type% selected:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row3_y%"/> + <text>%tw_filename1%</text> + </text> + + <button style="main_button_half_height"> + <condition var1="tw_fm_isfolder" var2="0"/> + <placement x="%indent%" y="%row15a_y%"/> + <text>Copy File</text> + <actions> + <action function="set">tw_filemanager_command=cp</action> + <action function="set">tw_fm_text1=Copying</action> + <action function="page">choosedestinationfolder</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_fm_isfolder" var2="1"/> + <placement x="%indent%" y="%row15a_y%"/> + <text>Copy Folder</text> + <actions> + <action function="set">tw_filemanager_command=cd "%tw_file_location1%" && cd .. && cp -R</action> + <action function="set">tw_fm_text1=Copying</action> + <action function="page">choosedestinationfolder</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row15a_y%"/> + <text>Move</text> + <actions> + <action function="set">tw_filemanager_command=mv</action> + <action function="set">tw_fm_text1=Moving</action> + <action function="page">choosedestinationfolder</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row18a_y%"/> + <text>chmod 755</text> + <actions> + <action function="set">tw_filemanager_command=chmod 755</action> + <action function="set">tw_fm_text1=chmod 755</action> + <action function="set">tw_fm_text2=</action> + <action function="set">tw_fm_text3=</action> + <action function="set">tw_include_text3=0</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%center_x%" y="%row18a_y%"/> + <text>chmod</text> + <actions> + <action function="set">tw_filemanager_rename=0000</action> + <action function="set">tw_fm_text2=</action> + <action function="set">tw_fm_text3=</action> + <action function="set">tw_include_text3=0</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerchmod</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row21a_y%"/> + <text>Delete</text> + <actions> + <action function="set">tw_filemanager_command=rm -rf</action> + <action function="set">tw_fm_text1=Deleting</action> + <action function="set">tw_fm_text2=</action> + <action function="set">tw_fm_text3=</action> + <action function="set">tw_include_text3=0</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_fm_isfolder" var2="0"/> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Rename File</text> + <actions> + <action function="set">tw_filemanager_rename=tw_selection1</action> + <action function="set">tw_fm_text1=Renaming</action> + <action function="set">tw_filemanager_command=mv</action> + <action function="page">filemanagerrenamefile</action> + </actions> + </button> + + <button style="main_button_half_height"> + <condition var1="tw_fm_isfolder" var2="1"/> + <placement x="%center_x%" y="%row21a_y%"/> + <text>Rename Folder</text> + <actions> + <action function="set">tw_filemanager_rename=tw_selection1</action> + <action function="set">tw_fm_text1=Renaming</action> + <action function="set">tw_filemanager_command=cd "%tw_file_location1%" && cd .. && mv</action> + <action function="page">filemanagerrenamefolder</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanagerlist</action> + </action> + </page> + + <page name="choosedestinationfolder"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Select Destination Folder</text> + </text> + + <template name="sort_options"/> + + <fileselector> + <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/> + <text>%tw_file_location2%</text> + <filter folders="1" files="0"/> + <path name="tw_file_location2" default="/"/> + <data name="tw_filename2"/> + <selection name="tw_selection2"/> + </fileselector> + + <button style="fab"> + <image resource="fab_selectfolder"/> + <actions> + <action function="set">tw_fm_text2=to</action> + <action function="set">tw_fm_text3=%tw_file_location2%</action> + <action function="set">tw_include_text3=1</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerrenamefile"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Rename %tw_fm_type%</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row2_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_filemanager_rename%</text> + <data name="tw_filemanager_rename"/> + <restrict minlen="1" maxlen="128"/> + <actions> + <action function="set">tw_fm_text2=to</action> + <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action> + <action function="set">tw_include_text3=1</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row10_y%"/> + <text>Cancel</text> + <action function="page">filemanageroptions</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerrenamefolder"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Rename %tw_fm_type%</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row2_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_filemanager_rename%</text> + <data name="tw_filemanager_rename"/> + <restrict minlen="1" maxlen="128"/> + <actions> + <action function="set">tw_fm_text2=to</action> + <action function="set">tw_fm_text3=%tw_filemanager_rename%</action> + <action function="set">tw_include_text3=1</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row10_y%"/> + <text>Cancel</text> + <action function="page">filemanageroptions</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerchmod"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Set Permissions</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row2_y%"/> + <text>Permissions:</text> + </text> + + <input> + <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_filemanager_rename%</text> + <data name="tw_filemanager_rename"/> + <restrict minlen="3" maxlen="4" allow="0123456789"/> + <actions> + <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action> + <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row10_y%"/> + <text>Cancel</text> + <action function="page">filemanageroptions</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerconfirm"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Confirm Action</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>%tw_fm_text1%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>%tw_filename1%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>%tw_fm_text2%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>%tw_fm_text3%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row8_y%" placement="5"/> + <text>Press back button to cancel.</text> + </text> + + <slider> + <text>Swipe to Confirm</text> + <action function="page">filemanageraction</action> + </slider> + + <action> + <touch key="back"/> + <action function="page">%tw_back%</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="filemanageraction"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>File Manager</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_fm_text1%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" var2="0"/> + </conditions> + <actions> + <action function="set">tw_back=filemanagerlist</action> + <action function="set">tw_complete_text1=File Operation Complete</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="!=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_complete_text1=File Operation Complete</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <condition var1="tw_include_text3" var2="0"/> + <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action> + </action> + + <action> + <condition var1="tw_include_text3" var2="1"/> + <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action> + </action> + </page> + + <page name="decrypt"> + <template name="page"/> + + <action> + <condition var1="tw_crypto_pwtype" var2="2"/> + <action function="page">decrypt_pattern</action> + </action> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Mount</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Decrypt Data</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Enter Password:</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>Password failed, please try again!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row10_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">main</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + </page> + + <page name="decrypt_pattern"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Mount</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Decrypt Data</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Enter Pattern:</text> + </text> + + <patternpassword> + <placement x="%pattern_x%" y="%row6_y%" w="%pattern_size%" h="%pattern_size%"/> + <size name="tw_pattern_grid_size" default="3"/> + <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/> + <line color="%fileselector_linecolor%" width="%pattern_line_w%"/> + <data name="tw_crypto_password"/> + <action function="page">trydecrypt</action> + </patternpassword> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row21a_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">main</action> + </actions> + </button> + </page> + + <page name="trydecrypt"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Mount</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Decrypt Data - Trying Decryption</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <action function="decrypt"/> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="!=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_password_fail=1</action> + <action function="page">decrypt</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">main</action> + </actions> + </action> + </page> + + <page name="terminalfolder"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Terminal Command</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Browse to Starting Folder</text> + </text> + + <template name="sort_options"/> + + <fileselector> + <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/> + <text>%tw_terminal_location%</text> + <filter folders="1" files="0"/> + <path name="tw_terminal_location" default="/"/> + <data name="tw_terminal"/> + <selection name="tw_terminal_selection"/> + </fileselector> + + <button style="fab"> + <image resource="fab_selectfolder"/> + <action function="page">terminalcommand</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="terminalcommand"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Terminal Command</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>%tw_terminal_location%</text> + </text> + + <template name="console_terminal"/> + + <input> + <placement x="%indent%" y="%row11a_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_terminal_command%</text> + <data name="tw_terminal_command"/> + <restrict minlen="1"/> + <action function="terminalcommand">%tw_terminal_command%</action> + </input> + + <fill color="%accent_color%"> + <placement x="%indent%" y="row12a_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button> + <condition var1="tw_terminal_state" var2="1"/> + <highlight color="%highlight_color%"/> + <placement x="%btn4_col4_x%" y="%row12a_y%"/> + <font resource="font_m" color="%text_button_color%"/> + <text>Kill</text> + <image resource="tab_4"/> + <action function="killterminal"/> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">terminalfolder</action> + </action> + </page> + + <page name="sideload"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Advanced</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>ADB Sideload</text> + </text> + + <checkbox> + <placement x="%indent%" y="%row2_y%"/> + <text>Wipe Dalvik Cache</text> + <data variable="tw_wipe_dalvik"/> + </checkbox> + + <checkbox> + <placement x="%indent%" y="%row3a_y%"/> + <text>Wipe Cache</text> + <data variable="tw_wipe_cache"/> + </checkbox> + + <slider> + <text>Swipe to start Sideload</text> + <action function="page">partsdcardaction</action> + <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_show_reboot=1</action> + <action function="set">tw_cancel_action=adbsideloadcancel</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="fixperms"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Advanced</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>Fix Permissions</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Note: Fixing permissions is rarely needed.</text> + </text> + + <checkbox> + <placement x="%indent%" y="%row4_y%"/> + <text>Also fix SELinux Contexts</text> + <data variable="tw_fixperms_restorecon"/> + </checkbox> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>Fixing SELinux Contexts may cause</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row7_y%" placement="5"/> + <text>your device to not boot properly.</text> + </text> + + <slider> + <text>Swipe to Fix Permissions</text> + <actions> + <action function="set">tw_back=advanced</action> + <action function="set">tw_action=fixpermissions</action> + <action function="set">tw_action_text1=Fixing Permissions...</action> + <action function="set">tw_complete_text1=Fix Permissions Complete</action> + <action function="set">tw_slider_text=Swipe to Confirm</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="installsu"> + <template name="page"/> + + <text style="text_l"> + <placement x="%col1_x_header%" y="%row3_header_y%"/> + <text>Reboot</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_header%" y="%row4_header_y%"/> + <text>SuperSU Check</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Your device does not appear to be rooted.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>Install SuperSU now?</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>This will root your device.</text> + </text> + + <button style="main_button_half_height"> + <placement x="%indent%" y="%row18a_y%"/> + <text>Do not Install</text> + <action function="set">tw_page_done=1</action> + </button> + + <slider> + <text>Swipe to Install</text> + <actions> + <action function="set">tw_action=installsu</action> + <action function="set">tw_action_text1=Installing SuperSU</action> + <action function="set">tw_action_text2=</action> + <action function="page">singleaction_page</action> + </actions> + </slider> + </page> + + <page name="slideout"> + <fill color="%background_color%"> + <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/> + </fill> + + <console> + <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/> + </console> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/> + <action function="overlay"/> + </button> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + + <page name="select_storage"> + <fill color="%semi_transparent%"> + <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/> + </fill> + + <fill color="%background_color%"> + <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/> + </fill> + + <partitionlist style="partitionlist_storage"> + <text>Select Storage</text> + <data name="tw_storage_path"/> + <listtype name="storage"/> + </partitionlist> + + <button style="button_third_width"> + <placement x="%dialog_button_x%" y="%row14_y%"/> + <text>OK</text> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="overlay"/> + <action function="page">clear_vars</action> + </actions> + </button> + + <fill color="#000000"> + <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/> + </fill> + + <button> + <condition var1="tw_samsung_navbar" op="!=" var2="1"/> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="back"/> + <condition var1="tw_busy" var2="0"/> + <actions> + <action function="overlay"/> + <action function="key">%tw_back%</action> + </actions> + </button> + + <button> + <condition var1="tw_samsung_navbar" op="=" var2="1"/> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="console"/> + <condition var1="tw_busy" var2="0"/> + <action function="overlay">slideout</action> + </button> + + <button> + <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="home"/> + <condition var1="tw_busy" var2="0"/> + <actions> + <action function="overlay"/> + <action function="key">home</action> + </actions> + </button> + + <button> + <condition var1="tw_samsung_navbar" op="!=" var2="1"/> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="console"/> + <condition var1="tw_busy" var2="0"/> + <action function="overlay">slideout</action> + </button> + + <button> + <condition var1="tw_samsung_navbar" op="=" var2="1"/> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="back"/> + <condition var1="tw_busy" var2="0"/> + <actions> + <action function="overlay"/> + <action function="key">%tw_back%</action> + </actions> + </button> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + </pages> +</recovery> diff --git a/gui/theme/common/watch.xml b/gui/theme/common/watch.xml new file mode 100644 index 000000000..62d0b017f --- /dev/null +++ b/gui/theme/common/watch.xml @@ -0,0 +1,5149 @@ +<?xml version="1.0"?> +<recovery> + <styles> + <style name="text_l"> + <font resource="font_l" color="%text_color%"/> + </style> + + <style name="text_m"> + <font resource="font_m" color="%text_color%"/> + </style> + + <style name="text_m_accent"> + <font resource="font_m" color="%accent_color%"/> + </style> + + <style name="text_m_fail"> + <font resource="font_m" color="%text_fail_color%"/> + </style> + + <style name="text_s"> + <font resource="font_s" color="%text_color%"/> + </style> + + <style name="input"> + <background color="%background_color%"/> + <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/> + <font resource="font_m" color="%text_color%"/> + </style> + + <style name="checkbox"> + <font resource="font_m" color="%text_color%"/> + <image checked="checkbox_true" unchecked="checkbox_false"/> + </style> + + <style name="main_button"> + <highlight color="%highlight_color%"/> + <font resource="font_l" color="%text_button_color%"/> + <image resource="main_button"/> + </style> + + <style name="main_button_full_width"> + <highlight color="%highlight_color%"/> + <font resource="font_l" color="%text_button_color%"/> + <image resource="main_button_full_width"/> + </style> + + <style name="main_button_quarter_width"> + <highlight color="%highlight_color%"/> + <font resource="font_l" color="%text_button_color%"/> + <image resource="main_button_quarter_width"/> + </style> + + <style name="main_button_half_height"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="main_button_half_height"/> + </style> + + <style name="main_button_half_height_full_width"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="main_button_half_height_full_width"/> + </style> + + <style name="button_third_width"> + <highlight color="%highlight_color%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="tab_3"/> + </style> + + <style name="console"> + <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/> + <font resource="fixed"/> + </style> + + <style name="fileselector"> + <highlight color="%fileselector_highlight_color%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <sort name="tw_gui_sort_order"/> + <icon folder="folder" file="file"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/> + </style> + + <style name="listbox"> + <highlight color="%fileselector_highlight_color%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <icon selected="radio_true" unselected="radio_false"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/> + </style> + + <style name="listbox_headerless"> + <highlight color="%fileselector_highlight_color%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <icon selected="radio_true" unselected="radio_false"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/> + </style> + + <style name="listbox_options"> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/> + <icon selected="checkbox_true_small" unselected="checkbox_false_small"/> + </style> + + <style name="scrolllist"> + <highlight color="%fileselector_highlight_color%"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <icon selected="checkbox_true" unselected="checkbox_false"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/> + </style> + + <style name="partitionlist"> + <highlight color="%fileselector_highlight_color%"/> + <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/> + <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/> + <icon selected="checkbox_true" unselected="checkbox_false"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/> + </style> + + <style name="partitionlist_summary"> + <highlight color="%fileselector_highlight_color%"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/> + <icon selected="checkbox_true_small" unselected="checkbox_false_small"/> + </style> + + <style name="partitionlist_headerless_rb"> + <highlight color="%fileselector_highlight_color%"/> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/> + <icon selected="radio_true" unselected="radio_false"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/> + </style> + + <style name="partitionlist_headerless_cb"> + <highlight color="%fileselector_highlight_color%"/> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/> + <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/> + <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/> + <icon selected="checkbox_true" unselected="checkbox_false"/> + <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/> + <background color="%background_color%"/> + <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/> + </style> + + <style name="slider"> + <placement x="%center_x%" y="%slider_y%"/> + <font resource="font_l" color="%text_color%"/> + <resource base="slider" used="slider_used" touch="slider_touch"/> + </style> + + <style name="slidervalue"> + <resource handle="handle"/> + <font resource="font_m" color="%text_color%"/> + <colors line="%fileselector_linecolor%"/> + <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/> + </style> + </styles> + + <pages> + <page name="main"> + <action> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="main2"> + <template name="page"/> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Install</text> + <action function="page">install_type</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row1_y%"/> + <text>Wipe</text> + <action function="page">wipe_type1</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>Backup</text> + <actions> + <action function="set">tw_back=main</action> + <action function="page">backup_selectstorage</action> + </actions> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>Restore</text> + <action function="page">restore</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>Reboot</text> + <action function="page">reboot</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <action function="page">main3</action> + </button> + </page> + + <page name="main3"> + <template name="page"/> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Mount</text> + <action function="page">mount</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row1_y%"/> + <text>Settings</text> + <action function="page">settings</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>Files</text> + <action function="page">filemanagerlist</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>Copy Log</text> + <actions> + <action function="set">tw_back=main3</action> + <action function="set">tw_action=copylog</action> + <action function="set">tw_text1=Copy Log to SD Card?</action> + <action function="set">tw_action_text1=Copying Log to SD Card...</action> + <action function="set">tw_complete_text1=Log Copy Complete</action> + <action function="set">tw_slider_text= Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row11_y%"/> + <text>Advanced</text> + <action function="page">advanced</action> + </button> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">main2</action> + </button> + + <action> + <touch key="back"/> + <action function="page">main2</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="install_type"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Install > Select Type</text> + </text> + + <button style="main_button_full_width"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Install Zip</text> + <actions> + <action function="queueclear"/> + <action function="set">tw_selectimage=0</action> + <action function="page">install</action> + </actions> + </button> + + <button style="main_button_full_width"> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>Install Image</text> + <actions> + <action function="queueclear"/> + <action function="set">tw_selectimage=1</action> + <action function="page">install</action> + </actions> + </button> + + <button style="main_button_full_width"> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>ADB Sideload</text> + <action function="page">sideload</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="install"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <condition var1="tw_selectimage" var2="0"/> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Install Zip > Select File</text> + </text> + + <text style="text_m"> + <condition var1="tw_selectimage" var2="1"/> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Install Image > Select File</text> + </text> + + <fileselector> + <condition var1="tw_selectimage" var2="0"/> + <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/> + <text>%tw_zip_location%</text> + <filter extn=".zip" folders="1" files="1"/> + <path name="tw_zip_location" default="/sdcard"/> + <data name="tw_filename"/> + <selection name="tw_file"/> + </fileselector> + + <fileselector> + <condition var1="tw_selectimage" var2="1"/> + <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/> + <text>%tw_zip_location%</text> + <filter extn=".img" folders="1" files="1"/> + <path name="tw_zip_location" default="/sdcard"/> + <data name="tw_filename"/> + <selection name="tw_file"/> + </fileselector> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_storage"/> + <actions> + <action function="set">tw_storagetext=Install > Select Storage</action> + <action function="set">tw_back=install</action> + <action function="page">select_storage</action> + </actions> + </button> + + <action> + <conditions> + <condition var1="tw_selectimage" var2="0"/> + <condition var1="tw_filename" op="modified"/> + </conditions> + <actions> + <action function="queuezip"/> + <action function="page">flash_queue</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_selectimage" var2="1"/> + <condition var1="tw_filename" op="modified"/> + </conditions> + <action function="page">flashimage_type</action> + </action> + + <action> + <touch key="back"/> + <action function="page">install_type</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="flash_queue"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Install Zip > Queue</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row1_y%"/> + <text>File %tw_zip_queue_count% of 10:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row2_y%"/> + <text>%tw_file%</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row4_y%"/> + <text>Folder:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row5_y%"/> + <text>%tw_zip_location%</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row8_y%"/> + <text>Press back button to clear the queue.</text> + </text> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <actions> + <action function="queueclear"/> + <action function="page">install</action> + </actions> + </button> + + <button> + <placement x="%btn4_col2_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_addzip"/> + <action function="page">install</action> + </button> + + <button> + <placement x="%btn4_col3_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_accept"/> + <action function="page">flash_confirm</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <action function="page">flash_options</action> + </button> + + <action> + <touch key="back"/> + <actions> + <action function="queueclear"/> + <action function="page">install</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="flash_options"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <condition var1="tw_selectimage" var2="0"/> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Install Zip > Options</text> + </text> + + <checkbox> + <placement x="%indent%" y="%row1_y%"/> + <text>Zip file signature verification</text> + <data variable="tw_signed_zip_verify"/> + </checkbox> + + <checkbox> + <condition var1="tw_has_injecttwrp" var2="1"/> + <placement x="%indent%" y="%row2a_y%"/> + <text>Inject TWRP after install</text> + <data variable="tw_inject_after_zip"/> + </checkbox> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">flash_queue</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_accept_transp"/> + <action function="page">flash_confirm</action> + </button> + + <action> + <touch key="back"/> + <action function="page">flash_queue</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="flash_confirm"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Install Zip > Confirm Flash</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row1_y%"/> + <text>File:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row2_y%"/> + <text>%tw_file%</text> + </text> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/> + <action function="page">flash_queue</action> + </button> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row4_y%"/> + <text>Queue:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row5_y%"/> + <text>%tw_zip_queue_count% of 10 files queued</text> + </text> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/> + <action function="page">flash_queue</action> + </button> + + <listbox style="listbox_options"> + <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="80"/> + <listitem name="Zip file signature verification"> + <data variable="tw_signed_zip_verify"/> + </listitem> + </listbox> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row7_y%"/> + <text>Options:</text> + </text> + + <text style="text_m"> + <condition var1="tw_has_injecttwrp" var2="1"/> + <condition var1="tw_inject_after_zip" var2="1"/> + <placement x="%indent%" y="%row9_y%"/> + <text>Inject TWRP after install</text> + </text> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%row6a_y%" w="%screen_width%" h="64"/> + <action function="page">flash_options</action> + </button> + + <slider> + <text> Confirm</text> + <action function="flash">flash_zip</action> + </slider> + + <action> + <touch key="back"/> + <actions> + <action function="cancelzip"/> + <action function="page">install</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="flash_zip"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Installing Zip: %tw_file%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <action function="page">flash_done</action> + </action> + </page> + + <page name="flash_done"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m_fail"> + <condition var1="tw_operation_status" op="!=" var2="0"/> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Installation Failed</text> + </text> + + <text style="text_m"> + <condition var1="tw_operation_status" var2="0"/> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Installation Successful</text> + </text> + + <template name="console"/> + + <button style="main_button_half_height"> + <placement x="%col1_x_left%" y="%row13_y%"/> + <text>Wipe cache/dalvik</text> + <actions> + <action function="set">tw_back=flash_done</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=/cache</action> + <action function="set">tw_has_action2=1</action> + <action function="set">tw_action2=wipe</action> + <action function="set">tw_action2_param=dalvik</action> + <action function="set">tw_text1=Wipe Cache & Dalvik?</action> + <action function="set">tw_action_text1=Wiping Cache & Dalvik...</action> + <action function="set">tw_complete_text1=Cache & Dalvik Wipe Complete</action> + <action function="set">tw_slider_text= Wipe</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%col1_x_right%" y="%row13_y%"/> + <text>Reboot System</text> + <actions> + <action function="set">tw_back=main2</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=system</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_text3=</action> + <action function="set">tw_text4=</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text= Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=install_type</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="flashimage_type"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Install Image > Select Target Partition</text> + </text> + + <partitionlist style="partitionlist_headerless_rb"> + <data name="tw_flash_partition"/> + <listtype name="flashimg"/> + </partitionlist> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">install</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_accept_transp"/> + <action function="page">flashimage_confirm</action> + </button> + + <action> + <touch key="back"/> + <action function="page">install</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="flashimage_confirm"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Install Image > Confirm Flash</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row1_y%"/> + <text>File:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row2_y%"/> + <text>%tw_file%</text> + </text> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/> + <action function="page">install</action> + </button> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row4_y%"/> + <text>Target Partition:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row5_y%"/> + <text>%tw_flash_partition%</text> + </text> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/> + <action function="page">flashimage_type</action> + </button> + + <slider> + <text> Confirm</text> + <actions> + <action function="set">tw_back=flashimage_confirm</action> + <action function="set">tw_action=flashimage</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_action_text1=Flashing Image...</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_complete_text1=Image Flashed</action> + <action function="page">action_page</action> + </actions> + <action function="flashimage"/> + </slider> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=install</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="clear_vars"> + <action> + <action function="set">tw_operation_state=0</action> + <action function="set">tw_text1=</action> + <action function="set">tw_text2=</action> + <action function="set">tw_text3=</action> + <action function="set">tw_text4=</action> + <action function="set">tw_action_text1=</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_action_param=</action> + <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="set">tw_show_exclamation=0</action> + <action function="set">tw_show_reboot=0</action> + <action function="page">%tw_clear_destination%</action> + </action> + </page> + + <page name="confirm_action"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Confirm Action</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>%tw_text1%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>%tw_text2%</text> + </text> + + <text style="text_m"> + <condition var1="tw_action" op="!=" var2="changefilesystem"/> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>%tw_text3%</text> + </text> + + <text style="text_m"> + <condition var1="tw_action" op="!=" var2="changefilesystem"/> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>%tw_text4%</text> + </text> + + <text style="text_m_fail"> + <condition var1="tw_action" var2="changefilesystem"/> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>%tw_text3%</text> + </text> + + <text style="text_m_fail"> + <condition var1="tw_action" var2="changefilesystem"/> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>%tw_text4%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row8_y%" placement="5"/> + <text>Press back button to cancel.</text> + </text> + + <slider> + <text>%tw_slider_text%</text> + <action function="page">action_page</action> + </slider> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="action_page"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>%tw_action_text1% %tw_action_text2%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <button style="main_button_half_height"> + <condition var1="tw_has_cancel" var2="1"/> + <placement x="%col1_x_right%" y="%row13_y%"/> + <text>Cancel</text> + <action function="%tw_cancel_action%">%tw_cancel_param%</action> + </button> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <actions> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="0"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="1"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + <action function="%tw_action2%">%tw_action2_param%</action> + </actions> + </action> + </page> + + <page name="singleaction_page"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>%tw_action_text1% %tw_action_text2%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <actions> + <action function="set">tw_page_done=1</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="0"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + </actions> + </action> + + <action> + <condition var1="tw_has_action2" var2="1"/> + <actions> + <action function="%tw_action%">%tw_action_param%</action> + <action function="%tw_action2%">%tw_action2_param%</action> + </actions> + </action> + </page> + + <page name="action_complete"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m_fail"> + <condition var1="tw_operation_status" op="!=" var2="0"/> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>%tw_complete_text1% Failed</text> + </text> + + <text style="text_m"> + <condition var1="tw_operation_status" var2="0"/> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>%tw_complete_text1% Successful</text> + </text> + + <template name="console"/> + + <button style="main_button_half_height"> + <placement x="%col1_x_left%" y="%row13_y%"/> + <text>Back</text> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="page">clear_vars</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%col1_x_right%" y="%row13_y%"/> + <text>Reboot System</text> + <actions> + <action function="set">tw_back=main2</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=system</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_text3=</action> + <action function="set">tw_text4=</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_action_text2=</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text= Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_clear_destination=main2</action> + <action function="page">clear_vars</action> + </actions> + </action> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="page">clear_vars</action> + </actions> + </action> + </page> + + <page name="filecheck"> + <action> + <action function="fileexists">%tw_filecheck%</action> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" var2="0"/> + </conditions> + <actions> + <action function="set">tw_fileexists=1</action> + <action function="page">%tw_existpage%</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" var2="1"/> + </conditions> + <actions> + <action function="set">tw_fileexists=0</action> + <action function="page">%tw_notexistpage%</action> + </actions> + </action> + </page> + + <page name="rebootcheck"> + <action> + <condition var1="tw_backup_system_size" op=">=" var2="%tw_min_system%"/> + <action function="reboot">%tw_action_param%</action> + </action> + + <action> + <condition var1="tw_backup_system_size" op="<" var2="%tw_min_system%"/> + <action function="page">confirm_action</action> + </action> + </page> + + <page name="wipe_type1"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Wipe > Select Type</text> + </text> + + <button style="main_button_full_width"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Factory Reset</text> + <action function="page">wipe</action> + </button> + + <button style="main_button_full_width"> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>Advanced Wipe</text> + <actions> + <action function="set">partitionlisterror=0</action> + <action function="page">advancedwipe</action> + </actions> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <action function="page">wipe_type2</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="wipe_type2"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Wipe > Select Type</text> + </text> + + <button style="main_button_full_width"> + <condition var1="tw_has_data_media" var2="1"/> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Format Data</text> + <action function="page">formatdata</action> + </button> + + <button style="main_button_full_width"> + <conditions> + <condition var1="tw_is_encrypted" var2="1"/> + <condition var1="tw_has_data_media" var2="0"/> + </conditions> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Wipe Encryption</text> + <actions> + <action function="set">tw_back=wipe</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=DATAMEDIA</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Wipe Encryption from Data?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Formatting Data...</action> + <action function="set">tw_complete_text1=Data Format Complete</action> + <action function="set">tw_slider_text= Format Data</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_full_width"> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>File System Options</text><actions> + <action function="set">partitionlisterror=0</action> + <action function="page">partitionoptions_select</action> + </actions> + </button> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">wipe_type1</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="wipe"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Wipe > Factory Reset</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row1_y%" placement="5"/> + <text>Wipes Data, Cache, and Dalvik</text> + </text> + + <text style="text_m_accent"> + <condition var1="tw_has_data_media" var2="1"/> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>(not including internal storage)</text> + </text> + + <text style="text_m_accent"> + <conditions> + <condition var1="tw_has_android_secure" var2="1"/> + <condition var1="fileexists" var2="/and-sec"/> + </conditions> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>Android Secure</text> + </text> + + <text style="text_m_accent"> + <condition var1="tw_has_sdext_partition" var2="1"/> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>SD-EXT</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>Most of the time this is</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row7_y%" placement="5"/> + <text>the only wipe that you need.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row9_y%" placement="5"/> + <text>Press back button to cancel.</text> + </text> + + <slider> + <text> Wipe</text> + <actions> + <action function="set">tw_back=wipe</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=data</action> + <action function="set">tw_action_text1=Factory Reset...</action> + <action function="set">tw_complete_text1=Factory Reset Complete</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="back"/> + <action function="page">wipe_type1</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="advancedwipe"> + <action> + <action function="set">tw_wipe_list=</action> + </action> + + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Wipe > Advanced Wipe > Select Partitions</text> + </text> + + <partitionlist style="partitionlist_headerless_cb"> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/> + <data name="tw_wipe_list"/> + <listtype name="wipe"/> + </partitionlist> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/> + </fill> + + <slider> + <text> Wipe</text> + <actions> + <action function="set">tw_back=advancedwipe</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=LIST</action> + <action function="set">tw_text1=Wipe Selected Partition(s)?</action> + <action function="set">tw_action_text1=Wiping Partition(s)...</action> + <action function="set">tw_complete_text1=Wipe Complete</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">wipe_type1</action> + </action> + </page> + + <page name="formatdata"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Wipe > Format Data</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row1_y%" placement="5"/> + <text>Format Data will wipe all of your apps,</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>backups and media. This cannot be undone.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>Type yes to continue. Press back to cancel.</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row5_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_confirm_formatdata%</text> + <data name="tw_confirm_formatdata"/> + <restrict minlen="3" maxlen="3" allow="yes"/> + <action function="page">formatdata_confirm</action> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row6_input_y" w="%content_width%" h="input_line_width"/> + </fill> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">wipe_type2</action> + </action> + </page> + + <page name="formatdata_confirm"> + <action> + <condition var1="tw_confirm_formatdata" op="=" var2="yes"/> + <actions> + <action function="set">tw_back=formatdata</action> + <action function="set">tw_action=wipe</action> + <action function="set">tw_action_param=DATAMEDIA</action> + <action function="set">tw_action_text1=Formatting Data...</action> + <action function="set">tw_complete_text1=Data Format Complete</action> + <action function="page">action_page</action> + </actions> + </action> + + <action> + <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/> + <action function="page">formatdata</action> + </action> + </page> + + <page name="checkpartitionlist"> + <action> + <condition var1="tw_check_partition_list" op="=" var2="1"/> + <actions> + <action function="set">partitionlisterror=0</action> + <action function="getpartitiondetails"/> + <action function="page">partitionoptions</action> + </actions> + </action> + + <action> + <condition var1="tw_check_partition_list" op="!=" var2="1"/> + <actions> + <action function="set">partitionlisterror=1</action> + <action function="set">tw_wipe_list=</action> + <action function="page">partitionoptions_select</action> + </actions> + </action> + </page> + + <page name="partitionoptions_select"> + <action> + <action function="set">tw_wipe_list=</action> + </action> + + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Wipe > File System Options > Select Partitions</text> + </text> + + <partitionlist style="partitionlist_headerless_cb"> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/> + <data name="tw_wipe_list"/> + <listtype name="wipe"/> + </partitionlist> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/> + </fill> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>Select only one partition!</text> + </text> + + <text style="text_m_fail"> + <condition var1="partitionlisterror" var2="1"/> + <placement x="%col1_x_left%" y="%row12_y%"/> + <text>Invalid selection!</text> + </text> + + <text style="text_m"> + <condition var1="partitionlisterror" var2="1"/> + <placement x="%col1_x_left%" y="%row13_y%"/> + <text>Not all listed partitions</text> + </text> + + <text style="text_m"> + <condition var1="partitionlisterror" var2="1"/> + <placement x="%col1_x_left%" y="%row14_y%"/> + <text>can be modified.</text> + </text> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/><actions> + <action function="checkpartitionlist"/> + <action function="page">checkpartitionlist</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">wipe_type2</action> + </action> + </page> + + <page name="partitionoptions"> + + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Wipe > File System Options > Select Action</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Partition: %tw_partition_name%</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row1_y%"/> + <text>File system: %tw_partition_file_system%</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_is_present" var2="1"/> + <placement x="%col1_x_left%" y="%row2a_y%"/> + <text>Present: Yes</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_is_present" var2="0"/> + <placement x="%col1_x_left%" y="%row2a_y%"/> + <text>Present: No</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_removable" var2="1"/> + <placement x="%col1_x_right%" y="%row2a_y%"/> + <text>Removable: Yes</text> + </text> + + <text style="text_m"> + <condition var1="tw_partition_removable" var2="0"/> + <placement x="%col1_x_right%" y="%row2a_y%"/> + <text>Removable: No</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row3a_y%"/> + <text>Size: %tw_partition_size%MB</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_right%" y="%row3a_y%"/> + <text>Used: %tw_partition_used%MB</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row4a_y%"/> + <text>Free: %tw_partition_free%MB</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_right%" y="%row4a_y%"/> + <text>Backup Size: %tw_partition_backup_size%MB</text> + </text> + + <button style="main_button"> + <condition var1="tw_partition_can_resize" op="=" var2="1"/> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>Resize</text> + <actions> + <action function="set">tw_back=partitionoptions</action> + <action function="set">tw_action=resize</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_has_action2=1</action> + <action function="set">tw_action2=getpartitiondetails</action> + <action function="set">tw_text1=Resize %tw_partition_name%?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Resizing...</action> + <action function="set">tw_complete_text1=Resize Complete</action> + <action function="set">tw_slider_text= Resize</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_partition_can_repair" op="=" var2="1"/> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>Repair</text> + <actions> + <action function="set">tw_back=partitionoptions</action> + <action function="set">tw_action=repair</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Repair %tw_partition_name%?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_action_text1=Repairing...</action> + <action function="set">tw_complete_text1=Repair Complete</action> + <action function="set">tw_slider_text= Repair</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">partitionoptions_select</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row11_y%"/> + <text>Change</text> + <action function="page">selectfilesystem</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">partitionoptions_select</action> + </action> + </page> + + <page name="refreshfilesystem"> + <action> + <condition var1="tw_check_partition_list" op="=" var2="1"/> + <actions> + <action function="set">partitionlisterror=0</action> + <action function="getpartitiondetails"/> + <action function="page">selectfilesystem</action> + </actions> + </action> + + <action> + <condition var1="tw_check_partition_list" op="!=" var2="1"/> + <actions> + <action function="set">partitionlisterror=1</action> + <action function="set">tw_wipe_list=</action> + <action function="page">advancedwipe</action> + </actions> + </action> + </page> + + <page name="selectfilesystem"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Partition: %tw_partition_name% > Select File System</text> + </text> + + <button style="main_button"> + <condition var1="tw_partition_ext" op="=" var2="1"/> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>EXT2</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=ext2</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to EXT2?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_text3=Not all file systems are supported</action> + <action function="set">tw_text4=by all kernels. Proceed with caution!</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text= Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_partition_ext" op="=" var2="1"/> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>EXT3</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=ext3</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to EXT3?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_text3=Not all file systems are supported</action> + <action function="set">tw_text4=by all kernels. Proceed with caution!</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text= Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_partition_ext" op="=" var2="1"/> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>EXT4</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=ext4</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to EXT4?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_text3=Not all file systems are supported by all kernels.</action> + <action function="set">tw_text4=Proceed with caution!</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text= Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_partition_vfat" op="=" var2="1"/> + <placement x="%col1_x_right%" y="%row1_y%"/> + <text>FAT</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=vfat</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to FAT?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_text3=Not all file systems are supported</action> + <action function="set">tw_text4=by all kernels. Proceed with caution!</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text= Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_partition_exfat" op="=" var2="1"/> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>exFAT</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=exfat</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to exFAT?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_text3=Not all file systems are supported</action> + <action function="set">tw_text4=by all kernels. Proceed with caution!</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text= Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_partition_f2fs" op="=" var2="1"/> + <placement x="%col1_x_right%" y="%row11_y%"/> + <text>F2FS</text> + <actions> + <action function="set">tw_back=refreshfilesystem</action> + <action function="set">tw_action=changefilesystem</action> + <action function="set">tw_action_param=%tw_partition_mount_point%</action> + <action function="set">tw_action_new_file_system=f2fs</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=Change %tw_partition_name% to F2FS?</action> + <action function="set">tw_text2=</action> + <action function="set">tw_text3=Not all file systems are supported</action> + <action function="set">tw_text4=by all kernels. Proceed with caution!</action> + <action function="set">tw_action_text1=Formatting...</action> + <action function="set">tw_complete_text1=Format Complete</action> + <action function="set">tw_slider_text= Change</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">partitionoptions</action> + </action> + </page> + + <page name="backup_selectstorage"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Backup > Select Storage</text> + </text> + + <partitionlist style="partitionlist_headerless_rb"> + <data name="tw_storage_path"/> + <listtype name="storage"/> + </partitionlist> + + <button> + <placement x="%btn4_col2_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_refresh"/> + <actions> + <action function="refreshsizes"/> + <action function="page">backup_selectstorage</action> + </actions> + </button> + + <button> + <condition var1="tw_back" var2="backup_confirm"/> + <placement x="%btn4_col3_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_accept"/> + <action function="page">backup_confirm</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <actions> + <action function="set">tw_back=backup_selectstorage</action> + <action function="page">backup_selectpartitions</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">%tw_back%</action> + </action> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + + <page name="backup_selectpartitions"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Backup > Select Partitions</text> + </text> + + <partitionlist style="partitionlist_headerless_cb"> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/> + <data name="tw_backup_list"/> + <listtype name="backup"/> + </partitionlist> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/> + </fill> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">backup_selectstorage</action> + </button> + + <button> + <placement x="%btn4_col2_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_refresh"/> + <action function="page">backup_selectpartitions</action> + </button> + + <button> + <placement x="%btn4_col3_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_accept"/> + <action function="page">backup_confirm</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <actions> + <action function="set">tw_back=backup_selectpartitions</action> + <action function="page">backup_options</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">%tw_back%</action> + </action> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + + <page name="backup_options"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Backup > Options</text> + </text> + + <listbox style="scrolllist"> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/> + <listitem name="Enable compression"> + <data variable="tw_use_compression"/> + </listitem> + <listitem name="Skip MD5 generation during backup"> + <data variable="tw_skip_md5_generate"/> + </listitem> + <listitem name="Disable Free Space Check"> + <data variable="tw_disable_free_space"/> + </listitem> + </listbox> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">backup_selectpartitions</action> + </button> + + <button> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="0"/> + </conditions> + <placement x="%btn4_col2_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_encryption_dis"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="set">tw_back=backup_options</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <button> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="1"/> + </conditions> + <placement x="%btn4_col2_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_encryption_en"/> + <actions> + <action function="set">tw_password_not_match=0</action> + <action function="set">tw_back=backup_options</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_accept_transp"/> + <actions> + <action function="set">tw_back=backup_options</action> + <action function="page">backup_confirm</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">%tw_back%</action> + </action> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + + <page name="backup_confirm"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Backup > Confirm Backup</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Name:</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row2_y%"/> + <text>%tw_backup_name%</text> + </text> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_half_width%" h="input_line_width" placement="1"/> + </fill> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%row2_header_y%" w="%screen_half_width%" h="48"/> + <actions> + <action function="set">tw_back=backup_confirm</action> + <action function="set">tw_fileexists=0</action> + <action function="page">backup_name1</action> + </actions> + </button> + + <fill color="%background_color%"> + <placement x="%col1_x_left_negative%" y="%row2_header_y%" w="%screen_half_width%" h="48"/> + </fill> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row3a_y%"/> + <text>Partitions:</text> + </text> + + <partitionlist style="partitionlist_summary"> + <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/> + <data name="tw_backup_list"/> + <listtype name="backup"/> + </partitionlist> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/> + <actions> + <action function="set">tw_back=backup_confirm</action> + <action function="page">backup_selectpartitions</action> + </actions> + </button> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row1_y%"/> + <text>Storage:</text> + </text> + + <text style="text_m"> + <placement x="%col1_x_right%" y="%row2_y%"/> + <text>%tw_storage_display_name%</text> + </text> + + <button> + <fill color="%transparent%"/> + <placement x="%center_x%" y="%row2_header_y%" w="%screen_half_width%" h="48"/> + <actions> + <action function="set">tw_back=backup_confirm</action> + <action function="page">backup_selectstorage</action> + </actions> + </button> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row3a_y%"/> + <text>Encryption:</text> + </text> + + <text style="text_m"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="0"/> + </conditions> + <placement x="%col1_x_right%" y="%row4a_y%"/> + <text>Disabled</text> + </text> + + <text style="text_m"> + <conditions> + <condition var1="tw_include_encrypted_backup" var2="1"/> + <condition var1="tw_encrypt_backup" var2="1"/> + </conditions> + <placement x="%col1_x_right%" y="%row4a_y%"/> + <text>Enabled</text> + </text> + + <button> + <fill color="%transparent%"/> + <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="48"/> + <actions> + <action function="set">tw_back=backup_confirm</action> + <action function="page">backupencryption</action> + </actions> + </button> + + <listbox style="listbox_options"> + <placement x="%col1_x_right%" y="%row7_y%" w="%content_half_width%" h="80"/> + <listitem name="Enable Compression"> + <data variable="tw_use_compression"/> + </listitem> + <listitem name="Skip MD5 generation"> + <data variable="tw_skip_md5_generate"/> + </listitem> + <listitem name="Skip Free Space Check"> + <data variable="tw_disable_free_space"/> + </listitem> + </listbox> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>Options:</text> + </text> + + <button> + <fill color="%transparent%"/> + <placement x="%center_x%" y="%row6_y%" w="%screen_half_width%" h="64"/> + <actions> + <action function="set">tw_back=backup_confirm</action> + <action function="page">backup_options</action> + </actions> + </button> + + <slider> + <text> Confirm</text> + <action function="page">backup_run</action> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">backup_selectstorage</action> + </action> + </page> + + <page name="backup_name1"> + <action> + <condition var1="tw_backup_name" op="=" var2="(Auto Generate)"/> + <action function="generatebackupname"/> + </action> + + <action> + <action function="page">backup_name2</action> + </action> + </page> + + <page name="backup_name2"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Backup > Set Backup Name</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_backup_name%</text> + <data name="tw_backup_name"/> + <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/> + <actions> + <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action> + <action function="set">tw_existpage=backup_name2</action> + <action function="set">tw_notexistpage=backup_confirm</action> + <action function="page">filecheck</action> + </actions> + </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_fileexists" 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_fileexists" var2="1"/> + <placement x="%col1_x_left%" y="%row3_input_y%"/> + <text>A backup with that name already exists!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%col1_x_left%" y="%row4_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_backup_name=(Auto Generate)</action> + <action function="page">backup_confirm</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%col1_x_right%" y="%row4_y%"/> + <text>Append Date</text> + <action function="appenddatetobackupname"/> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <actions> + <action function="set">tw_backup_name=(Auto Generate)</action> + <action function="page">main</action> + </actions> + </action> + + <action> + <touch key="back"/> + <actions> + <action function="set">tw_backup_name=(Auto Generate)</action> + <action function="page">backup_confirm</action> + </actions> + </action> + </page> + + <page name="backupencryption"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Backup > Enable Encryption</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Enter Password:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_backup_encrypt_display%</text> + <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/> + <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/> + <action function="page">backupencryption2</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_not_match" 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_not_match" var2="1"/> + <placement x="%col1_x_left%" y="%row3_input_y%"/> + <text>Passwords do not match!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%col1_x_right%" y="%row4_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_encrypt_backup=0</action> + <action function="set">tw_backup_password=</action> + <action function="set">tw_backup_password2=</action> + <action function="set">tw_backup_encrypt_display=</action> + <action function="set">tw_backup_encrypt_display2=</action> + <action function="page">%tw_back%</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">%tw_back%</action> + </action> + </page> + + <page name="backupencryption2"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Backup > Enable Encryption</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Enter Password again:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_backup_encrypt_display2%</text> + <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/> + <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/> + <action function="page">checkbackuppassword</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> + + <button style="main_button_half_height"> + <placement x="%col1_x_right%" y="%row4_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_encrypt_backup=0</action> + <action function="set">tw_backup_password=</action> + <action function="set">tw_backup_password2=</action> + <action function="set">tw_backup_encrypt_display=</action> + <action function="set">tw_backup_encrypt_display2=</action> + <action function="page">%tw_back%</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">%tw_back%</action> + </action> + </page> + + <page name="checkbackuppassword"> + <action> + <condition var1="tw_backup_password2" var2="tw_backup_password"/> + <actions> + <action function="set">tw_encrypt_backup=1</action> + <action function="page">%tw_back%</action> + </actions> + </action> + + <action> + <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/> + <actions> + <action function="set">tw_encrypt_backup=0</action> + <action function="set">tw_password_not_match=1</action> + <action function="set">tw_backup_password=</action> + <action function="set">tw_backup_password2=</action> + <action function="set">tw_backup_encrypt_display=</action> + <action function="set">tw_backup_encrypt_display2=</action> + <action function="page">backupencryption</action> + </actions> + </action> + </page> + + <page name="backup_run"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>%tw_operation% %tw_partition%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <text style="text_m"> + <placement x="%indent%" y="%row13a_y%"/> + <text>%tw_file_progress%</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row14a_y%"/> + <text>%tw_size_progress%</text> + </text> + + <button style="main_button_half_height"> + <placement x="%col1_x_right%" y="%row13_y%"/> + <text>Cancel</text> + <action function="cancelbackup"/> + </button> + + <action> + <action function="nandroid">backup</action> + </action> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_cancel_backup" var2="0"/> + <actions> + <action function="set">tw_back=backup_selectpartitions</action> + <action function="set">tw_complete_text1=Backup Complete</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_cancel_backup" var2="1"/> + <actions> + <action function="set">tw_back=backup_selectpartitions</action> + <action function="set">tw_complete_text1=Backup Cancelled</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_complete</action> + </actions> + </action> + </page> + + <page name="restore"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Restore > Select Backup</text> + </text> + + <fileselector> + <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/> + <text>%tw_storage_display_name%</text> + <filter folders="1" files="0" nav="0"/> + <path name="tw_backups_folder"/> + <data name="tw_restore" default=""/> + <selection name="tw_restore_name"/> + </fileselector> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_storage"/> + <actions> + <action function="set">tw_storagetext=Restore > Select Storage</action> + <action function="set">tw_back=restore</action> + <action function="page">select_storage</action> + </actions> + </button> + + <action> + <condition var1="tw_restore" op="modified"/> + <actions> + <action function="readBackup"/> + <action function="set">tw_back=restore</action> + <action function="page">restore_read</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="restore_read"> + <action> + <condition var1="tw_restore_encrypted" var2="1"/> + <actions> + <action function="set">tw_password_fail=0</action> + <action function="page">restore_decrypt</action> + </actions> + </action> + + <action> + <condition var1="tw_restore_encrypted" var2="0"/> + <actions> + <action function="page">restore_select</action> + </actions> + </action> + </page> + + <page name="restore_decrypt"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Restore > Encrypted Backup</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Enter Password:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_restore_display%</text> + <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/> + <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/> + <action function="page">try_restore_decrypt</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>Password failed, please try again!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%col1_x_left%" y="%row4_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">restore</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%col1_x_right%" y="%row4_y%"/> + <text>Delete Backup</text> + <actions> + <action function="set">tw_back=restore</action> + <action function="set">tw_action=cmd</action> + <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf "%tw_restore_name%"</action> + <action function="set">tw_text1=Delete Backup? %tw_restore_name%</action> + <action function="set">tw_text2=This cannot be undone!</action> + <action function="set">tw_action_text1=Deleting Backup...</action> + <action function="set">tw_complete_text1=Backup Delete Complete</action> + <action function="set">tw_slider_text=Delete</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">restore</action> + </action> + </page> + + <page name="try_restore_decrypt"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Restore > Trying Decryption</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <action function="decrypt_backup"/> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="!=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_password_fail=1</action> + <action function="page">restore_decrypt</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">restore_select</action> + </actions> + </action> + </page> + + <page name="restore_select"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Restore > Select Partitions</text> + </text> + + <partitionlist style="partitionlist_headerless_cb"> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/> + <data name="tw_restore_list" selectedlist="tw_restore_selected"/> + <listtype name="restore"/> + </partitionlist> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/> + </fill> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">restore</action> + </button> + + <button> + <placement x="%btn4_col2_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_delete"/> + <actions> + <action function="set">tw_back=restore</action> + <action function="set">tw_action=cmd</action> + <action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf "%tw_restore_name%"</action> + <action function="set">tw_text1=Delete Backup?</action> + <action function="set">tw_text2=%tw_restore_name%</action> + <action function="set">tw_text4=This cannot be undone!</action> + <action function="set">tw_action_text1=Deleting Backup...</action> + <action function="set">tw_complete_text1=Backup Delete Complete</action> + <action function="set">tw_slider_text= Delete</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button> + <placement x="%btn4_col3_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_accept"/> + <action function="page">restore_confirm</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <actions> + <action function="set">tw_back=restore_select</action> + <action function="page">restore_options</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">%tw_back%</action> + </action> + </page> + + <page name="restore_options"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Restore > Options</text> + </text> + + <listbox style="scrolllist"> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/> + <listitem name="Enable MD5 verification of backup files"> + <data variable="tw_skip_md5_check"/> + </listitem> + </listbox> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">restore_select</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_accept_transp"/> + <actions> + <action function="set">tw_back=restore_options</action> + <action function="page">restore_confirm</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">%tw_back%</action> + </action> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + + <page name="renamebackup"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Restore > Rename Backup</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_backup_rename%</text> + <data name="tw_backup_rename"/> + <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/> + <actions> + <action function="set">tw_back=restore</action> + <action function="set">tw_action=cmd</action> + <action function="set">tw_action_param=cd %tw_backups_folder% && mv "%tw_restore_name%" "%tw_backup_rename%"</action> + <action function="set">tw_text1=Rename Backup?</action> + <action function="set">tw_text2=This cannot be undone!</action> + <action function="set">tw_action_text1=Renaming Backup...</action> + <action function="set">tw_complete_text1=Backup Rename Complete</action> + <action function="set">tw_slider_text=Rename</action> + <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action> + <action function="set">tw_existpage=renamebackup</action> + <action function="set">tw_notexistpage=confirm_action</action> + <action function="page">filecheck</action> + </actions> + </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_fileexists" 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_fileexists" var2="1"/> + <placement x="%col1_x_left%" y="%row3_input_y%"/> + <text>A backup with that name already exists!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%col1_x_left%" y="%row4_y%"/> + <text>Cancel</text> + <action function="page">restore_confirm</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">restore_confirm</action> + </action> + </page> + + <page name="restore_confirm"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Restore > Confirm</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row1_y%"/> + <text>Name:</text> + </text> + + <text style="text_m"> + <placement x="%indent%" y="%row2_y%"/> + <text>%tw_restore_name%</text> + </text> + + <fill color="%accent_color%"> + <placement x="%indent%" y="64" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/> + <actions> + <action function="set">tw_back=restore_confirm</action> + <action function="set">tw_backup_rename=%tw_restore_name%</action> + <action function="set">tw_fileexists=0</action> + <action function="page">renamebackup</action> + </actions> + </button> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row3a_y%"/> + <text>Partitions:</text> + </text> + + <partitionlist style="partitionlist_summary"> + <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/> + <data name="tw_restore_list" selectedlist="tw_restore_selected"/> + <listtype name="restore"/> + </partitionlist> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/> + <actions> + <action function="set">tw_back=restore_confirm</action> + <action function="page">restore_select</action> + </actions> + </button> + + <listbox style="listbox_options"> + <placement x="%col1_x_right%" y="%row4a_y%" w="%content_half_width%" h="80"/> + <listitem name="MD5 verification"> + <data variable="tw_skip_md5_check"/> + </listitem> + </listbox> + + <text style="text_m_accent"> + <placement x="%col1_x_right%" y="%row3a_y%"/> + <text>Options:</text> + </text> + + <button> + <fill color="%transparent%"/> + <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="64"/> + <actions> + <action function="set">tw_back=restore_confirm</action> + <action function="page">restore_options</action> + </actions> + </button> + + <slider> + <text> Restore</text> + <action function="page">restore_run</action> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">restore_options</action> + </action> + </page> + + <page name="restore_run"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>%tw_operation% %tw_partition%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <text style="text_m"> + <placement x="%indent%" y="%row14a_y%"/> + <text>%tw_size_progress%</text> + </text> + + <action> + <condition var1="tw_operation_state" var2="1"/> + <actions> + <action function="set">tw_back=restore</action> + <action function="set">tw_complete_text1=Restore Complete</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <action function="nandroid">restore</action> + </action> + </page> + + <page name="mount"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Mount > %tw_storage_display_name%</text> + </text> + + <partitionlist style="partitionlist_headerless_cb"> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/> + <listtype name="mount"/> + </partitionlist> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/> + </fill> + + <button style="checkbox"> + <condition var1="tw_mount_system_ro" op="=" var2="0"/> + <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/> + <text>Mount System RO</text> + <image resource="checkbox_false"/> + <action function="mountsystemtoggle">1</action> + </button> + + <button style="checkbox"> + <condition var1="tw_mount_system_ro" op="!=" var2="0"/> + <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/> + <text>Mount System RO</text> + <image resource="checkbox_true"/> + <actions> + <action function="set">tw_lifetime_writes=2</action> + <action function="page">system_readonly_check</action> + </actions> + </button> + + <button style="checkbox"> + <conditions> + <condition var1="tw_has_mtp" var2="1"/> + <condition var1="tw_mtp_enabled" var2="0"/> + </conditions> + <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/> + <image resource="checkbox_false"/> + <text>Enable MTP</text> + <action function="startmtp"/> + </button> + + <button style="checkbox"> + <conditions> + <condition var1="tw_has_mtp" var2="1"/> + <condition var1="tw_mtp_enabled" var2="1"/> + </conditions> + <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/> + <image resource="checkbox_true"/> + <text>Enable MTP</text> + <action function="stopmtp"/> + </button> + + <button> + <placement x="%btn4_col3_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_storage"/> + <actions> + <action function="set">tw_storagetext=Mount > Select Storage</action> + <action function="set">tw_back=mount</action> + <action function="page">select_storage</action> + </actions> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <action function="page">mount_options</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="mount_options"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Mount > %tw_storage_display_name%</text> + </text> + + <button style="main_button_full_width"> + <condition var1="tw_has_usb_storage" var2="1"/> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Mount USB Storage</text> + <action function="page">usb_mount</action> + </button> + + <button style="main_button_full_width"> + <conditions> + <condition var1="tw_is_encrypted" var2="1"/> + <condition var1="tw_is_decrypted" var2="0"/> + </conditions> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>Decrypt Data</text> + <action function="page">decrypt</action> + </button> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">mount</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">mount</action> + </action> + </page> + + <page name="usb_mount"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Mount > USB Storage</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row1_y%" placement="5"/> + <text>Device mounted as USB Storage</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>Be sure to safely remove your device</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>from your computer before unmounting!</text> + </text> + + <button style="main_button"> + <placement x="%btn4_col2_x%" y="%row11_y%"/> + <text>Unmount</text> + <action function="page">usb_umount</action> + </button> + + <action> + <action function="mount">usb</action> + <action function="set">tw_busy=1</action> + </action> + </page> + + <page name="usb_umount"> + <action> + <action function="unmount">usb</action> + </action> + + <action> + <action function="page">mount_options</action> + <action function="set">tw_busy=0</action> + </action> + </page> + + <page name="system_readonly_check"> + <action> + <action function="checkpartitionlifetimewrites">/system</action> + </action> + + <action> + <condition var1="tw_lifetime_writes" var2="1"/> + <actions> + <action function="mountsystemtoggle">0</action> + <action function="page">mount</action> + </actions> + </action> + + <action> + <condition var1="tw_lifetime_writes" var2="0"/> + <actions> + <action function="set">tw_back=mount</action> + <action function="page">system_readonly</action> + </actions> + </action> + </page> + + <page name="reboot"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Reboot Menu</text> + </text> + + <button style="main_button"> + <condition var1="tw_reboot_system" var2="1"/> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>System</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=system</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_reboot_poweroff" var2="1"/> + <placement x="%col1_x_right%" y="%row1_y%"/> + <text>Power Off</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=poweroff</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to power off?</action> + <action function="set">tw_action_text1=Turning Off...</action> + <action function="set">tw_complete_text1=Turning Off...</action> + <action function="set">tw_slider_text=Power Off</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_reboot_recovery" var2="1"/> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>Recovery</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=recovery</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_reboot_bootloader" var2="1"/> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>Bootloader</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=bootloader</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_download_mode" var2="1"/> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>Download</text> + <actions> + <action function="set">tw_back=reboot</action> + <action function="set">tw_action=reboot</action> + <action function="set">tw_action_param=download</action> + <action function="set">tw_has_action2=0</action> + <action function="set">tw_text1=No OS Installed! Are you</action> + <action function="set">tw_text2=sure you wish to reboot?</action> + <action function="set">tw_action_text1=Rebooting...</action> + <action function="set">tw_complete_text1=Rebooting...</action> + <action function="set">tw_slider_text=Reboot</action> + <action function="page">rebootcheck</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main</action> + </action> + </page> + + <page name="system_readonly"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Unmodified System Partition</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row1_y%" placement="5"/> + <text>TWRP has detected an unmodified system partition</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>TWRP can leave your system partition unmodified</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>to make it easier for you to take official updates.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>TWRP will be unable to prevent the stock ROM from</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>replacing TWRP and will not offer to root your device.</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row7_y%" placement="5"/> + <text>Installing zips or performing adb operations may still</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row8_y%" placement="5"/> + <text>modify the system partition.</text> + </text> + + <checkbox> + <condition var1="tw_is_encrypted" var2="0"/> + <placement x="%indent%" y="%row10_y%"/> + <text>Never show this screen during boot again</text> + <data variable="tw_never_show_system_ro_page"/> + </checkbox> + + <button style="main_button_half_height"> + <placement x="%col1_x_left%" y="%row13_y%"/> + <text>Keep Read Only</text> + <actions> + <action function="mountsystemtoggle">1</action> + <action function="set">tw_page_done=1</action> + <action function="page">%tw_back%</action> + </actions> + </button> + + <button style="main_button_half_height"> + <placement x="%col1_x_right%" y="%row13_y%"/> + <text>Allow Modifications</text> + <actions> + <action function="mountsystemtoggle">0</action> + <action function="set">tw_page_done=1</action> + <action function="page">%tw_back%</action> + </actions> + </button> + </page> + + <page name="settings"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Settings</text> + </text> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>General</text> + <action function="page">settings_general</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row1_y%"/> + <text>Time Zone</text> + <action function="page">settings_timezone</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>Screen</text> + <action function="page">settings_screen</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>Vibration</text> + <action function="page">settings_vibration</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>Language</text> + <action function="page">settings_language</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_reset"/> + <action function="restoredefaultsettings"/> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main3</action> + </action> + </page> + + <page name="settings_general"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Settings > General</text> + </text> + + <listbox style="scrolllist"> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_settings_height%"/> + <listitem name="Zip file signature verification"> + <data variable="tw_signed_zip_verify"/> + </listitem> + <listitem name="Use rm -rf instead of formatting"> + <data variable="tw_rm_rf"/> + </listitem> + <listitem name="Skip MD5 generation during backup"> + <data variable="tw_skip_md5_generate"/> + </listitem> + <listitem name="Enable MD5 verification of backup files"> + <data variable="tw_skip_md5_check"/> + </listitem> + <listitem name="Use 24-hour clock"> + <data variable="tw_military_time"/> + </listitem> + <listitem name="Simulate actions for theme testing"> + <data variable="tw_simulate_actions"/> + </listitem> + <listitem name="Simulate failure for actions"> + <data variable="tw_simulate_fail"/> + <condition var1="tw_simulate_actions" var2="1"/> + </listitem> + </listbox> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">settings</action> + </action> + </page> + + <page name="settings_timezone"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Settings > Time Zone</text> + </text> + + <text color="%text_color%"> + <font resource="font_m"/> + <placement x="%indent_right%" y="%row1_header_y%" placement="1"/> + <text>%tw_time%</text> + </text> + + <listbox style="listbox_headerless"> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_timezone_height%"/> + <data name="tw_time_zone_guisel"/> + <listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem> + <listitem name="(UTC -10) Hawaii">HST10;HDT</listitem> + <listitem name="(UTC -9) Alaska">AST9;ADT</listitem> + <listitem name="(UTC -8) Pacific Time">PST8;PDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -7) Mountain Time">MST7;MDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -6) Central Time">CST6;CDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -5) Eastern Time">EST5;EDT,M3.2.0,M11.1.0</listitem> + <listitem name="(UTC -4) Atlantic Time">AST4;ADT</listitem> + <listitem name="(UTC -3) Brazil, Buenos Aires">GRNLNDST3;GRNLNDDT</listitem> + <listitem name="(UTC -2) Mid-Atlantic">FALKST2;FALKDT</listitem> + <listitem name="(UTC -1) Azores, Cape Verde">AZOREST1;AZOREDT</listitem> + <listitem name="(UTC 0) London, Dublin, Lisbon">GMT0;BST,M3.5.0,M10.5.0</listitem> + <listitem name="(UTC +1) Berlin, Brussels, Paris">CET-1;CEST,M3.5.0,M10.5.0</listitem> + <listitem name="(UTC +2) Athens, Istanbul, South Africa">WET-2;WET,M3.5.0,M10.5.0</listitem> + <listitem name="(UTC +3) Moscow, Baghdad">SAUST-3;SAUDT</listitem> + <listitem name="(UTC +4) Abu Dhabi, Tbilisi, Muscat">WST-4;WDT</listitem> + <listitem name="(UTC +5) Yekaterinburg, Islamabad">PAKST-5;PAKDT</listitem> + <listitem name="(UTC +6) Almaty, Dhaka, Colombo">TASHST-6;TASHDT</listitem> + <listitem name="(UTC +7) Bangkok, Hanoi, Jakarta">THAIST-7;THAIDT</listitem> + <listitem name="(UTC +8) Beijing, Singapore, Hong Kong">TAIST-8;TAIDT</listitem> + <listitem name="(UTC +9) Tokyo, Seoul, Yakutsk">JST-9;JSTDT</listitem> + <listitem name="(UTC +10) Eastern Australia, Guam">EET-10;EETDT</listitem> + <listitem name="(UTC +11) Vladivostok, Solomon Islands">MET-11;METDT</listitem> + <listitem name="(UTC +12) Auckland, Wellington, Fiji">NZST-12;NZDT</listitem> + </listbox> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <actions> + <action function="setguitimezone"/> + <action function="page">settings_timezone2</action> + </actions> + </button> + + <action> + <condition var1="tw_time_zone_guisel" op="modified"/> + <action function="setguitimezone"/> + </action> + + <action> + <touch key="home"/> + <actions> + <action function="page">main</action> + <action function="setguitimezone"/> + </actions> + </action> + + <action> + <touch key="back"/> + <actions> + <action function="page">settings</action> + <action function="setguitimezone"/> + </actions> + </action> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + + <page name="settings_timezone2"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Settings > Time Zone</text> + </text> + + <text color="%text_color%"> + <font resource="font_m"/> + <placement x="%indent_right%" y="%row1_header_y%" placement="1"/> + <text>%tw_time%</text> + </text> + + <checkbox> + <placement x="%col1_x_left%" y="%row1_y%"/> + <font resource="font_m" color="%text_color%"/> + <text>Use daylight savings time (DST)</text> + <data variable="tw_time_zone_guidst"/> + <image checked="checkbox_true" unchecked="checkbox_false"/> + </checkbox> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row4_y%"/> + <text>Select Offset (usually 0): %tw_time_zone_guioffset%</text> + </text> + + <button style="main_button_quarter_width"> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>0</text> + <actions> + <action function="set">tw_time_zone_guioffset=0</action> + <action function="setguitimezone"/> + </actions> + </button> + + <button style="main_button_quarter_width"> + <placement x="%btn4_col2_x%" y="%row6_y%"/> + <text>15</text> + <actions> + <action function="set">tw_time_zone_guioffset=15</action> + <action function="setguitimezone"/> + </actions> + </button> + + <button style="main_button_quarter_width"> + <placement x="%btn4_col3_x%" y="%row6_y%"/> + <text>30</text> + <actions> + <action function="set">tw_time_zone_guioffset=30</action> + <action function="setguitimezone"/> + </actions> + </button> + + <button style="main_button_quarter_width"> + <placement x="%btn4_col4_x%" y="%row6_y%"/> + <text>45</text> + <actions> + <action function="set">tw_time_zone_guioffset=45</action> + <action function="setguitimezone"/> + </actions> + </button> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <actions> + <action function="setguitimezone"/> + <action function="page">settings_timezone</action> + </actions> + </button> + + <text style="text_m_accent"> + <placement x="%btn4_col2_x%" y="%row11_y%"/> + <text>Current Time Zone:</text> + </text> + + <text style="text_m"> + <placement x="%btn4_col2_x%" y="%row12a_y%"/> + <text>%tw_time_zone%</text> + </text> + + <action> + <condition var1="tw_time_zone_guidst" op="modified"/> + <action function="setguitimezone"/> + </action> + + <action> + <touch key="home"/> + <actions> + <action function="setguitimezone"/> + <action function="page">main</action> + </actions> + </action> + + <action> + <touch key="back"/> + <actions> + <action function="setguitimezone"/> + <action function="page">settings_timezone</action> + </actions> + </action> + </page> + + <page name="settings_screen"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Settings > Screen Timeout</text> + </text> + + <button style="checkbox"> + <condition var1="tw_screen_timeout_secs" op="=" var2="0"/> + <condition var1="tw_no_screen_timeout" op="!=" var2="1"/> + <placement x="%indent%" y="%row1_y%" textplacement="6"/> + <text>Enable screen timeout</text> + <image resource="checkbox_false"/> + <action function="set">tw_screen_timeout_secs=60</action> + </button> + + <button style="checkbox"> + <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/> + <condition var1="tw_no_screen_timeout" op="!=" var2="1"/> + <placement x="%indent%" y="%row1_y%" textplacement="6"/> + <text>Enable screen timeout</text> + <image resource="checkbox_true"/> + <action function="set">tw_screen_timeout_secs=0</action> + </button> + + <slidervalue> + <condition var1="tw_no_screen_timeout" op="!=" var2="1"/> + <placement x="col1_x_left" y="%row2a_y%" w="%content_width%"/> + <text>Screen timeout in seconds (0=disabled): %tw_screen_timeout_secs%</text> + <data variable="tw_screen_timeout_secs" min="15" max="300"/> + </slidervalue> + + <text style="text_m_fail"> + <condition var1="tw_no_screen_timeout" op="=" var2="1"/> + <placement x="%center_x%" y="%row1_y%" placement="5"/> + <text>Screen timeout setting unavailable</text> + </text> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <action function="page">settings_screen2</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">settings</action> + </action> + </page> + + <page name="settings_screen2"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Settings > Screen Brightness</text> + </text> + + <slidervalue> + <condition var1="tw_has_brightnesss_file" var2="1"/> + <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/> + <text>Brightness: %tw_brightness_pct%%</text> + <data variable="tw_brightness_pct" min="10" max="100"/> + <actions> + <action function="set">tw_brightness=%tw_brightness_max%</action> + <action function="compute">tw_brightness*%tw_brightness_pct%</action> + <action function="compute">tw_brightness/100</action> + <action function="setbrightness">%tw_brightness%</action> + </actions> + </slidervalue> + + <text style="text_m_fail"> + <condition var1="tw_has_brightnesss_file" var2="0"/> + <placement x="%center_x%" y="%row1_y%" placement="5"/> + <text>Brightness setting unavailable</text> + </text> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">settings_screen</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">settings</action> + </action> + </page> + + <page name="settings_vibration"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Settings > Vibration - Button Vibration</text> + </text> + + <slidervalue> + <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/> + <text>Button Vibration:</text> + <data variable="tw_button_vibrate" min="0" max="300"/> + </slidervalue> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <action function="page">settings_vibration2</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">settings</action> + </action> + </page> + + <page name="settings_vibration2"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Settings > Vibration - Keyboard Vibration</text> + </text> + + <slidervalue> + <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/> + <text>Keyboard Vibration:</text> + <data variable="tw_keyboard_vibrate" min="0" max="300"/> + </slidervalue> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">settings_vibration</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <action function="page">settings_vibration3</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">settings</action> + </action> + </page> + + <page name="settings_vibration3"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Settings > Vibration - Action Vibration</text> + </text> + + <slidervalue> + <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/> + <text>Action Vibration:</text> + <data variable="tw_action_vibrate" min="0" max="500"/> + </slidervalue> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">settings_vibration2</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">settings</action> + </action> + </page> + + <page name="advanced"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Advanced</text> + </text> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Terminal</text> + <action function="page">terminalfolder</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row1_y%"/> + <text>Fix Perms</text> + <action function="page">fixperms</action> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>Reload Theme</text> + <action function="reload"/> + </button> + + <button style="main_button"> + <condition var1="tw_allow_partition_sdcard" var2="1"/> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>SD Card</text> + <action function="page">partsdcard</action> + </button> + + <button style="main_button"> + <condition var1="tw_show_dumlock" var2="1"/> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>HTC Dumlock</text> + <action function="page">htcdumlock</action> + </button> + + <button style="main_button"> + <condition var1="tw_has_injecttwrp" var2="1"/> + <placement x="%col1_x_right%" y="%row11_y%"/> + <text>Inject TWRP</text> + <actions> + <action function="set">tw_back=advanced</action> + <action function="set">tw_action=reinjecttwrp</action> + <action function="set">tw_text1=Re-Inject TWRP?</action> + <action function="set">tw_action_text1=Re-Injecting TWRP...</action> + <action function="set">tw_complete_text1=TWRP Injection Complete</action> + <action function="set">tw_slider_text= Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main3</action> + </action> + </page> + + <page name="partsdcard"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Advanced > Partition SD Card</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row1_y%" placement="5"/> + <text>You will lose all files on your SD card!</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>This action cannot be undone!</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>EXT Size:</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6a_y%" placement="5"/> + <text>%tw_sdext_size%</text> + </text> + + <button style="main_button_quarter_width"> + <placement x="%indent%" y="%row6_y%"/> + <text>-</text> + <action function="addsubtract">tw_sdext_size-128</action> + </button> + + <button style="main_button_quarter_width"> + <placement x="%btn4_col4_x%" y="%row6_y%"/> + <text>+</text> + <action function="addsubtract">tw_sdext_size+128</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <action function="page">partsdcard2</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="partsdcard2"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Advanced > Partition SD Card</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row1_y%" placement="5"/> + <text>You will lose all files on your SD card!</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>This action cannot be undone!</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>Swap Size:</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6a_y%" placement="5"/> + <text>%tw_swap_size%</text> + </text> + + <button style="main_button_quarter_width"> + <placement x="%indent%" y="%row6_y%"/> + <text>-</text> + <action function="addsubtract">tw_swap_size-32</action> + </button> + + <button style="main_button_quarter_width"> + <placement x="%btn4_col4_x%" y="%row6_y%"/> + <text>+</text> + <action function="addsubtract">tw_swap_size+32</action> + </button> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">partsdcard</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <action function="page">partsdcard3</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="partsdcard3"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Advanced > Partition SD Card</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row1_y%" placement="5"/> + <text>You will lose all files on your SD card!</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>This action cannot be undone!</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>File System:</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6a_y%" placement="5"/> + <text>%tw_sdpart_file_system%</text> + </text> + + <button style="main_button_quarter_width"> + <placement x="%indent%" y="%row6_y%"/> + <text>EXT3</text> + <action function="set">tw_sdpart_file_system=ext3</action> + </button> + + <button style="main_button_quarter_width"> + <placement x="%btn4_col4_x%" y="%row6_y%"/> + <text>EXT4</text> + <action function="set">tw_sdpart_file_system=ext4</action> + </button> + + <button> + <placement x="%col1_x_left%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_left"/> + <action function="page">partsdcard2</action> + </button> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_arrow_right"/> + <action function="page">partsdcard_confirm</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="partsdcard_confirm"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Advanced > Partition SD Card</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row1_y%" placement="5"/> + <text>You will lose all files on your SD card!</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>This action cannot be undone!</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>EXT Size: %tw_sdext_size%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>Swap Size: %tw_swap_size%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row8_y%" placement="5"/> + <text>File System: %tw_sdpart_file_system%</text> + </text> + + <slider> + <text>Partition</text> + <action function="page">partsdcardaction</action> + <actions> + <action function="set">tw_back=partsdcard</action> + <action function="set">tw_action=partitionsd</action> + <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_action_text1=Partitioning SD Card...</action> + <action function="set">tw_action_text2=This will take a few minutes.</action> + <action function="set">tw_complete_text1=Partitioning Complete</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="htcdumlock"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Advanced > HTC Dumlock</text> + </text> + + <button style="main_button_full_width"> + <placement x="%indent%" y="%row1_y%"/> + <text>Restore Original Boot</text> + <actions> + <action function="set">tw_back=htcdumlock</action> + <action function="set">tw_action=htcdumlockrestoreboot</action> + <action function="set">tw_text1=Restore original boot image?</action> + <action function="set">tw_action_text1=Restoring Original Boot...</action> + <action function="set">tw_complete_text1=Restore Original Boot Complete</action> + <action function="set">tw_slider_text= Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_full_width"> + <placement x="%indent%" y="%row6_y%"/> + <text>Reflash Recovery</text> + <actions> + <action function="set">tw_back=htcdumlock</action> + <action function="set">tw_action=htcdumlockreflashrecovery</action> + <action function="set">tw_text1=Reflash recovery to boot?</action> + <action function="set">tw_action_text1=Flashing recovery to boot...</action> + <action function="set">tw_complete_text1=Recovery Flash to Boot Complete</action> + <action function="set">tw_slider_text= Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <button style="main_button_full_width"> + <placement x="%indent%" y="%row11_y%"/> + <text>Install HTC Dumlock</text> + <actions> + <action function="set">tw_back=htcdumlock</action> + <action function="set">tw_action=installhtcdumlock</action> + <action function="set">tw_text1=Install HTC dumlock files to ROM?</action> + <action function="set">tw_action_text1=Installing HTC Dumlock...</action> + <action function="set">tw_complete_text1=HTC Dumlock Install Complete</action> + <action function="set">tw_slider_text= Confirm</action> + <action function="page">confirm_action</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="lock"> + <background color="%semi_transparent%"/> + + <image> + <image resource="unlock_icon"/> + <placement x="%center_x%" y="%row6_y%" placement="4"/> + </image> + + <slider> + <text> Unlock</text> + <action function="overlay"/> + </slider> + </page> + + <page name="filemanagerlist"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>File Manager > Select File or Folder</text> + </text> + + <fileselector> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/> + <text>%tw_file_location1%</text> + <filter folders="1" files="1"/> + <path name="tw_file_location1" default="/"/> + <data name="tw_filename1"/> + <selection name="tw_selection1"/> + </fileselector> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_folder"/> + <actions> + <action function="set">tw_filename1=tw_file_location1</action> + <action function="set">tw_fm_isfolder=1</action> + <action function="set">tw_fm_type=Folder</action> + <action function="page">filemanageroptions</action> + </actions> + </button> + + <action> + <actions> + <action function="set">tw_fm_type=File</action> + <action function="set">tw_fm_isfolder=0</action> + </actions> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">main3</action> + </action> + + <action> + <condition var1="tw_filename1" op="modified"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanageroptions"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>%tw_fm_type%: %tw_filename1%</text> + </text> + + <button style="main_button"> + <condition var1="tw_fm_isfolder" var2="0"/> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Copy</text> + <actions> + <action function="set">tw_filemanager_command=cp</action> + <action function="set">tw_fm_text1=Copying</action> + <action function="page">choosedestinationfolder</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_fm_isfolder" var2="1"/> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Copy</text> + <actions> + <action function="set">tw_filemanager_command=cd "%tw_file_location1%" && cd .. && cp -R</action> + <action function="set">tw_fm_text1=Copying</action> + <action function="page">choosedestinationfolder</action> + </actions> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row1_y%"/> + <text>Move</text> + <actions> + <action function="set">tw_filemanager_command=mv</action> + <action function="set">tw_fm_text1=Moving</action> + <action function="page">choosedestinationfolder</action> + </actions> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row6_y%"/> + <text>chmod 755</text> + <actions> + <action function="set">tw_filemanager_command=chmod 755</action> + <action function="set">tw_fm_text1=chmod 755</action> + <action function="set">tw_fm_text2=</action> + <action function="set">tw_fm_text3=</action> + <action function="set">tw_include_text3=0</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </button> + + <button style="main_button"> + <placement x="%col1_x_right%" y="%row6_y%"/> + <text>chmod</text> + <actions> + <action function="set">tw_filemanager_rename=0000</action> + <action function="set">tw_fm_text2=</action> + <action function="set">tw_fm_text3=</action> + <action function="set">tw_include_text3=0</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerchmod</action> + </actions> + </button> + + <button style="main_button"> + <placement x="%col1_x_left%" y="%row11_y%"/> + <text>Delete</text> + <actions> + <action function="set">tw_filemanager_command=rm -rf</action> + <action function="set">tw_fm_text1=Deleting</action> + <action function="set">tw_fm_text2=</action> + <action function="set">tw_fm_text3=</action> + <action function="set">tw_include_text3=0</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_fm_isfolder" var2="0"/> + <placement x="%col1_x_right%" y="%row11_y%"/> + <text>Rename</text> + <actions> + <action function="set">tw_filemanager_rename=tw_selection1</action> + <action function="set">tw_fm_text1=Renaming</action> + <action function="set">tw_filemanager_command=mv</action> + <action function="page">filemanagerrenamefile</action> + </actions> + </button> + + <button style="main_button"> + <condition var1="tw_fm_isfolder" var2="1"/> + <placement x="%col1_x_right%" y="%row11_y%"/> + <text>Rename</text> + <actions> + <action function="set">tw_filemanager_rename=tw_selection1</action> + <action function="set">tw_fm_text1=Renaming</action> + <action function="set">tw_filemanager_command=cd "%tw_file_location1%" && cd .. && mv</action> + <action function="page">filemanagerrenamefolder</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanagerlist</action> + </action> + </page> + + <page name="choosedestinationfolder"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>File Manager > Select Destination Folder</text> + </text> + + <fileselector> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/> + <text>%tw_file_location2%</text> + <filter folders="1" files="0"/> + <path name="tw_file_location2" default="/"/> + <data name="tw_filename2"/> + <selection name="tw_selection2"/> + </fileselector> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_folder"/> + <actions> + <action function="set">tw_fm_text2=to</action> + <action function="set">tw_fm_text3=%tw_file_location2%</action> + <action function="set">tw_include_text3=1</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerrenamefile"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>File Manager > Rename %tw_fm_type%</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_filemanager_rename%</text> + <data name="tw_filemanager_rename"/> + <restrict minlen="1" maxlen="128"/> + <actions> + <action function="set">tw_fm_text2=to</action> + <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action> + <action function="set">tw_include_text3=1</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/> + </fill> + + <button style="main_button_half_height"> + <placement x="%col1_x_left%" y="%row4_y%"/> + <text>Cancel</text> + <action function="page">filemanageroptions</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerrenamefolder"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>File Manager > Rename %tw_fm_type%</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Name:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_filemanager_rename%</text> + <data name="tw_filemanager_rename"/> + <restrict minlen="1" maxlen="128"/> + <actions> + <action function="set">tw_fm_text2=to</action> + <action function="set">tw_fm_text3=%tw_filemanager_rename%</action> + <action function="set">tw_include_text3=1</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button style="main_button_half_height"> + <placement x="%col1_x_left%" y="%row4_y%"/> + <text>Cancel</text> + <action function="page">filemanageroptions</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerchmod"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>File Manager > Set Permissions</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Permissions:</text> + </text> + + <input> + <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/> + <text>%tw_filemanager_rename%</text> + <data name="tw_filemanager_rename"/> + <restrict minlen="3" maxlen="4" allow="0123456789"/> + <actions> + <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action> + <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action> + <action function="set">tw_back=filemanageroptions</action> + <action function="page">filemanagerconfirm</action> + </actions> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <button style="main_button_half_height"> + <placement x="%col1_x_left%" y="%row4_y%"/> + <text>Cancel</text> + <action function="page">filemanageroptions</action> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">filemanageroptions</action> + </action> + </page> + + <page name="filemanagerconfirm"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>File Manager > Confirm Action</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>%tw_fm_text1%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row3_y%" placement="5"/> + <text>%tw_filename1%</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>%tw_fm_text2%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row6_y%" placement="5"/> + <text>%tw_fm_text3%</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row8_y%" placement="5"/> + <text>Press back button to cancel.</text> + </text> + + <slider> + <text>Confirm</text> + <action function="page">filemanageraction</action> + </slider> + + <action> + <touch key="back"/> + <action function="page">%tw_back%</action> + </action> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + </page> + + <page name="filemanageraction"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>File Manager > %tw_fm_text1%</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" var2="0"/> + </conditions> + <actions> + <action function="set">tw_back=filemanagerlist</action> + <action function="set">tw_complete_text1=File Operation Complete</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="!=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_complete_text1=File Operation Complete</action> + <action function="page">action_complete</action> + </actions> + </action> + + <action> + <condition var1="tw_include_text3" var2="0"/> + <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action> + </action> + + <action> + <condition var1="tw_include_text3" var2="1"/> + <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action> + </action> + </page> + + <page name="decrypt"> + <template name="page"/> + + <template name="statusbar"/> + + <action> + <condition var1="tw_crypto_pwtype" var2="2"/> + <action function="page">decrypt_pattern</action> + </action> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Mount > Decrypt Data</text> + </text> + + <text style="text_m_accent"> + <placement x="%col1_x_left%" y="%row1_y%"/> + <text>Enter Password:</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>Password failed, please try again!</text> + </text> + + <button style="main_button_half_height"> + <placement x="%col1_x_right%" y="%row4_y%"/> + <text>Cancel</text> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">main</action> + </actions> + </button> + + <template name="keyboardtemplate"/> + </page> + + <page name="decrypt_pattern"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Mount > Decrypt Data</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>Enter Pattern.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row10_y%" placement="5"/> + <text>Press back to cancel.</text> + </text> + + <patternpassword> + <placement x="%pattern_x%" y="%row2_y%" w="%pattern_size%" h="%pattern_size%"/> + <size name="tw_pattern_grid_size" default="3"/> + <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/> + <line color="%fileselector_linecolor%" width="%pattern_line_w%"/> + <data name="tw_crypto_password"/> + <action function="page">trydecrypt</action> + </patternpassword> + + <fill color="#000000"> + <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/> + </fill> + + <button> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/> + <image resource="back"/> + <condition var1="tw_busy" var2="0"/> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">main</action> + </actions> + </button> + </page> + + <page name="trydecrypt"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Mount > Trying Decryption</text> + </text> + + <template name="console"/> + + <template name="progress_bar"/> + + <action> + <action function="decrypt"/> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="!=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_password_fail=1</action> + <action function="page">decrypt</action> + </actions> + </action> + + <action> + <conditions> + <condition var1="tw_operation_state" var2="1"/> + <condition var1="tw_operation_status" op="=" var2="0"/> + </conditions> + <actions> + <action function="set">tw_page_done=1</action> + <action function="page">main</action> + </actions> + </action> + </page> + + <page name="terminalfolder"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Terminal > Select Starting Folder</text> + </text> + + <fileselector> + <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/> + <text>%tw_terminal_location%</text> + <filter folders="1" files="0"/> + <path name="tw_terminal_location" default="/"/> + <data name="tw_terminal"/> + <selection name="tw_terminal_selection"/> + </fileselector> + + <button> + <placement x="%btn4_col4_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_accept_transp"/> + <action function="page">terminalcommand</action> + </button> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="terminalcommand"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Terminal > %tw_terminal_location%</text> + </text> + + <template name="console_terminal"/> + + <input> + <placement x="%col1_x_left%" y="%row5a_y%" w="%input_line_console%" h="%input_height%"/> + <text>%tw_terminal_command%</text> + <data name="tw_terminal_command"/> + <restrict minlen="1"/> + <action function="terminalcommand">%tw_terminal_command%</action> + </input> + + <fill color="%accent_color%"> + <placement x="%col1_x_left%" y="row6a_input_y" w="%input_line_console%" h="input_line_width" placement="1"/> + </fill> + + <button> + <condition var1="tw_terminal_state" var2="1"/> + <highlight color="%highlight_color%"/> + <placement x="%close_btn_x%" y="%row5_y%"/> + <font resource="font_m" color="%text_button_color%"/> + <image resource="close"/> + <action function="killterminal"/> + </button> + + <template name="keyboardtemplate"/> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">terminalfolder</action> + </action> + </page> + + <page name="sideload"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Install > ADB Sideload</text> + </text> + + <text style="text_m_accent"> + <placement x="%indent%" y="%row1_y%"/> + <text>Options:</text> + </text> + + <checkbox> + <placement x="%indent%" y="%row2_y%"/> + <text>Wipe Dalvik Cache</text> + <data variable="tw_wipe_dalvik"/> + </checkbox> + + <checkbox> + <placement x="%indent%" y="%row4a_y%"/> + <text>Wipe Cache</text> + <data variable="tw_wipe_cache"/> + </checkbox> + + <slider> + <text> Start</text> + <action function="page">partsdcardaction</action> + <actions> + <action function="set">tw_back=install_type</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_show_reboot=1</action> + <action function="set">tw_cancel_action=adbsideloadcancel</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">install_type</action> + </action> + </page> + + <page name="fixperms"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Advanced > Fix Permissions</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Note: Fixing permissions is rarely needed.</text> + </text> + + <checkbox> + <placement x="%indent%" y="%row4_y%"/> + <text>Also fix SELinux Contexts</text> + <data variable="tw_fixperms_restorecon"/> + </checkbox> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row6a_y%" placement="5"/> + <text>Fixing SELinux Contexts may cause</text> + </text> + + <text style="text_m_fail"> + <placement x="%center_x%" y="%row7a_y%" placement="5"/> + <text>your device to not boot properly.</text> + </text> + + <slider> + <text> Fix Perms</text> + <actions> + <action function="set">tw_back=advanced</action> + <action function="set">tw_action=fixpermissions</action> + <action function="set">tw_action_text1=Fixing Permissions...</action> + <action function="set">tw_complete_text1=Fix Permissions Complete</action> + <action function="set">tw_slider_text= Confirm</action> + <action function="set">tw_show_reboot=1</action> + <action function="page">action_page</action> + </actions> + </slider> + + <action> + <touch key="home"/> + <action function="page">main</action> + </action> + + <action> + <touch key="back"/> + <action function="page">advanced</action> + </action> + </page> + + <page name="installsu"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>Reboot > SuperSU Check</text> + </text> + + <text style="text_m_accent"> + <placement x="%center_x%" y="%row2_y%" placement="5"/> + <text>Your device does not appear to be rooted.</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row4_y%" placement="5"/> + <text>Install SuperSU now?</text> + </text> + + <text style="text_m"> + <placement x="%center_x%" y="%row5_y%" placement="5"/> + <text>This will root your device.</text> + </text> + + <button style="main_button_full_width"> + <placement x="%indent%" y="%row6_y%"/> + <text>Do not Install</text> + <action function="set">tw_page_done=1</action> + </button> + + <slider> + <text> Install</text> + <actions> + <action function="set">tw_action=installsu</action> + <action function="set">tw_action_text1=Installing SuperSU</action> + <action function="set">tw_action_text2=</action> + <action function="page">singleaction_page</action> + </actions> + </slider> + </page> + + <page name="slideout"> + <fill color="%background_color%"> + <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/> + </fill> + + <console> + <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%slideout_height%"/> + </console> + + <fill color="%fileselector_linecolor%"> + <placement x="%indent%" y="row1_y" w="%content_width%" h="input_line_width" placement="1"/> + </fill> + + <fill color="%fileselector_linecolor%"> + <placement x="%indent%" y="row15a_y" w="%content_width%" h="input_line_width"/> + </fill> + + <button> + <fill color="%transparent%"/> + <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/> + <action function="overlay"/> + </button> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + + <page name="select_storage"> + <template name="page"/> + + <template name="statusbar"/> + + <text style="text_m"> + <placement x="%col1_x_left%" y="%row1_header_y%"/> + <text>%tw_storagetext%</text> + </text> + + <partitionlist style="partitionlist_headerless_rb"> + <data name="tw_storage_path"/> + <listtype name="storage"/> + </partitionlist> + + <button> + <placement x="%btn4_col2_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_refresh"/> + <actions> + <action function="refreshsizes"/> + <action function="page">select_storage</action> + </actions> + </button> + + <button> + <placement x="%btn4_col3_x%" y="%row11_y%"/> + <highlight color="%highlight_color%"/> + <image resource="q_btn_accept"/> + <actions> + <action function="set">tw_clear_destination=%tw_back%</action> + <action function="page">clear_vars</action> + </actions> + </button> + + <action> + <touch key="power+voldown"/> + <action function="screenshot"/> + </action> + </page> + </pages> +</recovery> diff --git a/gui/theme/landscape_hdpi/images/back.png b/gui/theme/landscape_hdpi/images/back.png Binary files differnew file mode 100644 index 000000000..97c41f1f1 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/back.png diff --git a/gui/theme/landscape_hdpi/images/backspace.png b/gui/theme/landscape_hdpi/images/backspace.png Binary files differnew file mode 100644 index 000000000..543e33838 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/backspace.png diff --git a/gui/theme/landscape_hdpi/images/checkbox_false.png b/gui/theme/landscape_hdpi/images/checkbox_false.png Binary files differnew file mode 100644 index 000000000..5304a15a9 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/checkbox_false.png diff --git a/gui/theme/landscape_hdpi/images/checkbox_true.png b/gui/theme/landscape_hdpi/images/checkbox_true.png Binary files differnew file mode 100644 index 000000000..18e817c6e --- /dev/null +++ b/gui/theme/landscape_hdpi/images/checkbox_true.png diff --git a/gui/theme/landscape_hdpi/images/console.png b/gui/theme/landscape_hdpi/images/console.png Binary files differnew file mode 100644 index 000000000..8b1201b89 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/console.png diff --git a/gui/theme/landscape_hdpi/images/cursor.png b/gui/theme/landscape_hdpi/images/cursor.png Binary files differnew file mode 100644 index 000000000..e4897a30d --- /dev/null +++ b/gui/theme/landscape_hdpi/images/cursor.png diff --git a/gui/theme/landscape_hdpi/images/curtain.jpg b/gui/theme/landscape_hdpi/images/curtain.jpg Binary files differnew file mode 100644 index 000000000..51ea6a571 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/curtain.jpg diff --git a/gui/theme/landscape_hdpi/images/enter.png b/gui/theme/landscape_hdpi/images/enter.png Binary files differnew file mode 100644 index 000000000..a7ceda84b --- /dev/null +++ b/gui/theme/landscape_hdpi/images/enter.png diff --git a/gui/theme/landscape_hdpi/images/file.png b/gui/theme/landscape_hdpi/images/file.png Binary files differnew file mode 100644 index 000000000..a4ddd3f63 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/file.png diff --git a/gui/theme/landscape_hdpi/images/folder.png b/gui/theme/landscape_hdpi/images/folder.png Binary files differnew file mode 100644 index 000000000..c957c84f7 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/folder.png diff --git a/gui/theme/landscape_hdpi/images/handle.png b/gui/theme/landscape_hdpi/images/handle.png Binary files differnew file mode 100644 index 000000000..06f2d0a55 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/handle.png diff --git a/gui/theme/landscape_hdpi/images/home.png b/gui/theme/landscape_hdpi/images/home.png Binary files differnew file mode 100644 index 000000000..6e212c7e6 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/home.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate001.png b/gui/theme/landscape_hdpi/images/indeterminate001.png Binary files differnew file mode 100644 index 000000000..51d2b76dd --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate001.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate002.png b/gui/theme/landscape_hdpi/images/indeterminate002.png Binary files differnew file mode 100644 index 000000000..883c82dbb --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate002.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate003.png b/gui/theme/landscape_hdpi/images/indeterminate003.png Binary files differnew file mode 100644 index 000000000..aeb447f4c --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate003.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate004.png b/gui/theme/landscape_hdpi/images/indeterminate004.png Binary files differnew file mode 100644 index 000000000..3e24d32a4 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate004.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate005.png b/gui/theme/landscape_hdpi/images/indeterminate005.png Binary files differnew file mode 100644 index 000000000..bf64470c1 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate005.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate006.png b/gui/theme/landscape_hdpi/images/indeterminate006.png Binary files differnew file mode 100644 index 000000000..90a8257d7 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate006.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate007.png b/gui/theme/landscape_hdpi/images/indeterminate007.png Binary files differnew file mode 100644 index 000000000..03d553f5f --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate007.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate008.png b/gui/theme/landscape_hdpi/images/indeterminate008.png Binary files differnew file mode 100644 index 000000000..78747f122 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate008.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate009.png b/gui/theme/landscape_hdpi/images/indeterminate009.png Binary files differnew file mode 100644 index 000000000..d3ba38755 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate009.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate010.png b/gui/theme/landscape_hdpi/images/indeterminate010.png Binary files differnew file mode 100644 index 000000000..23423514d --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate010.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate011.png b/gui/theme/landscape_hdpi/images/indeterminate011.png Binary files differnew file mode 100644 index 000000000..7c2811460 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate011.png diff --git a/gui/theme/landscape_hdpi/images/indeterminate012.png b/gui/theme/landscape_hdpi/images/indeterminate012.png Binary files differnew file mode 100644 index 000000000..f323808f2 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/indeterminate012.png diff --git a/gui/theme/landscape_hdpi/images/logo.png b/gui/theme/landscape_hdpi/images/logo.png Binary files differnew file mode 100644 index 000000000..4eec11245 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/logo.png diff --git a/gui/theme/landscape_hdpi/images/main_button.png b/gui/theme/landscape_hdpi/images/main_button.png Binary files differnew file mode 100644 index 000000000..f95917f1c --- /dev/null +++ b/gui/theme/landscape_hdpi/images/main_button.png diff --git a/gui/theme/landscape_hdpi/images/main_button_half_width.png b/gui/theme/landscape_hdpi/images/main_button_half_width.png Binary files differnew file mode 100644 index 000000000..656e846ae --- /dev/null +++ b/gui/theme/landscape_hdpi/images/main_button_half_width.png diff --git a/gui/theme/landscape_hdpi/images/main_button_half_width_low.png b/gui/theme/landscape_hdpi/images/main_button_half_width_low.png Binary files differnew file mode 100644 index 000000000..dc445baed --- /dev/null +++ b/gui/theme/landscape_hdpi/images/main_button_half_width_low.png diff --git a/gui/theme/landscape_hdpi/images/progress_empty.png b/gui/theme/landscape_hdpi/images/progress_empty.png Binary files differnew file mode 100644 index 000000000..84104a58c --- /dev/null +++ b/gui/theme/landscape_hdpi/images/progress_empty.png diff --git a/gui/theme/landscape_hdpi/images/progress_fill.png b/gui/theme/landscape_hdpi/images/progress_fill.png Binary files differnew file mode 100644 index 000000000..5a75ec699 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/progress_fill.png diff --git a/gui/theme/landscape_hdpi/images/radio_false.png b/gui/theme/landscape_hdpi/images/radio_false.png Binary files differnew file mode 100644 index 000000000..c03217709 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/radio_false.png diff --git a/gui/theme/landscape_hdpi/images/radio_true.png b/gui/theme/landscape_hdpi/images/radio_true.png Binary files differnew file mode 100644 index 000000000..9678c061b --- /dev/null +++ b/gui/theme/landscape_hdpi/images/radio_true.png diff --git a/gui/theme/landscape_hdpi/images/shift.png b/gui/theme/landscape_hdpi/images/shift.png Binary files differnew file mode 100644 index 000000000..76ced6f9c --- /dev/null +++ b/gui/theme/landscape_hdpi/images/shift.png diff --git a/gui/theme/landscape_hdpi/images/shift_fill.png b/gui/theme/landscape_hdpi/images/shift_fill.png Binary files differnew file mode 100644 index 000000000..827489834 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/shift_fill.png diff --git a/gui/theme/landscape_hdpi/images/slider.png b/gui/theme/landscape_hdpi/images/slider.png Binary files differnew file mode 100644 index 000000000..d27af82e6 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/slider.png diff --git a/gui/theme/landscape_hdpi/images/slider_touch.png b/gui/theme/landscape_hdpi/images/slider_touch.png Binary files differnew file mode 100644 index 000000000..e02167e56 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/slider_touch.png diff --git a/gui/theme/landscape_hdpi/images/slider_used.png b/gui/theme/landscape_hdpi/images/slider_used.png Binary files differnew file mode 100644 index 000000000..f83ec8b54 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/slider_used.png diff --git a/gui/theme/landscape_hdpi/images/sort_asc.png b/gui/theme/landscape_hdpi/images/sort_asc.png Binary files differnew file mode 100644 index 000000000..36b99118d --- /dev/null +++ b/gui/theme/landscape_hdpi/images/sort_asc.png diff --git a/gui/theme/landscape_hdpi/images/sort_desc.png b/gui/theme/landscape_hdpi/images/sort_desc.png Binary files differnew file mode 100644 index 000000000..527883391 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/sort_desc.png diff --git a/gui/theme/landscape_hdpi/images/sort_empty.png b/gui/theme/landscape_hdpi/images/sort_empty.png Binary files differnew file mode 100644 index 000000000..a12f8ac6f --- /dev/null +++ b/gui/theme/landscape_hdpi/images/sort_empty.png diff --git a/gui/theme/landscape_hdpi/images/space.png b/gui/theme/landscape_hdpi/images/space.png Binary files differnew file mode 100644 index 000000000..ece810008 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/space.png diff --git a/gui/theme/landscape_hdpi/images/tab_3.png b/gui/theme/landscape_hdpi/images/tab_3.png Binary files differnew file mode 100644 index 000000000..c20eb3a68 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/tab_3.png diff --git a/gui/theme/landscape_hdpi/images/tab_4.png b/gui/theme/landscape_hdpi/images/tab_4.png Binary files differnew file mode 100644 index 000000000..8c15c8593 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/tab_4.png diff --git a/gui/theme/landscape_hdpi/images/unlock_icon.png b/gui/theme/landscape_hdpi/images/unlock_icon.png Binary files differnew file mode 100644 index 000000000..d4c639452 --- /dev/null +++ b/gui/theme/landscape_hdpi/images/unlock_icon.png diff --git a/gui/theme/landscape_hdpi/ui.xml b/gui/theme/landscape_hdpi/ui.xml new file mode 100644 index 000000000..ef967f5a7 --- /dev/null +++ b/gui/theme/landscape_hdpi/ui.xml @@ -0,0 +1,635 @@ +<?xml version="1.0"?> + +<recovery> + <details> + <resolution width="1920" height="1200" /> + <author>TeamWin</author> + <title>Backup Naowz</title> + <description>Default basic theme</description> + <preview>preview.jpg</preview> + </details> + + <include> + <xmlfile name="landscape.xml" /> + </include> + + <resources> + <resource name="font_l" type="font" filename="RobotoCondensed-Regular.ttf" size="42" /> + <resource name="font_m" type="font" filename="RobotoCondensed-Regular.ttf" size="32" /> + <resource name="font_s" type="font" filename="RobotoCondensed-Regular.ttf" size="28" /> + <resource name="fixed" type="font" filename="DroidSansMono.ttf" size="26" /> + + <resource name="keylabel" type="font" filename="RobotoCondensed-Regular.ttf" size="50" /> + <resource name="keylabel-small" type="font" filename="RobotoCondensed-Regular.ttf" size="42" /> + <resource name="keylabel-longpress" type="font" filename="RobotoCondensed-Regular.ttf" size="26" /> + + <resource name="logo" type="image" filename="logo" retainaspect="1" /> + <resource name="main_button" type="image" filename="main_button" /> + <resource name="main_button_half_width" type="image" filename="main_button_half_width" /> + <resource name="main_button_half_width_low" type="image" filename="main_button_half_width_low" /> + <resource name="tab_3" type="image" filename="tab_3" /> + <resource name="tab_4" type="image" filename="tab_4" /> + <resource name="file" type="image" filename="file" retainaspect="1" /> + <resource name="folder" type="image" filename="folder" retainaspect="1" /> + <resource name="unlock_icon" type="image" filename="unlock_icon" retainaspect="1" /> + <resource name="home" type="image" filename="home" retainaspect="1" /> + <resource name="back" type="image" filename="back" retainaspect="1" /> + <resource name="console" type="image" filename="console" retainaspect="1" /> + <resource name="checkbox_false" type="image" filename="checkbox_false" retainaspect="1" /> + <resource name="checkbox_true" type="image" filename="checkbox_true" retainaspect="1" /> + <resource name="radio_false" type="image" filename="radio_false" retainaspect="1" /> + <resource name="radio_true" type="image" filename="radio_true" retainaspect="1" /> + <resource name="sort_asc" type="image" filename="sort_asc" /> + <resource name="sort_desc" type="image" filename="sort_desc" /> + <resource name="sort_empty" type="image" filename="sort_empty" /> + <resource name="progress" type="animation" filename="indeterminate" /> + <resource name="progress_empty" type="image" filename="progress_empty" /> + <resource name="progress_full" type="image" filename="progress_fill" /> + <resource name="slider" type="image" filename="slider" /> + <resource name="slider_used" type="image" filename="slider_used" /> + <resource name="slider_touch" type="image" filename="slider_touch" /> + <resource name="handle" type="image" filename="handle" /> + <resource name="cursor" type="image" filename="cursor" retainaspect="1" /> + + <resource name="backspace" type="image" filename="backspace" retainaspect="1" /> + <resource name="enter" type="image" filename="enter" retainaspect="1" /> + <resource name="shift" type="image" filename="shift" retainaspect="1" /> + <resource name="shift_fill" type="image" filename="shift_fill" retainaspect="1" /> + <resource name="space" type="image" filename="space" retainaspect="1" /> + </resources> + + <variables> + <variable name="tw_samsung_navbar" value="0" persist="1" /> + <variable name="tw_navbar_button_position" value="0" persist="1" /> + + <variable name="screen_width" value="1920" /> + <variable name="screen_height" value="1200" /> + <variable name="status_height" value="48" /> + <variable name="header_height" value="192" /> + <variable name="navbar_height" value="96" /> + <variable name="content_width" value="1824" /> + <variable name="content_quarter_width" value="1416" /> + <variable name="content_half_width" value="888" /> + <variable name="content_overlay_width" value="912" /> + <variable name="dialog_height" value="528" /> + <variable name="dialog_width" value="960" /> + <variable name="dialog_content_x" value="528" /> + <variable name="back_button_x" value="633" /> + <variable name="console_button_x" value="1287" /> + <variable name="back_button_x_1" value="120" /> + <variable name="home_button_x_1" value="320" /> + <variable name="console_button_x_1" value="520" /> + <variable name="back_button_x_2" value="1400" /> + <variable name="home_button_x_2" value="1600" /> + <variable name="console_button_x_2" value="1800" /> + <variable name="col1_x_header" value="144" /> + <variable name="indent" value="24" /> + <variable name="col1_x_left" value="48" /> + <variable name="col2_x_left" value="504" /> + <variable name="center_x" value="960" /> + <variable name="col1_x_right" value="984" /> + <variable name="col2_x_right" value="1416" /> + <variable name="col_button_right" value="1488" /> + <variable name="indent_right" value="1896" /> + <variable name="tab_height" value="72" /> + <variable name="tab_indicator_height" value="4" /> + <variable name="tab4_width" value="480" /> + <variable name="tab4_col2_x" value="480" /> + <variable name="tab4_col4_x" value="1440" /> + <variable name="btn4_col2_x_left" value="282" /> + <variable name="btn4_col3_x_left" value="516" /> + <variable name="btn4_col4_x_left" value="750" /> + <variable name="btn4_col2_x_right" value="1218" /> + <variable name="btn4_col3_x_right" value="1452" /> + <variable name="btn4_col4_x_right" value="1686" /> + <variable name="row1_header_y" value="0" /> + <variable name="row2_header_y" value="48" /> + <variable name="row3_header_y" value="60" /> + <variable name="row4_header_y" value="126" /> + <variable name="row1_y" value="192" /> + <variable name="row1a_y" value="216" /> + <variable name="row2_y" value="240" /> + <variable name="row2a_y" value="264" /> + <variable name="row_tab_y" value="260" /> + <variable name="row2_input_y" value="286" /> + <variable name="row3_y" value="288" /> + <variable name="row3a_y" value="312" /> + <variable name="row3_input_y" value="334" /> + <variable name="row4_y" value="336" /> + <variable name="row4a_y" value="360" /> + <variable name="row4_input_y" value="382" /> + <variable name="row5_y" value="384" /> + <variable name="row5a_y" value="408" /> + <variable name="row6_y" value="432" /> + <variable name="row6a_y" value="456" /> + <variable name="row7_y" value="480" /> + <variable name="row7a_y" value="504" /> + <variable name="row8_y" value="528" /> + <variable name="row8a_y" value="552" /> + <variable name="row9_y" value="576" /> + <variable name="row9a_y" value="600" /> + <variable name="row10_y" value="624" /> + <variable name="row10a_y" value="648" /> + <variable name="row11_y" value="672" /> + <variable name="row11a_y" value="696" /> + <variable name="row12_y" value="720" /> + <variable name="row12a_y" value="744" /> + <variable name="row13_y" value="768" /> + <variable name="row13a_y" value="792" /> + <variable name="row14_y" value="816" /> + <variable name="row14a_y" value="840" /> + <variable name="row15_y" value="864" /> + <variable name="row15a_y" value="888" /> + <variable name="row16_y" value="912" /> + <variable name="row16a_y" value="936" /> + <variable name="row17_y" value="960" /> + <variable name="row17a_y" value="984" /> + <variable name="row18_y" value="1008" /> + <variable name="row18a_y" value="1032" /> + <variable name="row19_y" value="1056" /> + <variable name="row19a_y" value="1080" /> + <variable name="row20_y" value="1104" /> + <variable name="navbar_y" value="1104" /> + <variable name="navbar_btn_y" value="1152" /> + <variable name="keyboard_y" value="592" /> + <variable name="background_color" value="#1A1A1A" /> + <variable name="accent_color" value="#0090CA" /> + <variable name="text_color" value="#EEEEEE" /> + <variable name="text_button_color" value="#EEEEEE" /> + <variable name="text_success_color" value="#76FF03" /> + <variable name="text_fail_color" value="#FF0101" /> + <variable name="highlight_color" value="#1A1A1A80" /> + <variable name="caps_highlight_color" value="#22222280" /> + <variable name="transparent" value="#00000000" /> + <variable name="semi_transparent" value="#00000099" /> + <variable name="warning" value="#F8F8A0" /> + <variable name="error" value="#FF0101" /> + <variable name="highlight" value="#0090CA" /> + <variable name="fileselector_linecolor" value="#555555" /> + <variable name="fileselector_highlight_color" value="#555555" /> + <variable name="fileselector_separatorheight" value="2" /> + <variable name="fileselector_spacing" value="0" /> + <variable name="fileselector_install_height" value="840" /> + <variable name="fileselector_install_width" value="960" /> + <variable name="fileselector_install_folder_width" value="408" /> + <variable name="fileselector_filemanager_height" value="840" /> + <variable name="partitionlist_spacing" value="0" /> + <variable name="partitionlist_storage_height" value="400" /> + <variable name="partitionlist_flashimage_height" value="448" /> + <variable name="partitionlist_wipe_height" value="600" /> + <variable name="partitionlist_mount_height" value="552" /> + <variable name="partitionlist_backup_height" value="528" /> + <variable name="listbox_timezone_height" value="768" /> + <variable name="listbox_settings_height" value="648" /> + <variable name="fastscroll_w" value="18" /> + <variable name="fastscroll_linew" value="2" /> + <variable name="fastscroll_rectw" value="18" /> + <variable name="fastscroll_recth" value="96" /> + <variable name="slidervalue_lineh" value="3" /> + <variable name="slidervalue_padding" value="0" /> + <variable name="slidervalue_sliderw" value="72" /> + <variable name="slidervalue_sliderh" value="96" /> + <variable name="slideout_y" value="96" /> + <variable name="slideout_height" value="960" /> + <variable name="slideout_bg_height" value="1056" /> + <variable name="input_height" value="48" /> + <variable name="input_line_width" value="3" /> + <variable name="console_height" value="624" /> + <variable name="console_terminal_height" value="420" /> + <variable name="dialog_button_x" value="1176" /> + <variable name="date_button_x" value="552" /> + <variable name="progress_x" value="552" /> + <variable name="progress_text_x" value="96" /> + <variable name="progress_text_y" value="900" /> + <variable name="pattern_x" value="636" /> + <variable name="pattern_dot_dia" value="32" /> + <variable name="pattern_line_w" value="12" /> + <variable name="pattern_size" value="648" /> + </variables> + + <mousecursor> + <placement w="15" h="15" /> + <background color="#FFFF00FF" resource="cursor" /> + <speed multiplier="2.5" /> + </mousecursor> + + <templates> + <template name="page"> + <background color="%background_color%" /> + + <object type="fill" color="%accent_color%"> + <placement x="0" y="0" w="%screen_width%" h="%header_height%" /> + </object> + + <object type="image"> + <condition var1="tw_busy" var2="1" /> + <image resource="logo" /> + <placement x="0" y="0" /> + </object> + + <object type="button"> + <condition var1="tw_busy" var2="0" /> + <placement x="0" y="0" /> + <image resource="logo" /> + <action function="key">home</action> + </object> + + <object type="fill" color="#00000030"> + <condition var1="tw_simulate_actions" var2="0" /> + <placement x="0" y="0" w="%screen_width%" h="%status_height%" /> + </object> + + <object type="fill" color="%text_fail_color%"> + <condition var1="tw_simulate_actions" var2="1" /> + <placement x="0" y="0" w="%screen_width%" h="%status_height%" /> + </object> + + <object type="text" color="%text_color%"> + <condition var1="tw_no_cpu_temp" var2="1" /> + <font resource="font_m" /> + <placement x="%indent%" y="%row1_header_y%" /> + <text>%tw_version%</text> + </object> + + <object type="text" color="%text_color%"> + <condition var1="tw_no_cpu_temp" var2="0" /> + <font resource="font_m" /> + <placement x="%indent%" y="%row1_header_y%" /> + <text>CPU: %tw_cpu_temp% °C</text> + </object> + + <object type="text" color="%text_color%"> + <font resource="font_m" /> + <placement x="%center_x%" y="%row1_header_y%" placement="5" /> + <text>%tw_time%</text> + </object> + + <object type="text" color="%text_color%"> + <conditions> + <condition var1="tw_no_battery_percent" var2="0" /> + <condition var1="tw_battery" op=">" var2="0" /> + <condition var1="tw_battery" op="<" var2="101" /> + </conditions> + <font resource="font_m" /> + <placement x="%indent_right%" y="%row1_header_y%" placement="1" /> + <text>Battery: %tw_battery%</text> + </object> + + <object type="fill" color="#000000"> + <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" /> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="0" /> + <condition var1="tw_samsung_navbar" op="!=" var2="1" /> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="0" /> + <condition var1="tw_samsung_navbar" op="=" var2="1" /> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="0" /> + <placement x="%center_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="home" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">home</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="0" /> + <condition var1="tw_samsung_navbar" op="!=" var2="1" /> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="0" /> + <condition var1="tw_samsung_navbar" op="=" var2="1" /> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="1" /> + <condition var1="tw_samsung_navbar" op="!=" var2="1" /> + <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="1" /> + <condition var1="tw_samsung_navbar" op="=" var2="1" /> + <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="1" /> + <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" /> + <image resource="home" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">home</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="1" /> + <condition var1="tw_samsung_navbar" op="!=" var2="1" /> + <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="1" /> + <condition var1="tw_samsung_navbar" op="=" var2="1" /> + <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="2" /> + <condition var1="tw_samsung_navbar" op="!=" var2="1" /> + <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="2" /> + <condition var1="tw_samsung_navbar" op="=" var2="1" /> + <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="2" /> + <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" /> + <image resource="home" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">home</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="2" /> + <condition var1="tw_samsung_navbar" op="!=" var2="1" /> + <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="button"> + <condition var1="tw_navbar_button_position" op="=" var2="2" /> + <condition var1="tw_samsung_navbar" op="=" var2="1" /> + <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="action"> + <touch key="power" /> + <action function="overlay">lock</action> + </object> + + <object type="action"> + <touch key="power+voldown" /> + <action function="screenshot" /> + </object> + </template> + + <template name="progress_bar"> + <object type="progressbar"> + <placement x="%progress_x%" y="%row16_y%" /> + <resource empty="progress_empty" full="progress_full" /> + <data name="ui_progress" /> + </object> + + <object type="animation"> + <placement x="%progress_x%" y="%row16_y%" /> + <resource name="progress" /> + <speed fps="24" render="2" /> + <loop frame="1" /> + </object> + </template> + + <template name="sort_options"> + <object type="image"> + <placement x="%col_button_right%" y="%row1a_y%" /> + <image resource="main_button_half_width_low" /> + </object> + + <object type="image"> + <placement x="%col_button_right%" y="%row4a_y%" /> + <image resource="main_button_half_width_low" /> + </object> + + <object type="image"> + <placement x="%col_button_right%" y="%row7a_y%" /> + <image resource="main_button_half_width_low" /> + </object> + + <object type="button" style="sort_asc"> + <condition var1="tw_gui_sort_order" op="=" var2="1" /> + <placement x="%col_button_right%" y="%row1a_y%" /> + <text>Sort by Name</text> + <action function="set">tw_gui_sort_order=-1</action> + </object> + + <object type="button" style="sort_desc"> + <condition var1="tw_gui_sort_order" op="=" var2="-1" /> + <placement x="%col_button_right%" y="%row1a_y%" /> + <text>Sort by Name</text> + <action function="set">tw_gui_sort_order=1</action> + </object> + + <object type="button" style="sort_empty"> + <conditions> + <condition var1="tw_gui_sort_order" op="!=" var2="1" /> + <condition var1="tw_gui_sort_order" op="!=" var2="-1" /> + </conditions> + <placement x="%col_button_right%" y="%row1a_y%" /> + <text>Sort by Name</text> + <action function="set">tw_gui_sort_order=1</action> + </object> + + <object type="button" style="sort_asc"> + <condition var1="tw_gui_sort_order" op="=" var2="2" /> + <placement x="%col_button_right%" y="%row4a_y%" /> + <text>Sort by Date</text> + <action function="set">tw_gui_sort_order=-2</action> + </object> + + <object type="button" style="sort_desc"> + <condition var1="tw_gui_sort_order" op="=" var2="-2" /> + <placement x="%col_button_right%" y="%row4a_y%" /> + <text>Sort by Date</text> + <action function="set">tw_gui_sort_order=2</action> + </object> + + <object type="button" style="sort_empty"> + <conditions> + <condition var1="tw_gui_sort_order" op="!=" var2="2" /> + <condition var1="tw_gui_sort_order" op="!=" var2="-2" /> + </conditions> + <placement x="%col_button_right%" y="%row4a_y%" /> + <text>Sort by Date</text> + <action function="set">tw_gui_sort_order=2</action> + </object> + + <object type="button" style="sort_asc"> + <condition var1="tw_gui_sort_order" op="=" var2="3" /> + <placement x="%col_button_right%" y="%row7a_y%" /> + <text>Sort by Size</text> + <action function="set">tw_gui_sort_order=-3</action> + </object> + + <object type="button" style="sort_desc"> + <condition var1="tw_gui_sort_order" op="=" var2="-3" /> + <placement x="%col_button_right%" y="%row7a_y%" /> + <text>Sort by Size</text> + <action function="set">tw_gui_sort_order=3</action> + </object> + + <object type="button" style="sort_empty"> + <conditions> + <condition var1="tw_gui_sort_order" op="!=" var2="3" /> + <condition var1="tw_gui_sort_order" op="!=" var2="-3" /> + </conditions> + <placement x="%col_button_right%" y="%row7a_y%" /> + <text>Sort by Size</text> + <action function="set">tw_gui_sort_order=3</action> + </object> + </template> + + <template name="tabs_settings"> + <object type="button" style="tab"> + <placement x="0" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>GENERAL</text> + <action function="page">settings</action> + </object> + + <object type="button" style="tab"> + <placement x="%tab4_col2_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>TIME ZONE</text> + <action function="page">settings_timezone</action> + </object> + + <object type="button" style="tab"> + <placement x="%center_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>SCREEN</text> + <action function="page">settings_screen</action> + </object> + + <object type="button" style="tab"> + <placement x="%tab4_col4_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>VIBRATION</text> + <action function="page">settings_vibration</action> + </object> + </template> + + <template name="console"> + <object type="console"> + <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%console_height%" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%col1_x_left%" y="row2_y" w="%content_width%" h="input_line_width" placement="1" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%col1_x_left%" y="row15_y" w="%content_width%" h="input_line_width" /> + </object> + </template> + + <template name="console_terminal"> + <object type="console"> + <placement x="%col1_x_left%" y="%row3_header_y%" w="content_width" h="%console_terminal_height%" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%col1_x_left%" y="%row3_header_y%" w="%content_width%" h="input_line_width" placement="1" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%col1_x_left%" y="row7_y" w="%content_width%" h="input_line_width" /> + </object> + </template> + + <template name="keyboardtemplate"> + <object type="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="128" width="192" /> + <row1 key01="q" long01="1" key02="w" long02="2" key03="e" long03="3" key04="r" long04="4" key05="t" long05="5" key06="y" long06="6" key07="u" long07="7" key08="i" long08="8" key09="o" long09="9" key10="p" long10="0" /> + <row2 key01="96:" key02="a" long02="@" key03="s" long03="#" key04="d" long04="$" key05="f" long05="%" key06="g" long06="&" key07="h" long07="*" key08="j" long08="-" key09="k" long09="+" key10="l" long10="_" key11="96:" /> + <row3 key01="288:layout2" key02="z" long02="!" key03="x" long03='"' key04="c" long04="'" key05="v" long05=":" key06="b" long06=";" key07="n" long07="/" key08="m" long08="?" key09="288:c:8" /> + <row4 key01="288:layout3" key02="/" key03="960: " key04="." key05="288:action" /> + <keylabel key="0:layout2" text="Shift" resource="shift"/> + <keylabel key="0:layout3" text="?123"/> + </layout1> + <layout2> + <keysize height="128" width="192" capslock="0" revert_layout="1"/> + <row1 key01="Q" long01="1" key02="W" long02="2" key03="E" long03="3" key04="R" long04="4" key05="T" long05="5" key06="Y" long06="6" key07="U" long07="7" key08="I" long08="8" key09="O" long09="9" key10="P" long10="0" /> + <row2 key01="96:" key02="A" long02="@" key03="S" long03="#" key04="D" long04="$" key05="F" long05="%" key06="G" long06="&" key07="H" long07="*" key08="J" long08="-" key09="K" long09="+" key10="L" long10="_" key11="96:" /> + <row3 key01="288:layout1" key02="Z" long02="!" key03="X" long03='"' key04="C" long04="'" key05="V" long05=":" key06="B" long06=";" key07="N" long07="/" key08="M" long08="?" key09="288:c:8" /> + <row4 key01="288:layout3" key02="/" key03="960: " key04="." key05="288:action" /> + <keylabel key="0:layout1" text="Shift" resource="shift_fill"/> + <keylabel key="0:layout3" text="?123"/> + </layout2> + <layout3> + <keysize height="128" width="192" /> + <row1 key01="1" key02="2" key03="3" key04="4" key05="5" key06="6" key07="7" key08="8" key09="9" key10="0" /> + <row2 key01="@" key02="#" key03="$" key04="%" key05="&" key06="*" key07="-" key08="+" key09="(" key10=")" /> + <row3 key01="288:layout4" key02="!" key03="192:c:34" key04="'" key05=":" key06=";" key07="/" key08="?" key09="288:c:8" /> + <row4 key01="288:layout1" key02="," key03="960: " key04="." key05="288:action" /> + <keylabel key="0:layout1" text="ABC"/> + <keylabel key="0:layout4" text="~\{"/> + </layout3> + <layout4> + <keysize height="128" width="192" /> + <row1 key01="~" key02="`" key03="|" key04="192:" key05="192:" key06="192:" key07="%" key08="192:" key09="{" key10="}" /> + <row2 key01="192:" key02="192:" key03="192:" key04="192:" key05="192:" key06="^" key07="_" key08="=" key09="[" key10="]" /> + <row3 key01="288:layout3" key02="192:" key03="192:" key04="192:" key05="192:" key06="\" key07="<" key08=">" key09="288:c:8" /> + <row4 key01="288:layout1" key02="192:c:34" key03="960: " key04="." key05="288:action" /> + <keylabel key="0:layout1" text="ABC"/> + <keylabel key="0:layout3" text="?123"/> + </layout4> + </object> + </template> + </templates> +</recovery> diff --git a/gui/theme/landscape_mdpi/images/back.png b/gui/theme/landscape_mdpi/images/back.png Binary files differnew file mode 100644 index 000000000..ee2cc399b --- /dev/null +++ b/gui/theme/landscape_mdpi/images/back.png diff --git a/gui/theme/landscape_mdpi/images/backspace.png b/gui/theme/landscape_mdpi/images/backspace.png Binary files differnew file mode 100644 index 000000000..78d9f7919 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/backspace.png diff --git a/gui/theme/landscape_mdpi/images/checkbox_false.png b/gui/theme/landscape_mdpi/images/checkbox_false.png Binary files differnew file mode 100644 index 000000000..d5244af93 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/checkbox_false.png diff --git a/gui/theme/landscape_mdpi/images/checkbox_true.png b/gui/theme/landscape_mdpi/images/checkbox_true.png Binary files differnew file mode 100644 index 000000000..c264d2f6f --- /dev/null +++ b/gui/theme/landscape_mdpi/images/checkbox_true.png diff --git a/gui/theme/landscape_mdpi/images/console.png b/gui/theme/landscape_mdpi/images/console.png Binary files differnew file mode 100644 index 000000000..d492bc308 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/console.png diff --git a/gui/theme/landscape_mdpi/images/cursor.png b/gui/theme/landscape_mdpi/images/cursor.png Binary files differnew file mode 100644 index 000000000..948f187b7 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/cursor.png diff --git a/gui/theme/landscape_mdpi/images/curtain.jpg b/gui/theme/landscape_mdpi/images/curtain.jpg Binary files differnew file mode 100644 index 000000000..f79ab92b5 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/curtain.jpg diff --git a/gui/theme/landscape_mdpi/images/enter.png b/gui/theme/landscape_mdpi/images/enter.png Binary files differnew file mode 100644 index 000000000..0d86d7b8f --- /dev/null +++ b/gui/theme/landscape_mdpi/images/enter.png diff --git a/gui/theme/landscape_mdpi/images/file.png b/gui/theme/landscape_mdpi/images/file.png Binary files differnew file mode 100644 index 000000000..89be008b3 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/file.png diff --git a/gui/theme/landscape_mdpi/images/folder.png b/gui/theme/landscape_mdpi/images/folder.png Binary files differnew file mode 100644 index 000000000..e276307b9 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/folder.png diff --git a/gui/theme/landscape_mdpi/images/handle.png b/gui/theme/landscape_mdpi/images/handle.png Binary files differnew file mode 100644 index 000000000..b19759e06 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/handle.png diff --git a/gui/theme/landscape_mdpi/images/home.png b/gui/theme/landscape_mdpi/images/home.png Binary files differnew file mode 100644 index 000000000..5daf4bb7f --- /dev/null +++ b/gui/theme/landscape_mdpi/images/home.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate001.png b/gui/theme/landscape_mdpi/images/indeterminate001.png Binary files differnew file mode 100644 index 000000000..6b43659ab --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate001.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate002.png b/gui/theme/landscape_mdpi/images/indeterminate002.png Binary files differnew file mode 100644 index 000000000..e4825820a --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate002.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate003.png b/gui/theme/landscape_mdpi/images/indeterminate003.png Binary files differnew file mode 100644 index 000000000..03b903e46 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate003.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate004.png b/gui/theme/landscape_mdpi/images/indeterminate004.png Binary files differnew file mode 100644 index 000000000..a964c2d98 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate004.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate005.png b/gui/theme/landscape_mdpi/images/indeterminate005.png Binary files differnew file mode 100644 index 000000000..cbf44406f --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate005.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate006.png b/gui/theme/landscape_mdpi/images/indeterminate006.png Binary files differnew file mode 100644 index 000000000..5bb750d11 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate006.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate007.png b/gui/theme/landscape_mdpi/images/indeterminate007.png Binary files differnew file mode 100644 index 000000000..3f8666360 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate007.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate008.png b/gui/theme/landscape_mdpi/images/indeterminate008.png Binary files differnew file mode 100644 index 000000000..4f089c360 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate008.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate009.png b/gui/theme/landscape_mdpi/images/indeterminate009.png Binary files differnew file mode 100644 index 000000000..88ec507ed --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate009.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate010.png b/gui/theme/landscape_mdpi/images/indeterminate010.png Binary files differnew file mode 100644 index 000000000..2e34b2cf5 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate010.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate011.png b/gui/theme/landscape_mdpi/images/indeterminate011.png Binary files differnew file mode 100644 index 000000000..5206dc3bc --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate011.png diff --git a/gui/theme/landscape_mdpi/images/indeterminate012.png b/gui/theme/landscape_mdpi/images/indeterminate012.png Binary files differnew file mode 100644 index 000000000..0780dc102 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/indeterminate012.png diff --git a/gui/theme/landscape_mdpi/images/logo.png b/gui/theme/landscape_mdpi/images/logo.png Binary files differnew file mode 100644 index 000000000..a6c1a6aca --- /dev/null +++ b/gui/theme/landscape_mdpi/images/logo.png diff --git a/gui/theme/landscape_mdpi/images/main_button.png b/gui/theme/landscape_mdpi/images/main_button.png Binary files differnew file mode 100644 index 000000000..1cbe2be69 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/main_button.png diff --git a/gui/theme/landscape_mdpi/images/main_button_half_width.png b/gui/theme/landscape_mdpi/images/main_button_half_width.png Binary files differnew file mode 100644 index 000000000..94aaa06a4 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/main_button_half_width.png diff --git a/gui/theme/landscape_mdpi/images/main_button_half_width_low.png b/gui/theme/landscape_mdpi/images/main_button_half_width_low.png Binary files differnew file mode 100644 index 000000000..eee2477fe --- /dev/null +++ b/gui/theme/landscape_mdpi/images/main_button_half_width_low.png diff --git a/gui/theme/landscape_mdpi/images/progress_empty.png b/gui/theme/landscape_mdpi/images/progress_empty.png Binary files differnew file mode 100644 index 000000000..c68f09c30 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/progress_empty.png diff --git a/gui/theme/landscape_mdpi/images/progress_fill.png b/gui/theme/landscape_mdpi/images/progress_fill.png Binary files differnew file mode 100644 index 000000000..6e5439a90 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/progress_fill.png diff --git a/gui/theme/landscape_mdpi/images/radio_false.png b/gui/theme/landscape_mdpi/images/radio_false.png Binary files differnew file mode 100644 index 000000000..bfb8a3ad6 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/radio_false.png diff --git a/gui/theme/landscape_mdpi/images/radio_true.png b/gui/theme/landscape_mdpi/images/radio_true.png Binary files differnew file mode 100644 index 000000000..704e2ac2d --- /dev/null +++ b/gui/theme/landscape_mdpi/images/radio_true.png diff --git a/gui/theme/landscape_mdpi/images/shift.png b/gui/theme/landscape_mdpi/images/shift.png Binary files differnew file mode 100644 index 000000000..943d094e1 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/shift.png diff --git a/gui/theme/landscape_mdpi/images/shift_fill.png b/gui/theme/landscape_mdpi/images/shift_fill.png Binary files differnew file mode 100644 index 000000000..87692baa5 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/shift_fill.png diff --git a/gui/theme/landscape_mdpi/images/slider.png b/gui/theme/landscape_mdpi/images/slider.png Binary files differnew file mode 100644 index 000000000..dc5a2cb59 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/slider.png diff --git a/gui/theme/landscape_mdpi/images/slider_touch.png b/gui/theme/landscape_mdpi/images/slider_touch.png Binary files differnew file mode 100644 index 000000000..374ea71ac --- /dev/null +++ b/gui/theme/landscape_mdpi/images/slider_touch.png diff --git a/gui/theme/landscape_mdpi/images/slider_used.png b/gui/theme/landscape_mdpi/images/slider_used.png Binary files differnew file mode 100644 index 000000000..d7034f907 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/slider_used.png diff --git a/gui/theme/landscape_mdpi/images/sort_asc.png b/gui/theme/landscape_mdpi/images/sort_asc.png Binary files differnew file mode 100644 index 000000000..9df2cb44a --- /dev/null +++ b/gui/theme/landscape_mdpi/images/sort_asc.png diff --git a/gui/theme/landscape_mdpi/images/sort_desc.png b/gui/theme/landscape_mdpi/images/sort_desc.png Binary files differnew file mode 100644 index 000000000..24678f917 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/sort_desc.png diff --git a/gui/theme/landscape_mdpi/images/sort_empty.png b/gui/theme/landscape_mdpi/images/sort_empty.png Binary files differnew file mode 100644 index 000000000..1d90719fa --- /dev/null +++ b/gui/theme/landscape_mdpi/images/sort_empty.png diff --git a/gui/theme/landscape_mdpi/images/space.png b/gui/theme/landscape_mdpi/images/space.png Binary files differnew file mode 100644 index 000000000..a4d7b0332 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/space.png diff --git a/gui/theme/landscape_mdpi/images/tab_3.png b/gui/theme/landscape_mdpi/images/tab_3.png Binary files differnew file mode 100644 index 000000000..1dd658ecc --- /dev/null +++ b/gui/theme/landscape_mdpi/images/tab_3.png diff --git a/gui/theme/landscape_mdpi/images/tab_4.png b/gui/theme/landscape_mdpi/images/tab_4.png Binary files differnew file mode 100644 index 000000000..4d0977d8f --- /dev/null +++ b/gui/theme/landscape_mdpi/images/tab_4.png diff --git a/gui/theme/landscape_mdpi/images/unlock_icon.png b/gui/theme/landscape_mdpi/images/unlock_icon.png Binary files differnew file mode 100644 index 000000000..d6a2d7ae9 --- /dev/null +++ b/gui/theme/landscape_mdpi/images/unlock_icon.png diff --git a/gui/theme/landscape_mdpi/ui.xml b/gui/theme/landscape_mdpi/ui.xml new file mode 100644 index 000000000..563f16ee4 --- /dev/null +++ b/gui/theme/landscape_mdpi/ui.xml @@ -0,0 +1,635 @@ +<?xml version="1.0"?>
+
+<recovery>
+ <details>
+ <resolution width="800" height="480" />
+ <author>TeamWin</author>
+ <title>Backup Naowz</title>
+ <description>Default basic theme</description>
+ <preview>preview.jpg</preview>
+ </details>
+
+ <include>
+ <xmlfile name="landscape.xml" />
+ </include>
+
+ <resources>
+ <resource name="font_l" type="font" filename="RobotoCondensed-Regular.ttf" size="18" />
+ <resource name="font_m" type="font" filename="RobotoCondensed-Regular.ttf" size="14" />
+ <resource name="font_s" type="font" filename="RobotoCondensed-Regular.ttf" size="12" />
+ <resource name="fixed" type="font" filename="DroidSansMono.ttf" size="12" />
+
+ <resource name="keylabel" type="font" filename="RobotoCondensed-Regular.ttf" size="21" />
+ <resource name="keylabel-small" type="font" filename="RobotoCondensed-Regular.ttf" size="18" />
+ <resource name="keylabel-longpress" type="font" filename="RobotoCondensed-Regular.ttf" size="11" />
+
+ <resource name="logo" type="image" filename="logo" retainaspect="1" />
+ <resource name="main_button" type="image" filename="main_button" />
+ <resource name="main_button_half_width" type="image" filename="main_button_half_width" />
+ <resource name="main_button_half_width_low" type="image" filename="main_button_half_width_low" />
+ <resource name="tab_3" type="image" filename="tab_3" />
+ <resource name="tab_4" type="image" filename="tab_4" />
+ <resource name="file" type="image" filename="file" retainaspect="1" />
+ <resource name="folder" type="image" filename="folder" retainaspect="1" />
+ <resource name="unlock_icon" type="image" filename="unlock_icon" retainaspect="1" />
+ <resource name="home" type="image" filename="home" retainaspect="1" />
+ <resource name="back" type="image" filename="back" retainaspect="1" />
+ <resource name="console" type="image" filename="console" retainaspect="1" />
+ <resource name="checkbox_false" type="image" filename="checkbox_false" retainaspect="1" />
+ <resource name="checkbox_true" type="image" filename="checkbox_true" retainaspect="1" />
+ <resource name="radio_false" type="image" filename="radio_false" retainaspect="1" />
+ <resource name="radio_true" type="image" filename="radio_true" retainaspect="1" />
+ <resource name="sort_asc" type="image" filename="sort_asc" />
+ <resource name="sort_desc" type="image" filename="sort_desc" />
+ <resource name="sort_empty" type="image" filename="sort_empty" />
+ <resource name="progress" type="animation" filename="indeterminate" />
+ <resource name="progress_empty" type="image" filename="progress_empty" />
+ <resource name="progress_full" type="image" filename="progress_fill" />
+ <resource name="slider" type="image" filename="slider" />
+ <resource name="slider_used" type="image" filename="slider_used" />
+ <resource name="slider_touch" type="image" filename="slider_touch" />
+ <resource name="handle" type="image" filename="handle" />
+ <resource name="cursor" type="image" filename="cursor" retainaspect="1" />
+
+ <resource name="backspace" type="image" filename="backspace" retainaspect="1" />
+ <resource name="enter" type="image" filename="enter" retainaspect="1" />
+ <resource name="shift" type="image" filename="shift" retainaspect="1" />
+ <resource name="shift_fill" type="image" filename="shift_fill" retainaspect="1" />
+ <resource name="space" type="image" filename="space" retainaspect="1" />
+ </resources>
+
+ <variables>
+ <variable name="tw_samsung_navbar" value="0" persist="1" />
+ <variable name="tw_navbar_button_position" value="0" persist="1" />
+
+ <variable name="screen_width" value="800" />
+ <variable name="screen_height" value="480" />
+ <variable name="status_height" value="20" />
+ <variable name="header_height" value="80" />
+ <variable name="navbar_height" value="40" />
+ <variable name="content_width" value="760" />
+ <variable name="content_quarter_width" value="590" />
+ <variable name="content_half_width" value="370" />
+ <variable name="content_overlay_width" value="380" />
+ <variable name="dialog_height" value="207" />
+ <variable name="dialog_width" value="400" />
+ <variable name="dialog_content_x" value="220" />
+ <variable name="back_button_x" value="264" />
+ <variable name="console_button_x" value="536" />
+ <variable name="back_button_x_1" value="50" />
+ <variable name="home_button_x_1" value="130" />
+ <variable name="console_button_x_1" value="210" />
+ <variable name="back_button_x_2" value="590" />
+ <variable name="home_button_x_2" value="670" />
+ <variable name="console_button_x_2" value="750" />
+ <variable name="col1_x_header" value="60" />
+ <variable name="indent" value="10" />
+ <variable name="col1_x_left" value="20" />
+ <variable name="col2_x_left" value="210" />
+ <variable name="center_x" value="400" />
+ <variable name="col1_x_right" value="410" />
+ <variable name="col2_x_right" value="590" />
+ <variable name="col_button_right" value="620" />
+ <variable name="indent_right" value="790" />
+ <variable name="tab_height" value="30" />
+ <variable name="tab_indicator_height" value="2" />
+ <variable name="tab4_width" value="200" />
+ <variable name="tab4_col2_x" value="200" />
+ <variable name="tab4_col4_x" value="600" />
+ <variable name="btn4_col2_x_left" value="117" />
+ <variable name="btn4_col3_x_left" value="216" />
+ <variable name="btn4_col4_x_left" value="313" />
+ <variable name="btn4_col2_x_right" value="507" />
+ <variable name="btn4_col3_x_right" value="606" />
+ <variable name="btn4_col4_x_right" value="703" />
+ <variable name="row1_header_y" value="0" />
+ <variable name="row2_header_y" value="20" />
+ <variable name="row3_header_y" value="24" />
+ <variable name="row4_header_y" value="52" />
+ <variable name="row1_y" value="80" />
+ <variable name="row1a_y" value="89" />
+ <variable name="row2_y" value="98" />
+ <variable name="row2a_y" value="107" />
+ <variable name="row_tab_y" value="108" />
+ <variable name="row2_input_y" value="116" />
+ <variable name="row3_y" value="116" />
+ <variable name="row3a_y" value="125" />
+ <variable name="row3_input_y" value="125" />
+ <variable name="row4_y" value="134" />
+ <variable name="row4a_y" value="143" />
+ <variable name="row4_input_y" value="143" />
+ <variable name="row5_y" value="152" />
+ <variable name="row5a_y" value="161" />
+ <variable name="row6_y" value="170" />
+ <variable name="row6a_y" value="179" />
+ <variable name="row7_y" value="188" />
+ <variable name="row7a_y" value="197" />
+ <variable name="row8_y" value="206" />
+ <variable name="row8a_y" value="215" />
+ <variable name="row9_y" value="224" />
+ <variable name="row9a_y" value="233" />
+ <variable name="row10_y" value="242" />
+ <variable name="row10a_y" value="251" />
+ <variable name="row11_y" value="260" />
+ <variable name="row11a_y" value="269" />
+ <variable name="row12_y" value="278" />
+ <variable name="row12a_y" value="288" />
+ <variable name="row13_y" value="296" />
+ <variable name="row13a_y" value="305" />
+ <variable name="row14_y" value="314" />
+ <variable name="row14a_y" value="323" />
+ <variable name="row15_y" value="332" />
+ <variable name="row15a_y" value="341" />
+ <variable name="row16_y" value="350" />
+ <variable name="row16a_y" value="359" />
+ <variable name="row17_y" value="368" />
+ <variable name="row17a_y" value="377" />
+ <variable name="row18_y" value="386" />
+ <variable name="row18a_y" value="395" />
+ <variable name="row19_y" value="404" />
+ <variable name="row19a_y" value="413" />
+ <variable name="row20_y" value="422" />
+ <variable name="navbar_y" value="440" />
+ <variable name="navbar_btn_y" value="460" />
+ <variable name="keyboard_y" value="248" />
+ <variable name="background_color" value="#1A1A1A" />
+ <variable name="accent_color" value="#0090CA" />
+ <variable name="text_color" value="#EEEEEE" />
+ <variable name="text_button_color" value="#EEEEEE" />
+ <variable name="text_success_color" value="#76FF03" />
+ <variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#1A1A1A80" />
+ <variable name="caps_highlight_color" value="#22222280" />
+ <variable name="transparent" value="#00000000" />
+ <variable name="semi_transparent" value="#00000099" />
+ <variable name="warning" value="#F8F8A0" />
+ <variable name="error" value="#FF0101" />
+ <variable name="highlight" value="#0090CA" />
+ <variable name="fileselector_linecolor" value="#555555" />
+ <variable name="fileselector_highlight_color" value="#555555" />
+ <variable name="fileselector_separatorheight" value="1" />
+ <variable name="fileselector_spacing" value="0" />
+ <variable name="fileselector_install_height" value="333" />
+ <variable name="fileselector_install_width" value="400" />
+ <variable name="fileselector_install_folder_width" value="170" />
+ <variable name="fileselector_filemanager_height" value="333" />
+ <variable name="partitionlist_spacing" value="0" />
+ <variable name="partitionlist_storage_height" value="160" />
+ <variable name="partitionlist_flashimage_height" value="144" />
+ <variable name="partitionlist_wipe_height" value="243" />
+ <variable name="partitionlist_mount_height" value="221" />
+ <variable name="partitionlist_backup_height" value="198" />
+ <variable name="listbox_timezone_height" value="306" />
+ <variable name="listbox_settings_height" value="243" />
+ <variable name="fastscroll_w" value="7" />
+ <variable name="fastscroll_linew" value="1" />
+ <variable name="fastscroll_rectw" value="7" />
+ <variable name="fastscroll_recth" value="45" />
+ <variable name="slidervalue_lineh" value="2" />
+ <variable name="slidervalue_padding" value="0" />
+ <variable name="slidervalue_sliderw" value="24" />
+ <variable name="slidervalue_sliderh" value="36" />
+ <variable name="slideout_y" value="40" />
+ <variable name="slideout_height" value="380" />
+ <variable name="slideout_bg_height" value="420" />
+ <variable name="input_height" value="18" />
+ <variable name="input_line_width" value="1" />
+ <variable name="console_height" value="234" />
+ <variable name="console_terminal_height" value="164" />
+ <variable name="dialog_button_x" value="480" />
+ <variable name="date_button_x" value="230" />
+ <variable name="progress_x" value="230" />
+ <variable name="progress_text_x" value="40" />
+ <variable name="progress_text_y" value="348" />
+ <variable name="pattern_x" value="300" />
+ <variable name="pattern_dot_dia" value="12" />
+ <variable name="pattern_line_w" value="4" />
+ <variable name="pattern_size" value="200" />
+ </variables>
+
+ <mousecursor>
+ <placement w="15" h="15" />
+ <background color="#FFFF00FF" resource="cursor" />
+ <speed multiplier="2.5" />
+ </mousecursor>
+
+ <templates>
+ <template name="page">
+ <background color="%background_color%" />
+
+ <object type="fill" color="%accent_color%">
+ <placement x="0" y="0" w="%screen_width%" h="%header_height%" />
+ </object>
+
+ <object type="image">
+ <condition var1="tw_busy" var2="1" />
+ <image resource="logo" />
+ <placement x="0" y="0" />
+ </object>
+
+ <object type="button">
+ <condition var1="tw_busy" var2="0" />
+ <placement x="0" y="0" />
+ <image resource="logo" />
+ <action function="key">home</action>
+ </object>
+
+ <object type="fill" color="#00000030">
+ <condition var1="tw_simulate_actions" var2="0" />
+ <placement x="0" y="0" w="%screen_width%" h="%status_height%" />
+ </object>
+
+ <object type="fill" color="%text_fail_color%">
+ <condition var1="tw_simulate_actions" var2="1" />
+ <placement x="0" y="0" w="%screen_width%" h="%status_height%" />
+ </object>
+
+ <object type="text" color="%text_color%">
+ <condition var1="tw_no_cpu_temp" var2="1" />
+ <font resource="font_m" />
+ <placement x="%indent%" y="%row1_header_y%" />
+ <text>%tw_version%</text>
+ </object>
+
+ <object type="text" color="%text_color%">
+ <condition var1="tw_no_cpu_temp" var2="0" />
+ <font resource="font_m" />
+ <placement x="%indent%" y="%row1_header_y%" />
+ <text>CPU: %tw_cpu_temp% °C</text>
+ </object>
+
+ <object type="text" color="%text_color%">
+ <font resource="font_m" />
+ <placement x="%center_x%" y="%row1_header_y%" placement="5" />
+ <text>%tw_time%</text>
+ </object>
+
+ <object type="text" color="%text_color%">
+ <conditions>
+ <condition var1="tw_no_battery_percent" var2="0" />
+ <condition var1="tw_battery" op=">" var2="0" />
+ <condition var1="tw_battery" op="<" var2="101" />
+ </conditions>
+ <font resource="font_m" />
+ <placement x="%indent_right%" y="%row1_header_y%" placement="1" />
+ <text>Battery: %tw_battery%</text>
+ </object>
+
+ <object type="fill" color="#000000">
+ <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="0" />
+ <condition var1="tw_samsung_navbar" op="!=" var2="1" />
+ <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="back" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="key">back</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="0" />
+ <condition var1="tw_samsung_navbar" op="=" var2="1" />
+ <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="console" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="overlay">slideout</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="0" />
+ <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="home" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="key">home</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="0" />
+ <condition var1="tw_samsung_navbar" op="!=" var2="1" />
+ <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="console" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="overlay">slideout</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="0" />
+ <condition var1="tw_samsung_navbar" op="=" var2="1" />
+ <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="back" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="key">back</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="1" />
+ <condition var1="tw_samsung_navbar" op="!=" var2="1" />
+ <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
+ <image resource="back" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="key">back</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="1" />
+ <condition var1="tw_samsung_navbar" op="=" var2="1" />
+ <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
+ <image resource="console" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="overlay">slideout</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="1" />
+ <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
+ <image resource="home" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="key">home</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="1" />
+ <condition var1="tw_samsung_navbar" op="!=" var2="1" />
+ <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
+ <image resource="console" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="overlay">slideout</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="1" />
+ <condition var1="tw_samsung_navbar" op="=" var2="1" />
+ <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
+ <image resource="back" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="key">back</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="2" />
+ <condition var1="tw_samsung_navbar" op="!=" var2="1" />
+ <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
+ <image resource="back" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="key">back</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="2" />
+ <condition var1="tw_samsung_navbar" op="=" var2="1" />
+ <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
+ <image resource="console" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="overlay">slideout</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="2" />
+ <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
+ <image resource="home" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="key">home</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="2" />
+ <condition var1="tw_samsung_navbar" op="!=" var2="1" />
+ <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
+ <image resource="console" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="overlay">slideout</action>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_navbar_button_position" op="=" var2="2" />
+ <condition var1="tw_samsung_navbar" op="=" var2="1" />
+ <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
+ <image resource="back" />
+ <condition var1="tw_busy" var2="0" />
+ <action function="key">back</action>
+ </object>
+
+ <object type="action">
+ <touch key="power" />
+ <action function="overlay">lock</action>
+ </object>
+
+ <object type="action">
+ <touch key="power+voldown" />
+ <action function="screenshot" />
+ </object>
+ </template>
+
+ <template name="progress_bar">
+ <object type="progressbar">
+ <placement x="%progress_x%" y="%row16_y%" />
+ <resource empty="progress_empty" full="progress_full" />
+ <data name="ui_progress" />
+ </object>
+
+ <object type="animation">
+ <placement x="%progress_x%" y="%row16_y%" />
+ <resource name="progress" />
+ <speed fps="24" render="2" />
+ <loop frame="1" />
+ </object>
+ </template>
+
+ <template name="sort_options">
+ <object type="image">
+ <placement x="%col_button_right%" y="%row1a_y%" />
+ <image resource="main_button_half_width_low" />
+ </object>
+
+ <object type="image">
+ <placement x="%col_button_right%" y="%row4a_y%" />
+ <image resource="main_button_half_width_low" />
+ </object>
+
+ <object type="image">
+ <placement x="%col_button_right%" y="%row7a_y%" />
+ <image resource="main_button_half_width_low" />
+ </object>
+
+ <object type="button" style="sort_asc">
+ <condition var1="tw_gui_sort_order" op="=" var2="1" />
+ <placement x="%col_button_right%" y="%row1a_y%" />
+ <text>Sort by Name</text>
+ <action function="set">tw_gui_sort_order=-1</action>
+ </object>
+
+ <object type="button" style="sort_desc">
+ <condition var1="tw_gui_sort_order" op="=" var2="-1" />
+ <placement x="%col_button_right%" y="%row1a_y%" />
+ <text>Sort by Name</text>
+ <action function="set">tw_gui_sort_order=1</action>
+ </object>
+
+ <object type="button" style="sort_empty">
+ <conditions>
+ <condition var1="tw_gui_sort_order" op="!=" var2="1" />
+ <condition var1="tw_gui_sort_order" op="!=" var2="-1" />
+ </conditions>
+ <placement x="%col_button_right%" y="%row1a_y%" />
+ <text>Sort by Name</text>
+ <action function="set">tw_gui_sort_order=1</action>
+ </object>
+
+ <object type="button" style="sort_asc">
+ <condition var1="tw_gui_sort_order" op="=" var2="2" />
+ <placement x="%col_button_right%" y="%row4a_y%" />
+ <text>Sort by Date</text>
+ <action function="set">tw_gui_sort_order=-2</action>
+ </object>
+
+ <object type="button" style="sort_desc">
+ <condition var1="tw_gui_sort_order" op="=" var2="-2" />
+ <placement x="%col_button_right%" y="%row4a_y%" />
+ <text>Sort by Date</text>
+ <action function="set">tw_gui_sort_order=2</action>
+ </object>
+
+ <object type="button" style="sort_empty">
+ <conditions>
+ <condition var1="tw_gui_sort_order" op="!=" var2="2" />
+ <condition var1="tw_gui_sort_order" op="!=" var2="-2" />
+ </conditions>
+ <placement x="%col_button_right%" y="%row4a_y%" />
+ <text>Sort by Date</text>
+ <action function="set">tw_gui_sort_order=2</action>
+ </object>
+
+ <object type="button" style="sort_asc">
+ <condition var1="tw_gui_sort_order" op="=" var2="3" />
+ <placement x="%col_button_right%" y="%row7a_y%" />
+ <text>Sort by Size</text>
+ <action function="set">tw_gui_sort_order=-3</action>
+ </object>
+
+ <object type="button" style="sort_desc">
+ <condition var1="tw_gui_sort_order" op="=" var2="-3" />
+ <placement x="%col_button_right%" y="%row7a_y%" />
+ <text>Sort by Size</text>
+ <action function="set">tw_gui_sort_order=3</action>
+ </object>
+
+ <object type="button" style="sort_empty">
+ <conditions>
+ <condition var1="tw_gui_sort_order" op="!=" var2="3" />
+ <condition var1="tw_gui_sort_order" op="!=" var2="-3" />
+ </conditions>
+ <placement x="%col_button_right%" y="%row7a_y%" />
+ <text>Sort by Size</text>
+ <action function="set">tw_gui_sort_order=3</action>
+ </object>
+ </template>
+
+ <template name="tabs_settings">
+ <object type="button" style="tab">
+ <placement x="0" y="%row1_y%" w="%tab4_width%" h="%tab_height%" />
+ <text>GENERAL</text>
+ <action function="page">settings</action>
+ </object>
+
+ <object type="button" style="tab">
+ <placement x="%tab4_col2_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" />
+ <text>TIME ZONE</text>
+ <action function="page">settings_timezone</action>
+ </object>
+
+ <object type="button" style="tab">
+ <placement x="%center_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" />
+ <text>SCREEN</text>
+ <action function="page">settings_screen</action>
+ </object>
+
+ <object type="button" style="tab">
+ <placement x="%tab4_col4_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" />
+ <text>VIBRATION</text>
+ <action function="page">settings_vibration</action>
+ </object>
+ </template>
+
+ <template name="console">
+ <object type="console">
+ <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%console_height%" />
+ </object>
+
+ <object type="fill" color="%fileselector_linecolor%">
+ <placement x="%col1_x_left%" y="row2_y" w="%content_width%" h="input_line_width" placement="1" />
+ </object>
+
+ <object type="fill" color="%fileselector_linecolor%">
+ <placement x="%col1_x_left%" y="row15_y" w="%content_width%" h="input_line_width" />
+ </object>
+ </template>
+
+ <template name="console_terminal">
+ <object type="console">
+ <placement x="%col1_x_left%" y="%row3_header_y%" w="content_width" h="%console_terminal_height%" />
+ </object>
+
+ <object type="fill" color="%fileselector_linecolor%">
+ <placement x="%col1_x_left%" y="%row3_header_y%" w="%content_width%" h="input_line_width" placement="1" />
+ </object>
+
+ <object type="fill" color="%fileselector_linecolor%">
+ <placement x="%col1_x_left%" y="row7_y" w="%content_width%" h="input_line_width" />
+ </object>
+ </template>
+
+ <template name="keyboardtemplate">
+ <object type="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="48" width="80" />
+ <row1 key01="q" long01="1" key02="w" long02="2" key03="e" long03="3" key04="r" long04="4" key05="t" long05="5" key06="y" long06="6" key07="u" long07="7" key08="i" long08="8" key09="o" long09="9" key10="p" long10="0" />
+ <row2 key01="40:" key02="a" long02="@" key03="s" long03="#" key04="d" long04="$" key05="f" long05="%" key06="g" long06="&" key07="h" long07="*" key08="j" long08="-" key09="k" long09="+" key10="l" long10="_" key11="40:" />
+ <row3 key01="120:layout2" key02="z" long02="!" key03="x" long03='"' key04="c" long04="'" key05="v" long05=":" key06="b" long06=";" key07="n" long07="/" key08="m" long08="?" key09="120:c:8" />
+ <row4 key01="120:layout3" key02="/" key03="400: " key04="." key05="120:action" />
+ <keylabel key="0:layout2" text="Shift" resource="shift"/>
+ <keylabel key="0:layout3" text="?123"/>
+ </layout1>
+ <layout2>
+ <keysize height="48" width="80" capslock="0" revert_layout="1"/>
+ <row1 key01="Q" long01="1" key02="W" long02="2" key03="E" long03="3" key04="R" long04="4" key05="T" long05="5" key06="Y" long06="6" key07="U" long07="7" key08="I" long08="8" key09="O" long09="9" key10="P" long10="0" />
+ <row2 key01="40:" key02="A" long02="@" key03="S" long03="#" key04="D" long04="$" key05="F" long05="%" key06="G" long06="&" key07="H" long07="*" key08="J" long08="-" key09="K" long09="+" key10="L" long10="_" key11="40:" />
+ <row3 key01="120:layout1" key02="Z" long02="!" key03="X" long03='"' key04="C" long04="'" key05="V" long05=":" key06="B" long06=";" key07="N" long07="/" key08="M" long08="?" key09="120:c:8" />
+ <row4 key01="120:layout3" key02="/" key03="400: " key04="." key05="120:action" />
+ <keylabel key="0:layout1" text="Shift" resource="shift_fill"/>
+ <keylabel key="0:layout3" text="?123"/>
+ </layout2>
+ <layout3>
+ <keysize height="48" width="80" />
+ <row1 key01="1" key02="2" key03="3" key04="4" key05="5" key06="6" key07="7" key08="8" key09="9" key10="0" />
+ <row2 key01="@" key02="#" key03="$" key04="%" key05="&" key06="*" key07="-" key08="+" key09="(" key10=")" />
+ <row3 key01="120:layout4" key02="!" key03="80:c:34" key04="'" key05=":" key06=";" key07="/" key08="?" key09="120:c:8" />
+ <row4 key01="120:layout1" key02="," key03="400: " key04="." key05="120:action" />
+ <keylabel key="0:layout1" text="ABC"/>
+ <keylabel key="0:layout4" text="~\{"/>
+ </layout3>
+ <layout4>
+ <keysize height="48" width="80" />
+ <row1 key01="~" key02="`" key03="|" key04="80:" key05="80:" key06="80:" key07="%" key08="80:" key09="{" key10="}" />
+ <row2 key01="80:" key02="80:" key03="80:" key04="80:" key05="80:" key06="^" key07="_" key08="=" key09="[" key10="]" />
+ <row3 key01="120:layout3" key02="80:" key03="80:" key04="80:" key05="80:" key06="\" key07="<" key08=">" key09="120:c:8" />
+ <row4 key01="120:layout1" key02="80:c:34" key03="400: " key04="." key05="120:action" />
+ <keylabel key="0:layout1" text="ABC"/>
+ <keylabel key="0:layout3" text="?123"/>
+ </layout4>
+ </object>
+ </template>
+ </templates>
+</recovery>
diff --git a/gui/theme/portrait_hdpi/images/back.png b/gui/theme/portrait_hdpi/images/back.png Binary files differnew file mode 100644 index 000000000..56c665105 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/back.png diff --git a/gui/theme/portrait_hdpi/images/backspace.png b/gui/theme/portrait_hdpi/images/backspace.png Binary files differnew file mode 100644 index 000000000..7da7830a8 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/backspace.png diff --git a/gui/theme/portrait_hdpi/images/checkbox_false.png b/gui/theme/portrait_hdpi/images/checkbox_false.png Binary files differnew file mode 100644 index 000000000..054b6c81f --- /dev/null +++ b/gui/theme/portrait_hdpi/images/checkbox_false.png diff --git a/gui/theme/portrait_hdpi/images/checkbox_true.png b/gui/theme/portrait_hdpi/images/checkbox_true.png Binary files differnew file mode 100644 index 000000000..1f93db6ee --- /dev/null +++ b/gui/theme/portrait_hdpi/images/checkbox_true.png diff --git a/gui/theme/portrait_hdpi/images/console.png b/gui/theme/portrait_hdpi/images/console.png Binary files differnew file mode 100644 index 000000000..4cf908556 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/console.png diff --git a/gui/theme/portrait_hdpi/images/cursor.png b/gui/theme/portrait_hdpi/images/cursor.png Binary files differnew file mode 100644 index 000000000..e4897a30d --- /dev/null +++ b/gui/theme/portrait_hdpi/images/cursor.png diff --git a/gui/theme/portrait_hdpi/images/curtain.jpg b/gui/theme/portrait_hdpi/images/curtain.jpg Binary files differnew file mode 100644 index 000000000..fd0ea31ef --- /dev/null +++ b/gui/theme/portrait_hdpi/images/curtain.jpg diff --git a/gui/theme/portrait_hdpi/images/enter.png b/gui/theme/portrait_hdpi/images/enter.png Binary files differnew file mode 100644 index 000000000..545a7e14f --- /dev/null +++ b/gui/theme/portrait_hdpi/images/enter.png diff --git a/gui/theme/portrait_hdpi/images/fab_selectfolder.png b/gui/theme/portrait_hdpi/images/fab_selectfolder.png Binary files differnew file mode 100644 index 000000000..3a6593079 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/fab_selectfolder.png diff --git a/gui/theme/portrait_hdpi/images/file.png b/gui/theme/portrait_hdpi/images/file.png Binary files differnew file mode 100644 index 000000000..bf7a17331 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/file.png diff --git a/gui/theme/portrait_hdpi/images/folder.png b/gui/theme/portrait_hdpi/images/folder.png Binary files differnew file mode 100644 index 000000000..b5f72524f --- /dev/null +++ b/gui/theme/portrait_hdpi/images/folder.png diff --git a/gui/theme/portrait_hdpi/images/handle.png b/gui/theme/portrait_hdpi/images/handle.png Binary files differnew file mode 100644 index 000000000..689b5b411 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/handle.png diff --git a/gui/theme/portrait_hdpi/images/home.png b/gui/theme/portrait_hdpi/images/home.png Binary files differnew file mode 100644 index 000000000..1144fb594 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/home.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate001.png b/gui/theme/portrait_hdpi/images/indeterminate001.png Binary files differnew file mode 100644 index 000000000..cf7faeee9 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate001.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate002.png b/gui/theme/portrait_hdpi/images/indeterminate002.png Binary files differnew file mode 100644 index 000000000..3cb4917b9 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate002.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate003.png b/gui/theme/portrait_hdpi/images/indeterminate003.png Binary files differnew file mode 100644 index 000000000..0894afc26 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate003.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate004.png b/gui/theme/portrait_hdpi/images/indeterminate004.png Binary files differnew file mode 100644 index 000000000..7b6fb0b2e --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate004.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate005.png b/gui/theme/portrait_hdpi/images/indeterminate005.png Binary files differnew file mode 100644 index 000000000..23d90ea54 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate005.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate006.png b/gui/theme/portrait_hdpi/images/indeterminate006.png Binary files differnew file mode 100644 index 000000000..c84c73685 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate006.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate007.png b/gui/theme/portrait_hdpi/images/indeterminate007.png Binary files differnew file mode 100644 index 000000000..9e2266364 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate007.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate008.png b/gui/theme/portrait_hdpi/images/indeterminate008.png Binary files differnew file mode 100644 index 000000000..0ebfb81c9 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate008.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate009.png b/gui/theme/portrait_hdpi/images/indeterminate009.png Binary files differnew file mode 100644 index 000000000..d3c9110da --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate009.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate010.png b/gui/theme/portrait_hdpi/images/indeterminate010.png Binary files differnew file mode 100644 index 000000000..7b84668bd --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate010.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate011.png b/gui/theme/portrait_hdpi/images/indeterminate011.png Binary files differnew file mode 100644 index 000000000..83e76b72d --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate011.png diff --git a/gui/theme/portrait_hdpi/images/indeterminate012.png b/gui/theme/portrait_hdpi/images/indeterminate012.png Binary files differnew file mode 100644 index 000000000..c6e50f828 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/indeterminate012.png diff --git a/gui/theme/portrait_hdpi/images/logo.png b/gui/theme/portrait_hdpi/images/logo.png Binary files differnew file mode 100644 index 000000000..d53af03f5 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/logo.png diff --git a/gui/theme/portrait_hdpi/images/main_button.png b/gui/theme/portrait_hdpi/images/main_button.png Binary files differnew file mode 100644 index 000000000..b0625aef9 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/main_button.png diff --git a/gui/theme/portrait_hdpi/images/main_button_half_height.png b/gui/theme/portrait_hdpi/images/main_button_half_height.png Binary files differnew file mode 100644 index 000000000..53a235a3b --- /dev/null +++ b/gui/theme/portrait_hdpi/images/main_button_half_height.png diff --git a/gui/theme/portrait_hdpi/images/main_button_half_height_full_width.png b/gui/theme/portrait_hdpi/images/main_button_half_height_full_width.png Binary files differnew file mode 100644 index 000000000..9c791efc2 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/main_button_half_height_full_width.png diff --git a/gui/theme/portrait_hdpi/images/progress_empty.png b/gui/theme/portrait_hdpi/images/progress_empty.png Binary files differnew file mode 100644 index 000000000..44fb5d50d --- /dev/null +++ b/gui/theme/portrait_hdpi/images/progress_empty.png diff --git a/gui/theme/portrait_hdpi/images/progress_fill.png b/gui/theme/portrait_hdpi/images/progress_fill.png Binary files differnew file mode 100644 index 000000000..f59be1955 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/progress_fill.png diff --git a/gui/theme/portrait_hdpi/images/radio_false.png b/gui/theme/portrait_hdpi/images/radio_false.png Binary files differnew file mode 100644 index 000000000..3d7731fb6 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/radio_false.png diff --git a/gui/theme/portrait_hdpi/images/radio_true.png b/gui/theme/portrait_hdpi/images/radio_true.png Binary files differnew file mode 100644 index 000000000..d95d4c67e --- /dev/null +++ b/gui/theme/portrait_hdpi/images/radio_true.png diff --git a/gui/theme/portrait_hdpi/images/shift.png b/gui/theme/portrait_hdpi/images/shift.png Binary files differnew file mode 100644 index 000000000..66652bfaa --- /dev/null +++ b/gui/theme/portrait_hdpi/images/shift.png diff --git a/gui/theme/portrait_hdpi/images/shift_fill.png b/gui/theme/portrait_hdpi/images/shift_fill.png Binary files differnew file mode 100644 index 000000000..784e5a517 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/shift_fill.png diff --git a/gui/theme/portrait_hdpi/images/slider.png b/gui/theme/portrait_hdpi/images/slider.png Binary files differnew file mode 100644 index 000000000..7245bc2ff --- /dev/null +++ b/gui/theme/portrait_hdpi/images/slider.png diff --git a/gui/theme/portrait_hdpi/images/slider_touch.png b/gui/theme/portrait_hdpi/images/slider_touch.png Binary files differnew file mode 100644 index 000000000..b777aa982 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/slider_touch.png diff --git a/gui/theme/portrait_hdpi/images/slider_used.png b/gui/theme/portrait_hdpi/images/slider_used.png Binary files differnew file mode 100644 index 000000000..a5f242df1 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/slider_used.png diff --git a/gui/theme/portrait_hdpi/images/sort_asc.png b/gui/theme/portrait_hdpi/images/sort_asc.png Binary files differnew file mode 100644 index 000000000..37a58176c --- /dev/null +++ b/gui/theme/portrait_hdpi/images/sort_asc.png diff --git a/gui/theme/portrait_hdpi/images/sort_desc.png b/gui/theme/portrait_hdpi/images/sort_desc.png Binary files differnew file mode 100644 index 000000000..1b966c806 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/sort_desc.png diff --git a/gui/theme/portrait_hdpi/images/sort_empty.png b/gui/theme/portrait_hdpi/images/sort_empty.png Binary files differnew file mode 100644 index 000000000..e64e36704 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/sort_empty.png diff --git a/gui/theme/portrait_hdpi/images/space.png b/gui/theme/portrait_hdpi/images/space.png Binary files differnew file mode 100644 index 000000000..d7efa20ff --- /dev/null +++ b/gui/theme/portrait_hdpi/images/space.png diff --git a/gui/theme/portrait_hdpi/images/tab_3.png b/gui/theme/portrait_hdpi/images/tab_3.png Binary files differnew file mode 100644 index 000000000..92164cd2a --- /dev/null +++ b/gui/theme/portrait_hdpi/images/tab_3.png diff --git a/gui/theme/portrait_hdpi/images/tab_4.png b/gui/theme/portrait_hdpi/images/tab_4.png Binary files differnew file mode 100644 index 000000000..e9caa74a0 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/tab_4.png diff --git a/gui/theme/portrait_hdpi/images/unlock_icon.png b/gui/theme/portrait_hdpi/images/unlock_icon.png Binary files differnew file mode 100644 index 000000000..d4c639452 --- /dev/null +++ b/gui/theme/portrait_hdpi/images/unlock_icon.png diff --git a/gui/theme/portrait_hdpi/ui.xml b/gui/theme/portrait_hdpi/ui.xml new file mode 100644 index 000000000..f8e1181f5 --- /dev/null +++ b/gui/theme/portrait_hdpi/ui.xml @@ -0,0 +1,575 @@ +<?xml version="1.0"?> + +<recovery> + <details> + <resolution width="1080" height="1920" /> + <author>TeamWin</author> + <title>Backup Naowz</title> + <description>Default basic theme</description> + <preview>preview.jpg</preview> + </details> + + <include> + <xmlfile name="portrait.xml" /> + </include> + + <resources> + <resource name="font_l" type="font" filename="RobotoCondensed-Regular.ttf" size="54" /> + <resource name="font_m" type="font" filename="RobotoCondensed-Regular.ttf" size="42" /> + <resource name="font_s" type="font" filename="RobotoCondensed-Regular.ttf" size="36" /> + <resource name="fixed" type="font" filename="DroidSansMono.ttf" size="30" /> + + <resource name="keylabel" type="font" filename="RobotoCondensed-Regular.ttf" size="64" /> + <resource name="keylabel-small" type="font" filename="RobotoCondensed-Regular.ttf" size="46" /> + <resource name="keylabel-longpress" type="font" filename="RobotoCondensed-Regular.ttf" size="32" /> + + <resource name="logo" type="image" filename="logo" retainaspect="1" /> + <resource name="main_button" type="image" filename="main_button" /> + <resource name="main_button_half_height" type="image" filename="main_button_half_height" /> + <resource name="main_button_half_height_full_width" type="image" filename="main_button_half_height_full_width" /> + <resource name="fab_selectfolder" type="image" filename="fab_selectfolder" retainaspect="1" /> + <resource name="tab_3" type="image" filename="tab_3" /> + <resource name="tab_4" type="image" filename="tab_4" /> + <resource name="file" type="image" filename="file" retainaspect="1" /> + <resource name="folder" type="image" filename="folder" retainaspect="1" /> + <resource name="unlock_icon" type="image" filename="unlock_icon" retainaspect="1" /> + <resource name="home" type="image" filename="home" retainaspect="1" /> + <resource name="back" type="image" filename="back" retainaspect="1" /> + <resource name="console" type="image" filename="console" retainaspect="1" /> + <resource name="checkbox_false" type="image" filename="checkbox_false" retainaspect="1" /> + <resource name="checkbox_true" type="image" filename="checkbox_true" retainaspect="1" /> + <resource name="radio_false" type="image" filename="radio_false" retainaspect="1" /> + <resource name="radio_true" type="image" filename="radio_true" retainaspect="1" /> + <resource name="sort_asc" type="image" filename="sort_asc" /> + <resource name="sort_desc" type="image" filename="sort_desc" /> + <resource name="sort_empty" type="image" filename="sort_empty" /> + <resource name="progress" type="animation" filename="indeterminate" /> + <resource name="progress_empty" type="image" filename="progress_empty" /> + <resource name="progress_full" type="image" filename="progress_fill" /> + <resource name="slider" type="image" filename="slider" /> + <resource name="slider_used" type="image" filename="slider_used" /> + <resource name="slider_touch" type="image" filename="slider_touch" /> + <resource name="handle" type="image" filename="handle" /> + <resource name="cursor" type="image" filename="cursor" retainaspect="1" /> + + <resource name="backspace" type="image" filename="backspace" retainaspect="1" /> + <resource name="enter" type="image" filename="enter" retainaspect="1" /> + <resource name="shift" type="image" filename="shift" retainaspect="1" /> + <resource name="shift_fill" type="image" filename="shift_fill" retainaspect="1" /> + <resource name="space" type="image" filename="space" retainaspect="1" /> + </resources> + + <variables> + <variable name="tw_samsung_navbar" value="0" persist="1" /> + + <variable name="screen_width" value="1080" /> + <variable name="screen_height" value="1920" /> + <variable name="status_height" value="72" /> + <variable name="header_height" value="256" /> + <variable name="navbar_height" value="130" /> + <variable name="content_width" value="1008" /> + <variable name="content_overlay_width" value="936" /> + <variable name="dialog_height" value="704" /> + <variable name="back_button_x" value="240" /> + <variable name="console_button_x" value="840" /> + <variable name="indent" value="36" /> + <variable name="col1_x_left" value="72" /> + <variable name="col1_x_header" value="184" /> + <variable name="center_x" value="540" /> + <variable name="col1_x_right" value="576" /> + <variable name="indent_right" value="1044" /> + <variable name="tab_height" value="96" /> + <variable name="tab_indicator_height" value="6" /> + <variable name="tab3_width" value="360" /> + <variable name="tab4_width" value="270" /> + <variable name="tab3_col2_x" value="360" /> + <variable name="tab3_col3_x" value="720" /> + <variable name="tab4_col2_x" value="270" /> + <variable name="tab4_col4_x" value="810" /> + <variable name="btn3_col2_x" value="384" /> + <variable name="btn3_col3_x" value="732" /> + <variable name="btn4_col2_x" value="297" /> + <variable name="btn4_col3_x" value="558" /> + <variable name="btn4_col4_x" value="819" /> + <variable name="row1_header_y" value="4" /> + <variable name="row2_header_y" value="72" /> + <variable name="row3_header_y" value="90" /> + <variable name="row4_header_y" value="168" /> + <variable name="row1_y" value="256" /> + <variable name="row1a_y" value="288" /> + <variable name="row2_y" value="320" /> + <variable name="row2a_y" value="352" /> + <variable name="row_tab_y" value="346" /> + <variable name="row2_input_y" value="381" /> + <variable name="row3_y" value="384" /> + <variable name="row3_input_y" value="413" /> + <variable name="row3a_y" value="416" /> + <variable name="row4_y" value="448" /> + <variable name="row4_input_y" value="477" /> + <variable name="row4a_y" value="480" /> + <variable name="row5_y" value="512" /> + <variable name="row5a_y" value="544" /> + <variable name="row6_y" value="576" /> + <variable name="row6a_y" value="608" /> + <variable name="row7_y" value="640" /> + <variable name="row7a_y" value="672" /> + <variable name="row8_y" value="704" /> + <variable name="row8a_y" value="736" /> + <variable name="row9_y" value="768" /> + <variable name="row9a_y" value="800" /> + <variable name="row10_y" value="832" /> + <variable name="row10a_y" value="864" /> + <variable name="row11_y" value="896" /> + <variable name="row11a_y" value="928" /> + <variable name="row12_y" value="960" /> + <variable name="row12a_y" value="992" /> + <variable name="row13_y" value="1024" /> + <variable name="row13a_y" value="1056" /> + <variable name="row14_y" value="1088" /> + <variable name="row14a_y" value="1120" /> + <variable name="row15_y" value="1152" /> + <variable name="row15a_y" value="1184" /> + <variable name="row16_y" value="1216" /> + <variable name="row16a_y" value="1248" /> + <variable name="row17_y" value="1280" /> + <variable name="row17a_y" value="1312" /> + <variable name="row18_y" value="1344" /> + <variable name="row18a_y" value="1376" /> + <variable name="row19_y" value="1408" /> + <variable name="row19a_y" value="1440" /> + <variable name="row20_y" value="1472" /> + <variable name="row20a_y" value="1504" /> + <variable name="row21_y" value="1536" /> + <variable name="row21a_y" value="1568" /> + <variable name="row22_y" value="1600" /> + <variable name="row22a_y" value="1632" /> + <variable name="row23_y" value="1664" /> + <variable name="row23a_y" value="1696" /> + <variable name="row24_y" value="1728" /> + <variable name="row24a_y" value="1760" /> + <variable name="row25_y" value="1792" /> + <variable name="navbar_y" value="1792" /> + <variable name="navbar_btn_y" value="1856" /> + <variable name="keyboard_y" value="1149" /> + <variable name="background_color" value="#1A1A1A" /> + <variable name="accent_color" value="#0090CA" /> + <variable name="text_color" value="#EEEEEE" /> + <variable name="text_button_color" value="#EEEEEE" /> + <variable name="text_success_color" value="#76FF03" /> + <variable name="text_fail_color" value="#FF0101" /> + <variable name="highlight_color" value="#1A1A1A80" /> + <variable name="caps_highlight_color" value="#22222280" /> + <variable name="transparent" value="#00000000" /> + <variable name="semi_transparent" value="#00000099" /> + <variable name="warning" value="#F8F8A0" /> + <variable name="error" value="#FF0101" /> + <variable name="highlight" value="#0090CA" /> + <variable name="fileselector_linecolor" value="#555555" /> + <variable name="fileselector_highlight_color" value="#555555" /> + <variable name="fileselector_separatorheight" value="2" /> + <variable name="fileselector_spacing" value="0" /> + <variable name="fileselector_install_height" value="1152" /> + <variable name="fileselector_filemanager_height" value="1376" /> + <variable name="partitionlist_spacing" value="0" /> + <variable name="partitionlist_storage_height" value="544" /> + <variable name="partitionlist_flashimage_height" value="448" /> + <variable name="partitionlist_wipe_height" value="1088" /> + <variable name="partitionlist_mount_height" value="832" /> + <variable name="partitionlist_backup_height" value="768" /> + <variable name="listbox_timezone_height" value="756" /> + <variable name="listbox_settings_height" value="960" /> + <variable name="fastscroll_w" value="24" /> + <variable name="fastscroll_linew" value="2" /> + <variable name="fastscroll_rectw" value="24" /> + <variable name="fastscroll_recth" value="108" /> + <variable name="slidervalue_lineh" value="3" /> + <variable name="slidervalue_padding" value="0" /> + <variable name="slidervalue_sliderw" value="72" /> + <variable name="slidervalue_sliderh" value="108" /> + <variable name="slideout_height" value="1670" /> + <variable name="slideout_bg_height" value="1720" /> + <variable name="input_height" value="64" /> + <variable name="input_line_width" value="3" /> + <variable name="console_height" value="960" /> + <variable name="console_terminal_height" value="576" /> + <variable name="dialog_button_x" value="696" /> + <variable name="pattern_x" value="216" /> + <variable name="pattern_dot_dia" value="32" /> + <variable name="pattern_line_w" value="12" /> + <variable name="pattern_size" value="648" /> + </variables> + + <mousecursor> + <placement w="15" h="15" /> + <background color="#FFFF00FF" resource="cursor" /> + <speed multiplier="2.5" /> + </mousecursor> + + <templates> + <template name="page"> + <background color="%background_color%" /> + + <object type="fill" color="%accent_color%"> + <placement x="0" y="0" w="%screen_width%" h="%header_height%" /> + </object> + + <object type="image"> + <condition var1="tw_busy" var2="1" /> + <image resource="logo" /> + <placement x="0" y="0" /> + </object> + + <object type="button"> + <condition var1="tw_busy" var2="0" /> + <placement x="0" y="0" /> + <image resource="logo" /> + <action function="key">home</action> + </object> + + <object type="fill" color="#00000030"> + <condition var1="tw_simulate_actions" var2="0" /> + <placement x="0" y="0" w="%screen_width%" h="%status_height%" /> + </object> + + <object type="fill" color="%text_fail_color%"> + <condition var1="tw_simulate_actions" var2="1" /> + <placement x="0" y="0" w="%screen_width%" h="%status_height%" /> + </object> + + <object type="text" color="%text_color%"> + <condition var1="tw_no_cpu_temp" var2="1" /> + <font resource="font_m" /> + <placement x="%indent%" y="%row1_header_y%" /> + <text>%tw_version%</text> + </object> + + <object type="text" color="%text_color%"> + <condition var1="tw_no_cpu_temp" var2="0" /> + <font resource="font_m" /> + <placement x="%indent%" y="%row1_header_y%" /> + <text>CPU: %tw_cpu_temp% °C</text> + </object> + + <object type="text" color="%text_color%"> + <font resource="font_m" /> + <placement x="%center_x%" y="%row1_header_y%" placement="5" /> + <text>%tw_time%</text> + </object> + + <object type="text" color="%text_color%"> + <conditions> + <condition var1="tw_no_battery_percent" var2="0" /> + <condition var1="tw_battery" op=">" var2="0" /> + <condition var1="tw_battery" op="<" var2="101" /> + </conditions> + <font resource="font_m" /> + <placement x="%indent_right%" y="%row1_header_y%" placement="1" /> + <text>Battery: %tw_battery%</text> + </object> + + <object type="fill" color="#000000"> + <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" /> + </object> + + <object type="button"> + <condition var1="tw_samsung_navbar" op="!=" var2="1" /> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="button"> + <condition var1="tw_samsung_navbar" op="=" var2="1" /> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="button"> + <placement x="%center_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="home" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">home</action> + </object> + + <object type="button"> + <condition var1="tw_samsung_navbar" op="!=" var2="1" /> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="button"> + <condition var1="tw_samsung_navbar" op="=" var2="1" /> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="action"> + <touch key="power" /> + <action function="overlay">lock</action> + </object> + + <object type="action"> + <touch key="power+voldown" /> + <action function="screenshot" /> + </object> + </template> + + <template name="progress_bar"> + <object type="progressbar"> + <placement x="%indent%" y="%row17a_y%" /> + <resource empty="progress_empty" full="progress_full" /> + <data name="ui_progress" /> + </object> + + <object type="animation"> + <placement x="%indent%" y="%row17a_y%" /> + <resource name="progress" /> + <speed fps="24" render="2" /> + <loop frame="1" /> + </object> + </template> + + <template name="sort_options"> + <object type="image"> + <placement x="%indent%" y="%row1a_y%" /> + <image resource="tab_3" /> + </object> + + <object type="image"> + <placement x="%btn3_col2_x%" y="%row1a_y%" /> + <image resource="tab_3" /> + </object> + + <object type="image"> + <placement x="%btn3_col3_x%" y="%row1a_y%" /> + <image resource="tab_3" /> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="1" /> + <placement x="%indent%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Name</text> + <image resource="sort_asc" /> + <action function="set">tw_gui_sort_order=-1</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="-1" /> + <placement x="%indent%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Name</text> + <image resource="sort_desc" /> + <action function="set">tw_gui_sort_order=1</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <conditions> + <condition var1="tw_gui_sort_order" op="!=" var2="1" /> + <condition var1="tw_gui_sort_order" op="!=" var2="-1" /> + </conditions> + <placement x="%indent%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Name</text> + <image resource="sort_empty" /> + <action function="set">tw_gui_sort_order=1</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="2" /> + <placement x="%btn3_col2_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Date</text> + <image resource="sort_asc" /> + <action function="set">tw_gui_sort_order=-2</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="-2" /> + <placement x="%btn3_col2_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Date</text> + <image resource="sort_desc" /> + <action function="set">tw_gui_sort_order=2</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <conditions> + <condition var1="tw_gui_sort_order" op="!=" var2="2" /> + <condition var1="tw_gui_sort_order" op="!=" var2="-2" /> + </conditions> + <placement x="%btn3_col2_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Date</text> + <image resource="sort_empty" /> + <action function="set">tw_gui_sort_order=2</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="3" /> + <placement x="%btn3_col3_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Size</text> + <image resource="sort_asc" /> + <action function="set">tw_gui_sort_order=-3</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="-3" /> + <placement x="%btn3_col3_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Size</text> + <image resource="sort_desc" /> + <action function="set">tw_gui_sort_order=3</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <conditions> + <condition var1="tw_gui_sort_order" op="!=" var2="3" /> + <condition var1="tw_gui_sort_order" op="!=" var2="-3" /> + </conditions> + <placement x="%btn3_col3_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Size</text> + <image resource="sort_empty" /> + <action function="set">tw_gui_sort_order=3</action> + </object> + </template> + + <template name="tabs_backup"> + <object type="button" style="tab"> + <placement x="0" y="%row1_y%" w="%tab3_width%" h="%tab_height%" /> + <text>BACKUP</text> + <action function="page">backup</action> + </object> + + <object type="button" style="tab"> + <placement x="%tab3_col2_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%" /> + <text>OPTIONS</text> + <action function="page">backup_options</action> + </object> + </template> + + <template name="tabs_settings"> + <object type="button" style="tab"> + <placement x="0" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>GENERAL</text> + <action function="page">settings</action> + </object> + + <object type="button" style="tab"> + <placement x="%tab4_col2_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>TIME ZONE</text> + <action function="page">settings_timezone</action> + </object> + + <object type="button" style="tab"> + <placement x="%center_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>SCREEN</text> + <action function="page">settings_screen</action> + </object> + + <object type="button" style="tab"> + <placement x="%tab4_col4_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>VIBRATION</text> + <action function="page">settings_vibration</action> + </object> + </template> + + <template name="console"> + <object type="console"> + <placement x="%indent%" y="%row2_y%" w="%content_width%" h="%console_height%" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row2_y" w="%content_width%" h="input_line_width" placement="1" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row17_y" w="%content_width%" h="input_line_width" /> + </object> + </template> + + <template name="console_terminal"> + <object type="console"> + <placement x="%indent%" y="%row2_y%" w="content_width" h="%console_terminal_height%" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row2_y" w="%content_width%" h="input_line_width" placement="1" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width" /> + </object> + </template> + + <template name="keyboardtemplate"> + <object type="keyboard"> + <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="161" width="108" /> + <row1 key01="q" long01="1" key02="w" long02="2" key03="e" long03="3" key04="r" long04="4" key05="t" long05="5" key06="y" long06="6" key07="u" long07="7" key08="i" long08="8" key09="o" long09="9" key10="p" long10="0" /> + <row2 key01="54:" key02="a" long02="@" key03="s" long03="#" key04="d" long04="$" key05="f" long05="%" key06="g" long06="&" key07="h" long07="*" key08="j" long08="-" key09="k" long09="+" key10="l" long10="_" key11="54:" /> + <row3 key01="162:layout2" key02="z" long02="!" key03="x" long03='"' key04="c" long04="'" key05="v" long05=":" key06="b" long06=";" key07="n" long07="/" key08="m" long08="?" key09="162:c:8" /> + <row4 key01="162:layout3" key02="/" key03="540: " key04="." key05="162:action" /> + <keylabel key="0:layout2" text="Shift" resource="shift"/> + <keylabel key="0:layout3" text="?123"/> + </layout1> + <layout2> + <keysize height="161" width="108" capslock="0" revert_layout="1"/> + <row1 key01="Q" long01="1" key02="W" long02="2" key03="E" long03="3" key04="R" long04="4" key05="T" long05="5" key06="Y" long06="6" key07="U" long07="7" key08="I" long08="8" key09="O" long09="9" key10="P" long10="0" /> + <row2 key01="54:" key02="A" long02="@" key03="S" long03="#" key04="D" long04="$" key05="F" long05="%" key06="G" long06="&" key07="H" long07="*" key08="J" long08="-" key09="K" long09="+" key10="L" long10="_" key11="54:" /> + <row3 key01="162:layout1" key02="Z" long02="!" key03="X" long03='"' key04="C" long04="'" key05="V" long05=":" key06="B" long06=";" key07="N" long07="/" key08="M" long08="?" key09="162:c:8" /> + <row4 key01="162:layout3" key02="/" key03="540: " key04="." key05="162:action" /> + <keylabel key="0:layout1" text="Shift" resource="shift_fill"/> + <keylabel key="0:layout3" text="?123"/> + </layout2> + <layout3> + <keysize height="161" width="108" /> + <row1 key01="1" key02="2" key03="3" key04="4" key05="5" key06="6" key07="7" key08="8" key09="9" key10="0" /> + <row2 key01="@" key02="#" key03="$" key04="%" key05="&" key06="*" key07="-" key08="+" key09="(" key10=")" /> + <row3 key01="162:layout4" key02="!" key03="108:c:34" key04="'" key05=":" key06=";" key07="/" key08="?" key09="162:c:8" /> + <row4 key01="162:layout1" key02="," key03="540: " key04="." key05="162:action" /> + <keylabel key="0:layout1" text="ABC"/> + <keylabel key="0:layout4" text="~\{"/> + </layout3> + <layout4> + <keysize height="161" width="108" /> + <row1 key01="~" key02="`" key03="|" key04="108:" key05="108:" key06="108:" key07="%" key08="108:" key09="{" key10="}" /> + <row2 key01="108:" key02="108:" key03="108:" key04="108:" key05="108:" key06="^" key07="_" key08="=" key09="[" key10="]" /> + <row3 key01="162:layout3" key02="108:" key03="108:" key04="108:" key05="108:" key06="\" key07="<" key08=">" key09="162:c:8" /> + <row4 key01="162:layout1" key02="108:c:34" key03="540: " key04="." key05="162:action" /> + <keylabel key="0:layout1" text="ABC"/> + <keylabel key="0:layout3" text="?123"/> + </layout4> + </object> + </template> + </templates> +</recovery> diff --git a/gui/theme/portrait_mdpi/images/back.png b/gui/theme/portrait_mdpi/images/back.png Binary files differnew file mode 100644 index 000000000..6d29a20be --- /dev/null +++ b/gui/theme/portrait_mdpi/images/back.png diff --git a/gui/theme/portrait_mdpi/images/backspace.png b/gui/theme/portrait_mdpi/images/backspace.png Binary files differnew file mode 100644 index 000000000..82d217254 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/backspace.png diff --git a/gui/theme/portrait_mdpi/images/checkbox_false.png b/gui/theme/portrait_mdpi/images/checkbox_false.png Binary files differnew file mode 100644 index 000000000..e7900f3c3 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/checkbox_false.png diff --git a/gui/theme/portrait_mdpi/images/checkbox_true.png b/gui/theme/portrait_mdpi/images/checkbox_true.png Binary files differnew file mode 100644 index 000000000..129f843c6 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/checkbox_true.png diff --git a/gui/theme/portrait_mdpi/images/console.png b/gui/theme/portrait_mdpi/images/console.png Binary files differnew file mode 100644 index 000000000..9050e580d --- /dev/null +++ b/gui/theme/portrait_mdpi/images/console.png diff --git a/gui/theme/portrait_mdpi/images/cursor.png b/gui/theme/portrait_mdpi/images/cursor.png Binary files differnew file mode 100644 index 000000000..61bd338dc --- /dev/null +++ b/gui/theme/portrait_mdpi/images/cursor.png diff --git a/gui/theme/portrait_mdpi/images/curtain.jpg b/gui/theme/portrait_mdpi/images/curtain.jpg Binary files differnew file mode 100644 index 000000000..680b023b6 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/curtain.jpg diff --git a/gui/theme/portrait_mdpi/images/enter.png b/gui/theme/portrait_mdpi/images/enter.png Binary files differnew file mode 100644 index 000000000..cc0c06af0 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/enter.png diff --git a/gui/theme/portrait_mdpi/images/fab_selectfolder.png b/gui/theme/portrait_mdpi/images/fab_selectfolder.png Binary files differnew file mode 100644 index 000000000..4c53081ff --- /dev/null +++ b/gui/theme/portrait_mdpi/images/fab_selectfolder.png diff --git a/gui/theme/portrait_mdpi/images/file.png b/gui/theme/portrait_mdpi/images/file.png Binary files differnew file mode 100644 index 000000000..b27c3c8d0 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/file.png diff --git a/gui/theme/portrait_mdpi/images/folder.png b/gui/theme/portrait_mdpi/images/folder.png Binary files differnew file mode 100644 index 000000000..87576c74a --- /dev/null +++ b/gui/theme/portrait_mdpi/images/folder.png diff --git a/gui/theme/portrait_mdpi/images/handle.png b/gui/theme/portrait_mdpi/images/handle.png Binary files differnew file mode 100644 index 000000000..a3b9da159 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/handle.png diff --git a/gui/theme/portrait_mdpi/images/home.png b/gui/theme/portrait_mdpi/images/home.png Binary files differnew file mode 100644 index 000000000..45c6437fa --- /dev/null +++ b/gui/theme/portrait_mdpi/images/home.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate001.png b/gui/theme/portrait_mdpi/images/indeterminate001.png Binary files differnew file mode 100644 index 000000000..54958c74f --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate001.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate002.png b/gui/theme/portrait_mdpi/images/indeterminate002.png Binary files differnew file mode 100644 index 000000000..28fb57e5f --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate002.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate003.png b/gui/theme/portrait_mdpi/images/indeterminate003.png Binary files differnew file mode 100644 index 000000000..286d8e5c3 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate003.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate004.png b/gui/theme/portrait_mdpi/images/indeterminate004.png Binary files differnew file mode 100644 index 000000000..aaebb540a --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate004.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate005.png b/gui/theme/portrait_mdpi/images/indeterminate005.png Binary files differnew file mode 100644 index 000000000..558a68c57 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate005.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate006.png b/gui/theme/portrait_mdpi/images/indeterminate006.png Binary files differnew file mode 100644 index 000000000..b17c33fbe --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate006.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate007.png b/gui/theme/portrait_mdpi/images/indeterminate007.png Binary files differnew file mode 100644 index 000000000..1b5c9eb92 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate007.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate008.png b/gui/theme/portrait_mdpi/images/indeterminate008.png Binary files differnew file mode 100644 index 000000000..17915ba8e --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate008.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate009.png b/gui/theme/portrait_mdpi/images/indeterminate009.png Binary files differnew file mode 100644 index 000000000..e44d64560 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate009.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate010.png b/gui/theme/portrait_mdpi/images/indeterminate010.png Binary files differnew file mode 100644 index 000000000..4904f019b --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate010.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate011.png b/gui/theme/portrait_mdpi/images/indeterminate011.png Binary files differnew file mode 100644 index 000000000..b8d9926b1 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate011.png diff --git a/gui/theme/portrait_mdpi/images/indeterminate012.png b/gui/theme/portrait_mdpi/images/indeterminate012.png Binary files differnew file mode 100644 index 000000000..eef978a57 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/indeterminate012.png diff --git a/gui/theme/portrait_mdpi/images/logo.png b/gui/theme/portrait_mdpi/images/logo.png Binary files differnew file mode 100644 index 000000000..743b4a0ae --- /dev/null +++ b/gui/theme/portrait_mdpi/images/logo.png diff --git a/gui/theme/portrait_mdpi/images/main_button.png b/gui/theme/portrait_mdpi/images/main_button.png Binary files differnew file mode 100644 index 000000000..8e583fc88 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/main_button.png diff --git a/gui/theme/portrait_mdpi/images/main_button_half_height.png b/gui/theme/portrait_mdpi/images/main_button_half_height.png Binary files differnew file mode 100644 index 000000000..d7269b83b --- /dev/null +++ b/gui/theme/portrait_mdpi/images/main_button_half_height.png diff --git a/gui/theme/portrait_mdpi/images/main_button_half_height_full_width.png b/gui/theme/portrait_mdpi/images/main_button_half_height_full_width.png Binary files differnew file mode 100644 index 000000000..e3e320805 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/main_button_half_height_full_width.png diff --git a/gui/theme/portrait_mdpi/images/progress_empty.png b/gui/theme/portrait_mdpi/images/progress_empty.png Binary files differnew file mode 100644 index 000000000..dd62ea200 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/progress_empty.png diff --git a/gui/theme/portrait_mdpi/images/progress_fill.png b/gui/theme/portrait_mdpi/images/progress_fill.png Binary files differnew file mode 100644 index 000000000..70e757083 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/progress_fill.png diff --git a/gui/theme/portrait_mdpi/images/radio_false.png b/gui/theme/portrait_mdpi/images/radio_false.png Binary files differnew file mode 100644 index 000000000..699030277 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/radio_false.png diff --git a/gui/theme/portrait_mdpi/images/radio_true.png b/gui/theme/portrait_mdpi/images/radio_true.png Binary files differnew file mode 100644 index 000000000..228b311ad --- /dev/null +++ b/gui/theme/portrait_mdpi/images/radio_true.png diff --git a/gui/theme/portrait_mdpi/images/shift.png b/gui/theme/portrait_mdpi/images/shift.png Binary files differnew file mode 100644 index 000000000..2c862ebe4 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/shift.png diff --git a/gui/theme/portrait_mdpi/images/shift_fill.png b/gui/theme/portrait_mdpi/images/shift_fill.png Binary files differnew file mode 100644 index 000000000..3c3928bca --- /dev/null +++ b/gui/theme/portrait_mdpi/images/shift_fill.png diff --git a/gui/theme/portrait_mdpi/images/slider.png b/gui/theme/portrait_mdpi/images/slider.png Binary files differnew file mode 100644 index 000000000..283b118a0 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/slider.png diff --git a/gui/theme/portrait_mdpi/images/slider_touch.png b/gui/theme/portrait_mdpi/images/slider_touch.png Binary files differnew file mode 100644 index 000000000..c233d9b8d --- /dev/null +++ b/gui/theme/portrait_mdpi/images/slider_touch.png diff --git a/gui/theme/portrait_mdpi/images/slider_used.png b/gui/theme/portrait_mdpi/images/slider_used.png Binary files differnew file mode 100644 index 000000000..c50db8dff --- /dev/null +++ b/gui/theme/portrait_mdpi/images/slider_used.png diff --git a/gui/theme/portrait_mdpi/images/sort_asc.png b/gui/theme/portrait_mdpi/images/sort_asc.png Binary files differnew file mode 100644 index 000000000..f4d31e44d --- /dev/null +++ b/gui/theme/portrait_mdpi/images/sort_asc.png diff --git a/gui/theme/portrait_mdpi/images/sort_desc.png b/gui/theme/portrait_mdpi/images/sort_desc.png Binary files differnew file mode 100644 index 000000000..9a28ba5e7 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/sort_desc.png diff --git a/gui/theme/portrait_mdpi/images/sort_empty.png b/gui/theme/portrait_mdpi/images/sort_empty.png Binary files differnew file mode 100644 index 000000000..c15e9ffaf --- /dev/null +++ b/gui/theme/portrait_mdpi/images/sort_empty.png diff --git a/gui/theme/portrait_mdpi/images/space.png b/gui/theme/portrait_mdpi/images/space.png Binary files differnew file mode 100644 index 000000000..b00beee00 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/space.png diff --git a/gui/theme/portrait_mdpi/images/tab_3.png b/gui/theme/portrait_mdpi/images/tab_3.png Binary files differnew file mode 100644 index 000000000..c17631b42 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/tab_3.png diff --git a/gui/theme/portrait_mdpi/images/tab_4.png b/gui/theme/portrait_mdpi/images/tab_4.png Binary files differnew file mode 100644 index 000000000..c17631b42 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/tab_4.png diff --git a/gui/theme/portrait_mdpi/images/unlock_icon.png b/gui/theme/portrait_mdpi/images/unlock_icon.png Binary files differnew file mode 100644 index 000000000..61594ecc6 --- /dev/null +++ b/gui/theme/portrait_mdpi/images/unlock_icon.png diff --git a/gui/theme/portrait_mdpi/ui.xml b/gui/theme/portrait_mdpi/ui.xml new file mode 100644 index 000000000..1ba10a380 --- /dev/null +++ b/gui/theme/portrait_mdpi/ui.xml @@ -0,0 +1,575 @@ +<?xml version="1.0"?> + +<recovery> + <details> + <resolution width="480" height="800" /> + <author>TeamWin</author> + <title>Backup Naowz</title> + <description>Default basic theme</description> + <preview>preview.jpg</preview> + </details> + + <include> + <xmlfile name="portrait.xml" /> + </include> + + <resources> + <resource name="font_l" type="font" filename="RobotoCondensed-Regular.ttf" size="24" /> + <resource name="font_m" type="font" filename="RobotoCondensed-Regular.ttf" size="18" /> + <resource name="font_s" type="font" filename="RobotoCondensed-Regular.ttf" size="14" /> + <resource name="fixed" type="font" filename="DroidSansMono.ttf" size="12" /> + + <resource name="keylabel" type="font" filename="RobotoCondensed-Regular.ttf" size="30" /> + <resource name="keylabel-small" type="font" filename="RobotoCondensed-Regular.ttf" size="20" /> + <resource name="keylabel-longpress" type="font" filename="RobotoCondensed-Regular.ttf" size="14" /> + + <resource name="logo" type="image" filename="logo" retainaspect="1" /> + <resource name="main_button" type="image" filename="main_button" /> + <resource name="main_button_half_height" type="image" filename="main_button_half_height" /> + <resource name="main_button_half_height_full_width" type="image" filename="main_button_half_height_full_width" /> + <resource name="fab_selectfolder" type="image" filename="fab_selectfolder" retainaspect="1" /> + <resource name="tab_3" type="image" filename="tab_3" /> + <resource name="tab_4" type="image" filename="tab_4" /> + <resource name="file" type="image" filename="file" retainaspect="1" /> + <resource name="folder" type="image" filename="folder" retainaspect="1" /> + <resource name="unlock_icon" type="image" filename="unlock_icon" retainaspect="1" /> + <resource name="home" type="image" filename="home" retainaspect="1" /> + <resource name="back" type="image" filename="back" retainaspect="1" /> + <resource name="console" type="image" filename="console" retainaspect="1" /> + <resource name="checkbox_false" type="image" filename="checkbox_false" retainaspect="1" /> + <resource name="checkbox_true" type="image" filename="checkbox_true" retainaspect="1" /> + <resource name="radio_false" type="image" filename="radio_false" retainaspect="1" /> + <resource name="radio_true" type="image" filename="radio_true" retainaspect="1" /> + <resource name="sort_asc" type="image" filename="sort_asc" /> + <resource name="sort_desc" type="image" filename="sort_desc" /> + <resource name="sort_empty" type="image" filename="sort_empty" /> + <resource name="progress" type="animation" filename="indeterminate" /> + <resource name="progress_empty" type="image" filename="progress_empty" /> + <resource name="progress_full" type="image" filename="progress_fill" /> + <resource name="slider" type="image" filename="slider" /> + <resource name="slider_used" type="image" filename="slider_used" /> + <resource name="slider_touch" type="image" filename="slider_touch" /> + <resource name="handle" type="image" filename="handle" /> + <resource name="cursor" type="image" filename="cursor" retainaspect="1" /> + + <resource name="backspace" type="image" filename="backspace" retainaspect="1" /> + <resource name="enter" type="image" filename="enter" retainaspect="1" /> + <resource name="shift" type="image" filename="shift" retainaspect="1" /> + <resource name="shift_fill" type="image" filename="shift_fill" retainaspect="1" /> + <resource name="space" type="image" filename="space" retainaspect="1" /> + </resources> + + <variables> + <variable name="tw_samsung_navbar" value="0" persist="1" /> + + <variable name="screen_width" value="480" /> + <variable name="screen_height" value="800" /> + <variable name="status_height" value="30" /> + <variable name="header_height" value="110" /> + <variable name="navbar_height" value="52" /> + <variable name="content_width" value="450" /> + <variable name="content_overlay_width" value="420" /> + <variable name="dialog_height" value="286" /> + <variable name="back_button_x" value="105" /> + <variable name="console_button_x" value="375" /> + <variable name="indent" value="15" /> + <variable name="col1_x_left" value="30" /> + <variable name="col1_x_header" value="82" /> + <variable name="center_x" value="240" /> + <variable name="col1_x_right" value="255" /> + <variable name="indent_right" value="465" /> + <variable name="tab_height" value="40" /> + <variable name="tab_indicator_height" value="3" /> + <variable name="tab3_width" value="160" /> + <variable name="tab4_width" value="120" /> + <variable name="tab3_col2_x" value="160" /> + <variable name="tab3_col3_x" value="320" /> + <variable name="tab4_col2_x" value="120" /> + <variable name="tab4_col4_x" value="360" /> + <variable name="btn3_col2_x" value="170" /> + <variable name="btn3_col3_x" value="325" /> + <variable name="btn4_col2_x" value="131" /> + <variable name="btn4_col3_x" value="247" /> + <variable name="btn4_col4_x" value="363" /> + <variable name="row1_header_y" value="2" /> + <variable name="row2_header_y" value="30" /> + <variable name="row3_header_y" value="40" /> + <variable name="row4_header_y" value="74" /> + <variable name="row1_y" value="110" /> + <variable name="row1a_y" value="123" /> + <variable name="row2_y" value="136" /> + <variable name="row2a_y" value="149" /> + <variable name="row_tab_y" value="147" /> + <variable name="row2_input_y" value="162" /> + <variable name="row3_y" value="162" /> + <variable name="row3_input_y" value="175" /> + <variable name="row3a_y" value="175" /> + <variable name="row4_y" value="188" /> + <variable name="row4_input_y" value="201" /> + <variable name="row4a_y" value="201" /> + <variable name="row5_y" value="214" /> + <variable name="row5a_y" value="227" /> + <variable name="row6_y" value="240" /> + <variable name="row6a_y" value="253" /> + <variable name="row7_y" value="266" /> + <variable name="row7a_y" value="279" /> + <variable name="row8_y" value="292" /> + <variable name="row8a_y" value="305" /> + <variable name="row9_y" value="318" /> + <variable name="row9a_y" value="331" /> + <variable name="row10_y" value="344" /> + <variable name="row10a_y" value="357" /> + <variable name="row11_y" value="370" /> + <variable name="row11a_y" value="383" /> + <variable name="row12_y" value="396" /> + <variable name="row12a_y" value="409" /> + <variable name="row13_y" value="422" /> + <variable name="row13a_y" value="435" /> + <variable name="row14_y" value="448" /> + <variable name="row14a_y" value="461" /> + <variable name="row15_y" value="474" /> + <variable name="row15a_y" value="487" /> + <variable name="row16_y" value="500" /> + <variable name="row16a_y" value="513" /> + <variable name="row17_y" value="526" /> + <variable name="row17a_y" value="539" /> + <variable name="row18_y" value="552" /> + <variable name="row18a_y" value="565" /> + <variable name="row19_y" value="578" /> + <variable name="row19a_y" value="591" /> + <variable name="row20_y" value="604" /> + <variable name="row20a_y" value="617" /> + <variable name="row21_y" value="630" /> + <variable name="row21a_y" value="643" /> + <variable name="row22_y" value="656" /> + <variable name="row22a_y" value="669" /> + <variable name="row23_y" value="682" /> + <variable name="row23a_y" value="695" /> + <variable name="row24_y" value="708" /> + <variable name="row24a_y" value="721" /> + <variable name="row25_y" value="734" /> + <variable name="navbar_y" value="748" /> + <variable name="navbar_btn_y" value="774" /> + <variable name="keyboard_y" value="464" /> + <variable name="background_color" value="#1A1A1A" /> + <variable name="accent_color" value="#0090CA" /> + <variable name="text_color" value="#EEEEEE" /> + <variable name="text_button_color" value="#EEEEEE" /> + <variable name="text_success_color" value="#76FF03" /> + <variable name="text_fail_color" value="#FF0101" /> + <variable name="highlight_color" value="#1A1A1A80" /> + <variable name="caps_highlight_color" value="#22222280" /> + <variable name="transparent" value="#00000000" /> + <variable name="semi_transparent" value="#00000099" /> + <variable name="warning" value="#F8F8A0" /> + <variable name="error" value="#FF0101" /> + <variable name="highlight" value="#0090CA" /> + <variable name="fileselector_linecolor" value="#555555" /> + <variable name="fileselector_highlight_color" value="#555555" /> + <variable name="fileselector_separatorheight" value="1" /> + <variable name="fileselector_spacing" value="0" /> + <variable name="fileselector_install_height" value="468" /> + <variable name="fileselector_filemanager_height" value="559" /> + <variable name="partitionlist_spacing" value="0" /> + <variable name="partitionlist_storage_height" value="221" /> + <variable name="partitionlist_flashimage_height" value="182" /> + <variable name="partitionlist_wipe_height" value="442" /> + <variable name="partitionlist_mount_height" value="338" /> + <variable name="partitionlist_backup_height" value="312" /> + <variable name="listbox_timezone_height" value="306" /> + <variable name="listbox_settings_height" value="400" /> + <variable name="fastscroll_w" value="10" /> + <variable name="fastscroll_linew" value="2" /> + <variable name="fastscroll_rectw" value="10" /> + <variable name="fastscroll_recth" value="52" /> + <variable name="slidervalue_lineh" value="2" /> + <variable name="slidervalue_padding" value="0" /> + <variable name="slidervalue_sliderw" value="32" /> + <variable name="slidervalue_sliderh" value="48" /> + <variable name="slideout_height" value="700" /> + <variable name="slideout_bg_height" value="718" /> + <variable name="input_height" value="26" /> + <variable name="input_line_width" value="2" /> + <variable name="console_height" value="390" /> + <variable name="console_terminal_height" value="234" /> + <variable name="dialog_button_x" value="310" /> + <variable name="pattern_x" value="88" /> + <variable name="pattern_dot_dia" value="12" /> + <variable name="pattern_line_w" value="4" /> + <variable name="pattern_size" value="392" /> + </variables> + + <mousecursor> + <placement w="15" h="15" /> + <background color="#FFFF00FF" resource="cursor" /> + <speed multiplier="2.5" /> + </mousecursor> + + <templates> + <template name="page"> + <background color="%background_color%" /> + + <object type="fill" color="%accent_color%"> + <placement x="0" y="0" w="%screen_width%" h="%header_height%" /> + </object> + + <object type="image"> + <condition var1="tw_busy" var2="1" /> + <image resource="logo" /> + <placement x="0" y="0" /> + </object> + + <object type="button"> + <condition var1="tw_busy" var2="0" /> + <placement x="0" y="0" /> + <image resource="logo" /> + <action function="key">home</action> + </object> + + <object type="fill" color="#00000030"> + <condition var1="tw_simulate_actions" var2="0" /> + <placement x="0" y="0" w="%screen_width%" h="%status_height%" /> + </object> + + <object type="fill" color="%text_fail_color%"> + <condition var1="tw_simulate_actions" var2="1" /> + <placement x="0" y="0" w="%screen_width%" h="%status_height%" /> + </object> + + <object type="text" color="%text_color%"> + <condition var1="tw_no_cpu_temp" var2="1" /> + <font resource="font_m" /> + <placement x="%indent%" y="%row1_header_y%" /> + <text>%tw_version%</text> + </object> + + <object type="text" color="%text_color%"> + <condition var1="tw_no_cpu_temp" var2="0" /> + <font resource="font_m" /> + <placement x="%indent%" y="%row1_header_y%" /> + <text>CPU: %tw_cpu_temp% °C</text> + </object> + + <object type="text" color="%text_color%"> + <font resource="font_m" /> + <placement x="%center_x%" y="%row1_header_y%" placement="5" /> + <text>%tw_time%</text> + </object> + + <object type="text" color="%text_color%"> + <conditions> + <condition var1="tw_no_battery_percent" var2="0" /> + <condition var1="tw_battery" op=">" var2="0" /> + <condition var1="tw_battery" op="<" var2="101" /> + </conditions> + <font resource="font_m" /> + <placement x="%indent_right%" y="%row1_header_y%" placement="1" /> + <text>Battery: %tw_battery%</text> + </object> + + <object type="fill" color="#000000"> + <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" /> + </object> + + <object type="button"> + <condition var1="tw_samsung_navbar" op="!=" var2="1" /> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="button"> + <condition var1="tw_samsung_navbar" op="=" var2="1" /> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="button"> + <placement x="%center_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="home" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">home</action> + </object> + + <object type="button"> + <condition var1="tw_samsung_navbar" op="!=" var2="1" /> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="button"> + <condition var1="tw_samsung_navbar" op="=" var2="1" /> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="action"> + <touch key="power" /> + <action function="overlay">lock</action> + </object> + + <object type="action"> + <touch key="power+voldown" /> + <action function="screenshot" /> + </object> + </template> + + <template name="progress_bar"> + <object type="progressbar"> + <placement x="%indent%" y="%row17a_y%" /> + <resource empty="progress_empty" full="progress_full" /> + <data name="ui_progress" /> + </object> + + <object type="animation"> + <placement x="%indent%" y="%row17a_y%" /> + <resource name="progress" /> + <speed fps="24" render="2" /> + <loop frame="1" /> + </object> + </template> + + <template name="sort_options"> + <object type="image"> + <placement x="%indent%" y="%row1a_y%" /> + <image resource="tab_3" /> + </object> + + <object type="image"> + <placement x="%btn3_col2_x%" y="%row1a_y%" /> + <image resource="tab_3" /> + </object> + + <object type="image"> + <placement x="%btn3_col3_x%" y="%row1a_y%" /> + <image resource="tab_3" /> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="1" /> + <placement x="%indent%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Name</text> + <image resource="sort_asc" /> + <action function="set">tw_gui_sort_order=-1</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="-1" /> + <placement x="%indent%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Name</text> + <image resource="sort_desc" /> + <action function="set">tw_gui_sort_order=1</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <conditions> + <condition var1="tw_gui_sort_order" op="!=" var2="1" /> + <condition var1="tw_gui_sort_order" op="!=" var2="-1" /> + </conditions> + <placement x="%indent%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Name</text> + <image resource="sort_empty" /> + <action function="set">tw_gui_sort_order=1</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="2" /> + <placement x="%btn3_col2_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Date</text> + <image resource="sort_asc" /> + <action function="set">tw_gui_sort_order=-2</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="-2" /> + <placement x="%btn3_col2_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Date</text> + <image resource="sort_desc" /> + <action function="set">tw_gui_sort_order=2</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <conditions> + <condition var1="tw_gui_sort_order" op="!=" var2="2" /> + <condition var1="tw_gui_sort_order" op="!=" var2="-2" /> + </conditions> + <placement x="%btn3_col2_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Date</text> + <image resource="sort_empty" /> + <action function="set">tw_gui_sort_order=2</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="3" /> + <placement x="%btn3_col3_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Size</text> + <image resource="sort_asc" /> + <action function="set">tw_gui_sort_order=-3</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <condition var1="tw_gui_sort_order" op="=" var2="-3" /> + <placement x="%btn3_col3_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Size</text> + <image resource="sort_desc" /> + <action function="set">tw_gui_sort_order=3</action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <conditions> + <condition var1="tw_gui_sort_order" op="!=" var2="3" /> + <condition var1="tw_gui_sort_order" op="!=" var2="-3" /> + </conditions> + <placement x="%btn3_col3_x%" y="%row1a_y%" /> + <font resource="font_s" color="%text_button_color%" /> + <text>Size</text> + <image resource="sort_empty" /> + <action function="set">tw_gui_sort_order=3</action> + </object> + </template> + + <template name="tabs_backup"> + <object type="button" style="tab"> + <placement x="0" y="%row1_y%" w="%tab3_width%" h="%tab_height%" /> + <text>BACKUP</text> + <action function="page">backup</action> + </object> + + <object type="button" style="tab"> + <placement x="%tab3_col2_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%" /> + <text>OPTIONS</text> + <action function="page">backup_options</action> + </object> + </template> + + <template name="tabs_settings"> + <object type="button" style="tab"> + <placement x="0" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>GENERAL</text> + <action function="page">settings</action> + </object> + + <object type="button" style="tab"> + <placement x="%tab4_col2_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>TIME ZONE</text> + <action function="page">settings_timezone</action> + </object> + + <object type="button" style="tab"> + <placement x="%center_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>SCREEN</text> + <action function="page">settings_screen</action> + </object> + + <object type="button" style="tab"> + <placement x="%tab4_col4_x%" y="%row1_y%" w="%tab4_width%" h="%tab_height%" /> + <text>VIBRATION</text> + <action function="page">settings_vibration</action> + </object> + </template> + + <template name="console"> + <object type="console"> + <placement x="%indent%" y="%row2_y%" w="%content_width%" h="%console_height%" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row2_y" w="%content_width%" h="input_line_width" placement="1" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row17_y" w="%content_width%" h="input_line_width" /> + </object> + </template> + + <template name="console_terminal"> + <object type="console"> + <placement x="%indent%" y="%row2_y%" w="content_width" h="%console_terminal_height%" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row2_y" w="%content_width%" h="input_line_width" placement="1" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width" /> + </object> + </template> + + <template name="keyboardtemplate"> + <object type="keyboard"> + <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="71" width="48" /> + <row1 key01="q" long01="1" key02="w" long02="2" key03="e" long03="3" key04="r" long04="4" key05="t" long05="5" key06="y" long06="6" key07="u" long07="7" key08="i" long08="8" key09="o" long09="9" key10="p" long10="0" /> + <row2 key01="24:" key02="a" long02="@" key03="s" long03="#" key04="d" long04="$" key05="f" long05="%" key06="g" long06="&" key07="h" long07="*" key08="j" long08="-" key09="k" long09="+" key10="l" long10="_" key11="24:" /> + <row3 key01="72:layout2" key02="z" long02="!" key03="x" long03='"' key04="c" long04="'" key05="v" long05=":" key06="b" long06=";" key07="n" long07="/" key08="m" long08="?" key09="72:c:8" /> + <row4 key01="72:layout3" key02="/" key03="240: " key04="." key05="72:action" /> + <keylabel key="0:layout2" text="Shift" resource="shift"/> + <keylabel key="0:layout3" text="?123"/> + </layout1> + <layout2> + <keysize height="71" width="48" capslock="0" revert_layout="1"/> + <row1 key01="Q" long01="1" key02="W" long02="2" key03="E" long03="3" key04="R" long04="4" key05="T" long05="5" key06="Y" long06="6" key07="U" long07="7" key08="I" long08="8" key09="O" long09="9" key10="P" long10="0" /> + <row2 key01="24:" key02="A" long02="@" key03="S" long03="#" key04="D" long04="$" key05="F" long05="%" key06="G" long06="&" key07="H" long07="*" key08="J" long08="-" key09="K" long09="+" key10="L" long10="_" key11="24:" /> + <row3 key01="72:layout1" key02="Z" long02="!" key03="X" long03='"' key04="C" long04="'" key05="V" long05=":" key06="B" long06=";" key07="N" long07="/" key08="M" long08="?" key09="72:c:8" /> + <row4 key01="72:layout3" key02="/" key03="240: " key04="." key05="72:action" /> + <keylabel key="0:layout1" text="Shift" resource="shift_fill"/> + <keylabel key="0:layout3" text="?123"/> + </layout2> + <layout3> + <keysize height="71" width="48" /> + <row1 key01="1" key02="2" key03="3" key04="4" key05="5" key06="6" key07="7" key08="8" key09="9" key10="0" /> + <row2 key01="@" key02="#" key03="$" key04="%" key05="&" key06="*" key07="-" key08="+" key09="(" key10=")" /> + <row3 key01="72:layout4" key02="!" key03="48:c:34" key04="'" key05=":" key06=";" key07="/" key08="?" key09="72:c:8" /> + <row4 key01="72:layout1" key02="," key03="240: " key04="." key05="72:action" /> + <keylabel key="0:layout1" text="ABC"/> + <keylabel key="0:layout4" text="~\{"/> + </layout3> + <layout4> + <keysize height="71" width="48" /> + <row1 key01="~" key02="`" key03="|" key04="48:" key05="48:" key06="48:" key07="%" key08="48:" key09="{" key10="}" /> + <row2 key01="48:" key02="48:" key03="48:" key04="48:" key05="48:" key06="^" key07="_" key08="=" key09="[" key10="]" /> + <row3 key01="72:layout3" key02="48:" key03="48:" key04="48:" key05="48:" key06="\" key07="<" key08=">" key09="72:c:8" /> + <row4 key01="72:layout1" key02="48:c:34" key03="240: " key04="." key05="72:action" /> + <keylabel key="0:layout1" text="ABC"/> + <keylabel key="0:layout3" text="?123"/> + </layout4> + </object> + </template> + </templates> +</recovery> diff --git a/gui/theme/watch_mdpi/images/back.png b/gui/theme/watch_mdpi/images/back.png Binary files differnew file mode 100644 index 000000000..67d9b832a --- /dev/null +++ b/gui/theme/watch_mdpi/images/back.png diff --git a/gui/theme/watch_mdpi/images/backspace.png b/gui/theme/watch_mdpi/images/backspace.png Binary files differnew file mode 100644 index 000000000..e23ab76eb --- /dev/null +++ b/gui/theme/watch_mdpi/images/backspace.png diff --git a/gui/theme/watch_mdpi/images/checkbox_false.png b/gui/theme/watch_mdpi/images/checkbox_false.png Binary files differnew file mode 100644 index 000000000..1bda20599 --- /dev/null +++ b/gui/theme/watch_mdpi/images/checkbox_false.png diff --git a/gui/theme/watch_mdpi/images/checkbox_false_small.png b/gui/theme/watch_mdpi/images/checkbox_false_small.png Binary files differnew file mode 100644 index 000000000..eca227a4b --- /dev/null +++ b/gui/theme/watch_mdpi/images/checkbox_false_small.png diff --git a/gui/theme/watch_mdpi/images/checkbox_true.png b/gui/theme/watch_mdpi/images/checkbox_true.png Binary files differnew file mode 100644 index 000000000..c28faf89f --- /dev/null +++ b/gui/theme/watch_mdpi/images/checkbox_true.png diff --git a/gui/theme/watch_mdpi/images/checkbox_true_small.png b/gui/theme/watch_mdpi/images/checkbox_true_small.png Binary files differnew file mode 100644 index 000000000..6d3dde3ed --- /dev/null +++ b/gui/theme/watch_mdpi/images/checkbox_true_small.png diff --git a/gui/theme/watch_mdpi/images/close.png b/gui/theme/watch_mdpi/images/close.png Binary files differnew file mode 100644 index 000000000..8e4a73c1c --- /dev/null +++ b/gui/theme/watch_mdpi/images/close.png diff --git a/gui/theme/watch_mdpi/images/console.png b/gui/theme/watch_mdpi/images/console.png Binary files differnew file mode 100644 index 000000000..55cfc4c34 --- /dev/null +++ b/gui/theme/watch_mdpi/images/console.png diff --git a/gui/theme/watch_mdpi/images/curtain.jpg b/gui/theme/watch_mdpi/images/curtain.jpg Binary files differnew file mode 100644 index 000000000..1d1d49e87 --- /dev/null +++ b/gui/theme/watch_mdpi/images/curtain.jpg diff --git a/gui/theme/watch_mdpi/images/enter.png b/gui/theme/watch_mdpi/images/enter.png Binary files differnew file mode 100644 index 000000000..dc01443fd --- /dev/null +++ b/gui/theme/watch_mdpi/images/enter.png diff --git a/gui/theme/watch_mdpi/images/file.png b/gui/theme/watch_mdpi/images/file.png Binary files differnew file mode 100644 index 000000000..90c8d8f84 --- /dev/null +++ b/gui/theme/watch_mdpi/images/file.png diff --git a/gui/theme/watch_mdpi/images/folder.png b/gui/theme/watch_mdpi/images/folder.png Binary files differnew file mode 100644 index 000000000..c8d360ac1 --- /dev/null +++ b/gui/theme/watch_mdpi/images/folder.png diff --git a/gui/theme/watch_mdpi/images/handle.png b/gui/theme/watch_mdpi/images/handle.png Binary files differnew file mode 100644 index 000000000..d7095b48b --- /dev/null +++ b/gui/theme/watch_mdpi/images/handle.png diff --git a/gui/theme/watch_mdpi/images/home.png b/gui/theme/watch_mdpi/images/home.png Binary files differnew file mode 100644 index 000000000..2f81faecf --- /dev/null +++ b/gui/theme/watch_mdpi/images/home.png diff --git a/gui/theme/watch_mdpi/images/indeterminate001.png b/gui/theme/watch_mdpi/images/indeterminate001.png Binary files differnew file mode 100644 index 000000000..7dbd4b786 --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate001.png diff --git a/gui/theme/watch_mdpi/images/indeterminate002.png b/gui/theme/watch_mdpi/images/indeterminate002.png Binary files differnew file mode 100644 index 000000000..10b444c0b --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate002.png diff --git a/gui/theme/watch_mdpi/images/indeterminate003.png b/gui/theme/watch_mdpi/images/indeterminate003.png Binary files differnew file mode 100644 index 000000000..7c4d7c6aa --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate003.png diff --git a/gui/theme/watch_mdpi/images/indeterminate004.png b/gui/theme/watch_mdpi/images/indeterminate004.png Binary files differnew file mode 100644 index 000000000..63c91b8ba --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate004.png diff --git a/gui/theme/watch_mdpi/images/indeterminate005.png b/gui/theme/watch_mdpi/images/indeterminate005.png Binary files differnew file mode 100644 index 000000000..3b1089edb --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate005.png diff --git a/gui/theme/watch_mdpi/images/indeterminate006.png b/gui/theme/watch_mdpi/images/indeterminate006.png Binary files differnew file mode 100644 index 000000000..2598b0cf0 --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate006.png diff --git a/gui/theme/watch_mdpi/images/indeterminate007.png b/gui/theme/watch_mdpi/images/indeterminate007.png Binary files differnew file mode 100644 index 000000000..dddf002d0 --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate007.png diff --git a/gui/theme/watch_mdpi/images/indeterminate008.png b/gui/theme/watch_mdpi/images/indeterminate008.png Binary files differnew file mode 100644 index 000000000..77eb487aa --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate008.png diff --git a/gui/theme/watch_mdpi/images/indeterminate009.png b/gui/theme/watch_mdpi/images/indeterminate009.png Binary files differnew file mode 100644 index 000000000..ffe38a607 --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate009.png diff --git a/gui/theme/watch_mdpi/images/indeterminate010.png b/gui/theme/watch_mdpi/images/indeterminate010.png Binary files differnew file mode 100644 index 000000000..93ff9e622 --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate010.png diff --git a/gui/theme/watch_mdpi/images/indeterminate011.png b/gui/theme/watch_mdpi/images/indeterminate011.png Binary files differnew file mode 100644 index 000000000..fa1f5e46c --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate011.png diff --git a/gui/theme/watch_mdpi/images/indeterminate012.png b/gui/theme/watch_mdpi/images/indeterminate012.png Binary files differnew file mode 100644 index 000000000..92ac9602e --- /dev/null +++ b/gui/theme/watch_mdpi/images/indeterminate012.png diff --git a/gui/theme/watch_mdpi/images/main_button.png b/gui/theme/watch_mdpi/images/main_button.png Binary files differnew file mode 100644 index 000000000..dc611ccd7 --- /dev/null +++ b/gui/theme/watch_mdpi/images/main_button.png diff --git a/gui/theme/watch_mdpi/images/main_button_full_width.png b/gui/theme/watch_mdpi/images/main_button_full_width.png Binary files differnew file mode 100644 index 000000000..224cdd0a5 --- /dev/null +++ b/gui/theme/watch_mdpi/images/main_button_full_width.png diff --git a/gui/theme/watch_mdpi/images/main_button_half_height.png b/gui/theme/watch_mdpi/images/main_button_half_height.png Binary files differnew file mode 100644 index 000000000..32dea7f8f --- /dev/null +++ b/gui/theme/watch_mdpi/images/main_button_half_height.png diff --git a/gui/theme/watch_mdpi/images/main_button_quarter_width.png b/gui/theme/watch_mdpi/images/main_button_quarter_width.png Binary files differnew file mode 100644 index 000000000..eb7d3e5b7 --- /dev/null +++ b/gui/theme/watch_mdpi/images/main_button_quarter_width.png diff --git a/gui/theme/watch_mdpi/images/progress_empty.png b/gui/theme/watch_mdpi/images/progress_empty.png Binary files differnew file mode 100644 index 000000000..40cf8e27c --- /dev/null +++ b/gui/theme/watch_mdpi/images/progress_empty.png diff --git a/gui/theme/watch_mdpi/images/progress_fill.png b/gui/theme/watch_mdpi/images/progress_fill.png Binary files differnew file mode 100644 index 000000000..7ef325f3e --- /dev/null +++ b/gui/theme/watch_mdpi/images/progress_fill.png diff --git a/gui/theme/watch_mdpi/images/q_btn_accept.png b/gui/theme/watch_mdpi/images/q_btn_accept.png Binary files differnew file mode 100644 index 000000000..eb042f68f --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_accept.png diff --git a/gui/theme/watch_mdpi/images/q_btn_accept_transp.png b/gui/theme/watch_mdpi/images/q_btn_accept_transp.png Binary files differnew file mode 100644 index 000000000..17646f10a --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_accept_transp.png diff --git a/gui/theme/watch_mdpi/images/q_btn_addzip.png b/gui/theme/watch_mdpi/images/q_btn_addzip.png Binary files differnew file mode 100644 index 000000000..4e0a23806 --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_addzip.png diff --git a/gui/theme/watch_mdpi/images/q_btn_arrow_left.png b/gui/theme/watch_mdpi/images/q_btn_arrow_left.png Binary files differnew file mode 100644 index 000000000..26c83918e --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_arrow_left.png diff --git a/gui/theme/watch_mdpi/images/q_btn_arrow_right.png b/gui/theme/watch_mdpi/images/q_btn_arrow_right.png Binary files differnew file mode 100644 index 000000000..1dd07b2b6 --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_arrow_right.png diff --git a/gui/theme/watch_mdpi/images/q_btn_delete.png b/gui/theme/watch_mdpi/images/q_btn_delete.png Binary files differnew file mode 100644 index 000000000..6600a7242 --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_delete.png diff --git a/gui/theme/watch_mdpi/images/q_btn_encryption_dis.png b/gui/theme/watch_mdpi/images/q_btn_encryption_dis.png Binary files differnew file mode 100644 index 000000000..89f93344f --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_encryption_dis.png diff --git a/gui/theme/watch_mdpi/images/q_btn_encryption_en.png b/gui/theme/watch_mdpi/images/q_btn_encryption_en.png Binary files differnew file mode 100644 index 000000000..d366ae10f --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_encryption_en.png diff --git a/gui/theme/watch_mdpi/images/q_btn_folder.png b/gui/theme/watch_mdpi/images/q_btn_folder.png Binary files differnew file mode 100644 index 000000000..eab17bbab --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_folder.png diff --git a/gui/theme/watch_mdpi/images/q_btn_refresh.png b/gui/theme/watch_mdpi/images/q_btn_refresh.png Binary files differnew file mode 100644 index 000000000..7b85acda3 --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_refresh.png diff --git a/gui/theme/watch_mdpi/images/q_btn_reset.png b/gui/theme/watch_mdpi/images/q_btn_reset.png Binary files differnew file mode 100644 index 000000000..4c496da43 --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_reset.png diff --git a/gui/theme/watch_mdpi/images/q_btn_storage.png b/gui/theme/watch_mdpi/images/q_btn_storage.png Binary files differnew file mode 100644 index 000000000..b9068eabb --- /dev/null +++ b/gui/theme/watch_mdpi/images/q_btn_storage.png diff --git a/gui/theme/watch_mdpi/images/radio_false.png b/gui/theme/watch_mdpi/images/radio_false.png Binary files differnew file mode 100644 index 000000000..e44ad0744 --- /dev/null +++ b/gui/theme/watch_mdpi/images/radio_false.png diff --git a/gui/theme/watch_mdpi/images/radio_true.png b/gui/theme/watch_mdpi/images/radio_true.png Binary files differnew file mode 100644 index 000000000..fbde2f8e1 --- /dev/null +++ b/gui/theme/watch_mdpi/images/radio_true.png diff --git a/gui/theme/watch_mdpi/images/shift.png b/gui/theme/watch_mdpi/images/shift.png Binary files differnew file mode 100644 index 000000000..8bc05056b --- /dev/null +++ b/gui/theme/watch_mdpi/images/shift.png diff --git a/gui/theme/watch_mdpi/images/shift_fill.png b/gui/theme/watch_mdpi/images/shift_fill.png Binary files differnew file mode 100644 index 000000000..64bf5dfd3 --- /dev/null +++ b/gui/theme/watch_mdpi/images/shift_fill.png diff --git a/gui/theme/watch_mdpi/images/slider.png b/gui/theme/watch_mdpi/images/slider.png Binary files differnew file mode 100644 index 000000000..ac5df4491 --- /dev/null +++ b/gui/theme/watch_mdpi/images/slider.png diff --git a/gui/theme/watch_mdpi/images/slider_touch.png b/gui/theme/watch_mdpi/images/slider_touch.png Binary files differnew file mode 100644 index 000000000..e9e93c717 --- /dev/null +++ b/gui/theme/watch_mdpi/images/slider_touch.png diff --git a/gui/theme/watch_mdpi/images/slider_used.png b/gui/theme/watch_mdpi/images/slider_used.png Binary files differnew file mode 100644 index 000000000..bb2864325 --- /dev/null +++ b/gui/theme/watch_mdpi/images/slider_used.png diff --git a/gui/theme/watch_mdpi/images/space.png b/gui/theme/watch_mdpi/images/space.png Binary files differnew file mode 100644 index 000000000..7f0fb845c --- /dev/null +++ b/gui/theme/watch_mdpi/images/space.png diff --git a/gui/theme/watch_mdpi/images/unlock_icon.png b/gui/theme/watch_mdpi/images/unlock_icon.png Binary files differnew file mode 100644 index 000000000..e55a17ccf --- /dev/null +++ b/gui/theme/watch_mdpi/images/unlock_icon.png diff --git a/gui/theme/watch_mdpi/ui.xml b/gui/theme/watch_mdpi/ui.xml new file mode 100644 index 000000000..f47dfa12c --- /dev/null +++ b/gui/theme/watch_mdpi/ui.xml @@ -0,0 +1,354 @@ +<?xml version="1.0"?> + +<recovery> + <details> + <resolution width="320" height="320" /> + <roundscreen offset_x="40" offset_y="40" /> + <author>TeamWin</author> + <title>Backup Naowz</title> + <description>Default basic theme</description> + <preview>preview.jpg</preview> + </details> + + <include> + <xmlfile name="watch.xml" /> + </include> + + <resources> + <resource name="font_l" type="font" filename="RobotoCondensed-Regular.ttf" size="24" /> + <resource name="font_m" type="font" filename="RobotoCondensed-Regular.ttf" size="14" /> + <resource name="font_s" type="font" filename="RobotoCondensed-Regular.ttf" size="12" /> + <resource name="fixed" type="font" filename="DroidSansMono.ttf" size="14" /> + + <resource name="keylabel" type="font" filename="RobotoCondensed-Regular.ttf" size="18" /> + <resource name="keylabel-small" type="font" filename="RobotoCondensed-Regular.ttf" size="14" /> + <resource name="keylabel-longpress" type="font" filename="RobotoCondensed-Regular.ttf" size="12" /> + + <resource name="main_button" type="image" filename="main_button" /> + <resource name="main_button_half_height" type="image" filename="main_button_half_height" /> + <resource name="main_button_full_width" type="image" filename="main_button_full_width" /> + <resource name="main_button_quarter_width" type="image" filename="main_button_quarter_width" /> + <resource name="q_btn_arrow_right" type="image" filename="q_btn_arrow_right" retainaspect="1" /> + <resource name="q_btn_arrow_left" type="image" filename="q_btn_arrow_left" retainaspect="1" /> + <resource name="q_btn_storage" type="image" filename="q_btn_storage" retainaspect="1" /> + <resource name="q_btn_refresh" type="image" filename="q_btn_refresh" retainaspect="1" /> + <resource name="q_btn_accept" type="image" filename="q_btn_accept" retainaspect="1" /> + <resource name="q_btn_accept_transp" type="image" filename="q_btn_accept_transp" retainaspect="1" /> + <resource name="q_btn_addzip" type="image" filename="q_btn_addzip" retainaspect="1" /> + <resource name="q_btn_encryption_dis" type="image" filename="q_btn_encryption_dis" retainaspect="1" /> + <resource name="q_btn_encryption_en" type="image" filename="q_btn_encryption_en" retainaspect="1" /> + <resource name="q_btn_delete" type="image" filename="q_btn_delete" retainaspect="1" /> + <resource name="q_btn_reset" type="image" filename="q_btn_reset" retainaspect="1" /> + <resource name="q_btn_folder" type="image" filename="q_btn_folder" retainaspect="1" /> + <resource name="file" type="image" filename="file" retainaspect="1" /> + <resource name="folder" type="image" filename="folder" retainaspect="1" /> + <resource name="unlock_icon" type="image" filename="unlock_icon" retainaspect="1" /> + <resource name="home" type="image" filename="home" retainaspect="1" /> + <resource name="back" type="image" filename="back" retainaspect="1" /> + <resource name="console" type="image" filename="console" retainaspect="1" /> + <resource name="checkbox_false" type="image" filename="checkbox_false" retainaspect="1" /> + <resource name="checkbox_false_small" type="image" filename="checkbox_false_small" retainaspect="1" /> + <resource name="checkbox_true" type="image" filename="checkbox_true" retainaspect="1" /> + <resource name="checkbox_true_small" type="image" filename="checkbox_true_small" retainaspect="1" /> + <resource name="radio_false" type="image" filename="radio_false" retainaspect="1" /> + <resource name="radio_true" type="image" filename="radio_true" retainaspect="1" /> + <resource name="progress" type="animation" filename="indeterminate" /> + <resource name="progress_empty" type="image" filename="progress_empty" /> + <resource name="progress_full" type="image" filename="progress_fill" /> + <resource name="slider" type="image" filename="slider" /> + <resource name="slider_used" type="image" filename="slider_used" /> + <resource name="slider_touch" type="image" filename="slider_touch" /> + <resource name="handle" type="image" filename="handle" /> + <resource name="backspace" type="image" filename="backspace" retainaspect="1" /> + <resource name="enter" type="image" filename="enter" retainaspect="1" /> + <resource name="shift" type="image" filename="shift" retainaspect="1" /> + <resource name="shift_fill" type="image" filename="shift_fill" retainaspect="1" /> + <resource name="space" type="image" filename="space" retainaspect="1" /> + <resource name="close" type="image" filename="close" retainaspect="1" /> + </resources> + + <variables> + <variable name="screen_width" value="320" /> + <variable name="screen_half_width" value="160" /> + <variable name="screen_height" value="320" /> + <variable name="status_height" value="20" /> + <variable name="header_height" value="20" /> + <variable name="navbar_height" value="52" /> + <variable name="content_width" value="304" /> + <variable name="content_half_width" value="148" /> + <variable name="back_button_x" value="70" /> + <variable name="console_button_x" value="250" /> + <variable name="indent" value="8" /> + <variable name="col1_x_left" value="8" /> + <variable name="col1_x_left_negative" value="156" /> + <variable name="center_x" value="160" /> + <variable name="col1_x_right" value="164" /> + <variable name="indent_right" value="312" /> + <variable name="btn4_col2_x" value="86" /> + <variable name="btn4_col3_x" value="164" /> + <variable name="btn4_col4_x" value="242" /> + <variable name="row1_header_y" value="0" /> + <variable name="row2_header_y" value="20" /> + <variable name="row1_y" value="28" /> + <variable name="row1a_y" value="36" /> + <variable name="row2_y" value="44" /> + <variable name="row2a_y" value="52" /> + <variable name="row3_y" value="60" /> + <variable name="row3_input_y" value="64" /> + <variable name="row3a_y" value="68" /> + <variable name="row4_y" value="76" /> + <variable name="row4a_y" value="84" /> + <variable name="row5_y" value="92" /> + <variable name="row5a_y" value="100" /> + <variable name="row6_y" value="108" /> + <variable name="row6_input_y" value="112" /> + <variable name="row6a_y" value="116" /> + <variable name="row6a_input_y" value="120" /> + <variable name="row7_y" value="124" /> + <variable name="row7a_y" value="132" /> + <variable name="row8_y" value="140" /> + <variable name="row8a_y" value="148" /> + <variable name="row9_y" value="156" /> + <variable name="row9a_y" value="164" /> + <variable name="row10_y" value="172" /> + <variable name="row10a_y" value="180" /> + <variable name="row11_y" value="188" /> + <variable name="row11a_y" value="196" /> + <variable name="row12_y" value="204" /> + <variable name="row12a_y" value="212" /> + <variable name="row13_y" value="220" /> + <variable name="slider_y" value="224" /> + <variable name="row13a_y" value="228" /> + <variable name="row14_y" value="236" /> + <variable name="row14a_y" value="244" /> + <variable name="row15_y" value="252" /> + <variable name="row15a_y" value="260" /> + <variable name="navbar_y" value="268" /> + <variable name="navbar_btn_y" value="294" /> + <variable name="keyboard_y" value="124" /> + <variable name="background_color" value="#1A1A1A" /> + <variable name="accent_color" value="#0090CA" /> + <variable name="text_color" value="#EEEEEE" /> + <variable name="text_button_color" value="#EEEEEE" /> + <variable name="text_success_color" value="#76FF03" /> + <variable name="text_fail_color" value="#FF0101" /> + <variable name="highlight_color" value="#1A1A1A80" /> + <variable name="caps_highlight_color" value="#22222280" /> + <variable name="transparent" value="#00000000" /> + <variable name="semi_transparent" value="#00000099" /> + <variable name="warning" value="#F8F8A0" /> + <variable name="error" value="#FF0101" /> + <variable name="highlight" value="#0090CA" /> + <variable name="fileselector_linecolor" value="#555555" /> + <variable name="fileselector_highlight_color" value="#555555" /> + <variable name="fileselector_separatorheight" value="1" /> + <variable name="fileselector_spacing" value="0" /> + <variable name="fileselector_install_height" value="248" /> + <variable name="fileselector_filemanager_height" value="248" /> + <variable name="partitionlist_spacing" value="0" /> + <variable name="partitionlist_storage_height" value="160" /> + <variable name="partitionlist_wipe_height" value="160" /> + <variable name="listbox_timezone_height" value="248" /> + <variable name="listbox_settings_height" value="248" /> + <variable name="fastscroll_w" value="10" /> + <variable name="fastscroll_linew" value="1" /> + <variable name="fastscroll_rectw" value="10" /> + <variable name="fastscroll_recth" value="18" /> + <variable name="slidervalue_lineh" value="4" /> + <variable name="slidervalue_padding" value="0" /> + <variable name="slidervalue_sliderw" value="70" /> + <variable name="slidervalue_sliderh" value="72" /> + <variable name="slideout_height" value="232" /> + <variable name="slideout_bg_height" value="248" /> + <variable name="input_height" value="16" /> + <variable name="input_line_width" value="1" /> + <variable name="input_line_console" value="272" /> + <variable name="console_height" value="152" /> + <variable name="console_terminal_height" value="64" /> + <variable name="close_btn_x" value="280" /> + <variable name="pattern_x" value="60" /> + <variable name="pattern_dot_dia" value="20" /> + <variable name="pattern_line_w" value="8" /> + <variable name="pattern_size" value="200" /> + </variables> + + <templates> + <template name="statusbar"> + <object type="fill" color="%accent_color%"> + <placement x="0" y="0" w="%screen_width%" h="%header_height%" /> + </object> + + <object type="fill" color="%text_fail_color%"> + <condition var1="tw_simulate_actions" var2="1" /> + <placement x="0" y="0" w="%screen_width%" h="%status_height%" /> + </object> + </template> + + <template name="page"> + <background color="%background_color%" /> + + <object type="template" name="statusbar" /> + + <object type="text" color="%text_color%"> + <condition var1="tw_no_cpu_temp" var2="1" /> + <font resource="font_m" /> + <placement x="%indent%" y="%row1_header_y%" /> + <text>TWRP %tw_version%</text> + </object> + + <object type="text" color="%text_color%"> + <condition var1="tw_no_cpu_temp" var2="0" /> + <font resource="font_m" /> + <placement x="%indent%" y="%row1_header_y%" /> + <text>CPU: %tw_cpu_temp% °C</text> + </object> + + <object type="text" color="%text_color%"> + <font resource="font_m" /> + <placement x="%center_x%" y="%row1_header_y%" placement="5" /> + <text>%tw_time%</text> + </object> + + <object type="text" color="%text_color%"> + <conditions> + <condition var1="tw_no_battery_percent" var2="0" /> + <condition var1="tw_battery" op=">" var2="0" /> + <condition var1="tw_battery" op="<" var2="101" /> + </conditions> + <font resource="font_m" /> + <placement x="%indent_right%" y="%row1_header_y%" placement="1" /> + <text>Battery: %tw_battery%</text> + </object> + + <object type="fill" color="#000000"> + <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" /> + </object> + + <object type="button"> + <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="back" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">back</action> + </object> + + <object type="button"> + <placement x="%center_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="home" /> + <condition var1="tw_busy" var2="0" /> + <action function="key">home</action> + </object> + + <object type="button"> + <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" /> + <image resource="console" /> + <condition var1="tw_busy" var2="0" /> + <action function="overlay">slideout</action> + </object> + + <object type="action"> + <touch key="power" /> + <action function="overlay">lock</action> + </object> + + <object type="action"> + <touch key="power+voldown" /> + <action function="screenshot" /> + </object> + </template> + + <template name="progress_bar"> + <object type="progressbar"> + <placement x="%indent%" y="%row11_y%" /> + <resource empty="progress_empty" full="progress_full" /> + <data name="ui_progress" /> + </object> + + <object type="animation"> + <placement x="%indent%" y="%row11_y%" /> + <resource name="progress" /> + <speed fps="24" render="2" /> + <loop frame="1" /> + </object> + </template> + + <template name="console"> + <object type="console"> + <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%console_height%" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row1_y" w="%content_width%" h="input_line_width" placement="1" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row10a_y" w="%content_width%" h="input_line_width" /> + </object> + </template> + + <template name="console_terminal"> + <object type="console"> + <placement x="%indent%" y="%row1_y%" w="content_width" h="%console_terminal_height%" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row1_y" w="%content_width%" h="input_line_width" placement="1" /> + </object> + + <object type="fill" color="%fileselector_linecolor%"> + <placement x="%indent%" y="row5_y" w="%content_width%" h="input_line_width" /> + </object> + </template> + + <template name="keyboardtemplate"> + <object type="keyboard"> + <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="36" width="32" /> + <row1 key01="q" long01="1" key02="w" long02="2" key03="e" long03="3" key04="r" long04="4" key05="t" long05="5" key06="y" long06="6" key07="u" long07="7" key08="i" long08="8" key09="o" long09="9" key10="p" long10="0" /> + <row2 key01="16:" key02="a" long02="@" key03="s" long03="#" key04="d" long04="$" key05="f" long05="%" key06="g" long06="&" key07="h" long07="*" key08="j" long08="-" key09="k" long09="+" key10="l" long10="_" key11="16:" /> + <row3 key01="48:layout2" key02="z" long02="!" key03="x" long03='"' key04="c" long04="'" key05="v" long05=":" key06="b" long06=";" key07="n" long07="/" key08="m" long08="?" key09="48:c:8" /> + <row4 key01="48:layout3" key02="/" key03="160: " key04="." key05="48:action" /> + <keylabel key="0:layout2" text="Shift" resource="shift"/> + <keylabel key="0:layout3" text="?123"/> + </layout1> + <layout2> + <keysize height="36" width="32" capslock="0" revert_layout="1"/> + <row1 key01="Q" long01="1" key02="W" long02="2" key03="E" long03="3" key04="R" long04="4" key05="T" long05="5" key06="Y" long06="6" key07="U" long07="7" key08="I" long08="8" key09="O" long09="9" key10="P" long10="0" /> + <row2 key01="16:" key02="A" long02="@" key03="S" long03="#" key04="D" long04="$" key05="F" long05="%" key06="G" long06="&" key07="H" long07="*" key08="J" long08="-" key09="K" long09="+" key10="L" long10="_" key11="16:" /> + <row3 key01="48:layout1" key02="Z" long02="!" key03="X" long03='"' key04="C" long04="'" key05="V" long05=":" key06="B" long06=";" key07="N" long07="/" key08="M" long08="?" key09="48:c:8" /> + <row4 key01="48:layout3" key02="/" key03="160: " key04="." key05="48:action" /> + <keylabel key="0:layout1" text="Shift" resource="shift_fill"/> + <keylabel key="0:layout3" text="?123"/> + </layout2> + <layout3> + <keysize height="36" width="32" /> + <row1 key01="1" key02="2" key03="3" key04="4" key05="5" key06="6" key07="7" key08="8" key09="9" key10="0" /> + <row2 key01="@" key02="#" key03="$" key04="%" key05="&" key06="*" key07="-" key08="+" key09="(" key10=")" /> + <row3 key01="48:layout4" key02="!" key03="32:c:34" key04="'" key05=":" key06=";" key07="/" key08="?" key09="48:c:8" /> + <row4 key01="48:layout1" key02="," key03="160: " key04="." key05="48:action" /> + <keylabel key="0:layout1" text="ABC"/> + <keylabel key="0:layout4" text="~\{"/> + </layout3> + <layout4> + <keysize height="36" width="32" /> + <row1 key01="~" key02="`" key03="|" key04="32:" key05="32:" key06="32:" key07="%" key08="32:" key09="{" key10="}" /> + <row2 key01="32:" key02="32:" key03="32:" key04="32:" key05="32:" key06="^" key07="_" key08="=" key09="[" key10="]" /> + <row3 key01="48:layout3" key02="32:" key03="32:" key04="32:" key05="32:" key06="\" key07="<" key08=">" key09="48:c:8" /> + <row4 key01="48:layout1" key02="32:c:34" key03="160: " key04="." key05="48:action" /> + <keylabel key="0:layout1" text="ABC"/> + <keylabel key="0:layout3" text="?123"/> + </layout4> + </object> + </template> + </templates> +</recovery> |