summaryrefslogtreecommitdiffstats
path: root/gui/theme/common
diff options
context:
space:
mode:
Diffstat (limited to 'gui/theme/common')
-rwxr-xr-xgui/theme/common/landscape.xml87
-rwxr-xr-xgui/theme/common/portrait.xml94
-rwxr-xr-xgui/theme/common/watch.xml101
3 files changed, 159 insertions, 123 deletions
diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml
index 6df886256..a3e6ed82a 100755
--- a/gui/theme/common/landscape.xml
+++ b/gui/theme/common/landscape.xml
@@ -165,6 +165,16 @@
<font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
</style>
+ <style name="advanced_listbox">
+ <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%"/>
+ <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
+ <icon selected="handle" unselected="handle"/>
+ <background color="%background_color%"/>
+ <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
+ </style>
+
<style name="slider">
<placement x="%col2_x_right%" y="%row17a_y%"/>
<font resource="font_m" color="%text_color%"/>
@@ -3339,24 +3349,7 @@
</button>
<button style="main_button">
- <condition var1="tw_has_data_media" var2="1"/>
- <placement x="%center_x%" y="%row2_y%"/>
- <text>{@fix_context_btn=Fix Contexts}</text>
- <action function="page">fixcontexts</action>
- </button>
-
- <button style="main_button">
- <condition var1="tw_allow_partition_sdcard" var2="1"/>
<placement x="%col1_x_left%" y="%row6a_y%"/>
- <text>{@part_sd_btn=Partition SD Card}</text>
- <actions>
- <action function="set">partitionlisterror=0</action>
- <action function="page">partsdcardsel</action>
- </actions>
- </button>
-
- <button style="main_button">
- <placement x="%center_x%" y="%row6a_y%"/>
<text>{@file_manager_btn=File Manager}</text>
<action function="page">filemanagerlist</action>
</button>
@@ -3368,38 +3361,44 @@
</button>
<button style="main_button">
- <placement x="%center_x%" y="%row11_y%"/>
- <text>{@reload_theme_btn=Reload Theme}</text>
- <action function="reload"/>
- </button>
-
- <button style="main_button">
<placement x="%col1_x_left%" y="%row15a_y%"/>
<text>{@adb_sideload_btn=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>{@dumlock_btn=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>{@inject_twrp_btn=Inject TWRP}</text>
- <actions>
- <action function="set">tw_back=advanced</action>
- <action function="set">tw_action=reinjecttwrp</action>
- <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
- <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
- <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
- <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
- <action function="page">confirm_action</action>
- </actions>
- </button>
+ <listbox style="advanced_listbox">
+ <placement x="%center_x%" y="%row2_y%" w="%content_half_width%" h="%fileselector_install_height%"/>
+ <listitem name="{@reload_theme_btn=Reload Theme}">
+ <action function="reload"/>
+ </listitem>
+ <listitem name="{@part_sd_btn=Partition SD Card}">
+ <condition var1="tw_allow_partition_sdcard" var2="1"/>
+ <actions>
+ <action function="set">partitionlisterror=0</action>
+ <action function="page">partsdcardsel</action>
+ </actions>
+ </listitem>
+ <listitem name="{@fix_context_btn=Fix Contexts}">
+ <condition var1="tw_has_data_media" var2="1"/>
+ <action function="page">fixcontexts</action>
+ </listitem>
+ <listitem name="{@dumlock_btn=HTC Dumlock}">
+ <condition var1="tw_show_dumlock" var2="1"/>
+ <action function="page">htcdumlock</action>
+ </listitem>
+ <listitem name="{@inject_twrp_btn=Inject TWRP}">
+ <condition var1="tw_has_injecttwrp" var2="1"/>
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=reinjecttwrp</action>
+ <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
+ <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
+ <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
+ <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
+ <action function="page">confirm_action</action>
+ </actions>
+ </listitem>
+ </listbox>
<action>
<touch key="home"/>
diff --git a/gui/theme/common/portrait.xml b/gui/theme/common/portrait.xml
index c2d32dd3e..c993225bb 100755
--- a/gui/theme/common/portrait.xml
+++ b/gui/theme/common/portrait.xml
@@ -136,6 +136,16 @@
<font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
</style>
+ <style name="advanced_listbox">
+ <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%"/>
+ <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
+ <icon selected="handle" unselected="handle"/>
+ <background color="%background_color%"/>
+ <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
+ </style>
+
<style name="slider">
<placement x="%center_x%" y="%row23_y%"/>
<font resource="font_s" color="%text_color%"/>
@@ -3501,18 +3511,14 @@
<button style="main_button">
<condition var1="tw_has_data_media" var2="1"/>
<placement x="%center_x%" y="%row2a_y%"/>
- <text>{@fix_context_btn=Fix Contexts}</text>
- <action function="page">fixcontexts</action>
+ <text>{@adb_sideload_btn=ADB Sideload}</text>
+ <action function="page">sideload</action>
</button>
<button style="main_button">
- <condition var1="tw_allow_partition_sdcard" var2="1"/>
<placement x="%indent%" y="%row8_y%"/>
- <text>{@part_sd_btn=Partition SD Card}</text>
- <actions>
- <action function="set">partitionlisterror=0</action>
- <action function="page">partsdcardsel</action>
- </actions>
+ <text>{@terminal_btn=Terminal}</text>
+ <action function="page">terminalcommand</action>
</button>
<button style="main_button">
@@ -3521,45 +3527,39 @@
<action function="page">filemanagerlist</action>
</button>
- <button style="main_button">
- <placement x="%indent%" y="%row13a_y%"/>
- <text>{@terminal_btn=Terminal}</text>
- <action function="page">terminalcommand</action>
- </button>
-
- <button style="main_button">
- <placement x="%center_x%" y="%row13a_y%"/>
- <text>{@reload_theme_btn=Reload Theme}</text>
- <action function="reload"/>
- </button>
-
- <button style="main_button">
- <placement x="%indent%" y="%row19_y%"/>
- <text>{@adb_sideload_btn=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>{@dumlock_btn=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>{@inject_twrp_btn=Inject TWRP}</text>
- <actions>
- <action function="set">tw_back=advanced</action>
- <action function="set">tw_action=reinjecttwrp</action>
- <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
- <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
- <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
- <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
- <action function="page">confirm_action</action>
- </actions>
- </button>
+ <listbox style="advanced_listbox">
+ <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
+ <listitem name="{@reload_theme_btn=Reload Theme}">
+ <action function="reload"/>
+ </listitem>
+ <listitem name="{@part_sd_btn=Partition SD Card}">
+ <condition var1="tw_allow_partition_sdcard" var2="1"/>
+ <actions>
+ <action function="set">partitionlisterror=0</action>
+ <action function="page">partsdcardsel</action>
+ </actions>
+ </listitem>
+ <listitem name="{@fix_context_btn=Fix Contexts}">
+ <condition var1="tw_has_data_media" var2="1"/>
+ <action function="page">fixcontexts</action>
+ </listitem>
+ <listitem name="{@dumlock_btn=HTC Dumlock}">
+ <condition var1="tw_show_dumlock" var2="1"/>
+ <action function="page">htcdumlock</action>
+ </listitem>
+ <listitem name="{@inject_twrp_btn=Inject TWRP}">
+ <condition var1="tw_has_injecttwrp" var2="1"/>
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=reinjecttwrp</action>
+ <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
+ <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
+ <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
+ <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
+ <action function="page">confirm_action</action>
+ </actions>
+ </listitem>
+ </listbox>
<action>
<touch key="home"/>
diff --git a/gui/theme/common/watch.xml b/gui/theme/common/watch.xml
index 0c30a3499..79ac5ecad 100755
--- a/gui/theme/common/watch.xml
+++ b/gui/theme/common/watch.xml
@@ -166,6 +166,16 @@
<font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
</style>
+ <style name="advanced_listbox">
+ <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%"/>
+ <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
+ <icon selected="handle" unselected="handle"/>
+ <background color="%background_color%"/>
+ <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
+ </style>
+
<style name="slider">
<placement x="%center_x%" y="%slider_y%"/>
<font resource="font_l" color="%text_color%"/>
@@ -4104,42 +4114,69 @@
<action function="page">fixcontexts</action>
</button>
- <button style="main_button">
- <placement x="%col1_x_left%" y="%row6_y%"/>
- <text>{@reload_theme_btn=Reload Theme}</text>
- <action function="reload"/>
+ <button>
+ <placement x="%btn4_col4_x%" y="%row11_y%"/>
+ <highlight color="%highlight_color%"/>
+ <image resource="q_btn_arrow_right"/>
+ <action function="page">advanced2</action>
</button>
- <button style="main_button">
- <condition var1="tw_allow_partition_sdcard" var2="1"/>
- <placement x="%col1_x_right%" y="%row6_y%"/>
- <text>{@part_sd_s_btn=SD Card}</text>
- <actions>
- <action function="set">partitionlisterror=0</action>
- <action function="page">partsdcardsel</action>
- </actions>
- </button>
+ <action>
+ <touch key="home"/>
+ <action function="page">main</action>
+ </action>
- <button style="main_button">
- <condition var1="tw_show_dumlock" var2="1"/>
- <placement x="%col1_x_left%" y="%row11_y%"/>
- <text>{@dumlock_btn=HTC Dumlock}</text>
- <action function="page">htcdumlock</action>
- </button>
+ <action>
+ <touch key="back"/>
+ <action function="page">main3</action>
+ </action>
+ </page>
- <button style="main_button">
- <condition var1="tw_has_injecttwrp" var2="1"/>
- <placement x="%col1_x_right%" y="%row11_y%"/>
- <text>{@inject_twrp_btn=Inject TWRP}</text>
- <actions>
- <action function="set">tw_back=advanced</action>
- <action function="set">tw_action=reinjecttwrp</action>
- <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
- <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
- <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
- <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
- <action function="page">confirm_action</action>
- </actions>
+ <page name="advanced2">
+ <template name="page"/>
+
+ <template name="statusbar"/>
+
+ <text style="text_m">
+ <placement x="%col1_x_left%" y="%row1_header_y%"/>
+ <text>{@advanced_hdr=Advanced}</text>
+ </text>
+
+ <listbox style="advanced_listbox">
+ <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
+ <listitem name="{@reload_theme_btn=Reload Theme}">
+ <action function="reload"/>
+ </listitem>
+ <listitem name="{@part_sd_btn=Partition SD Card}">
+ <condition var1="tw_allow_partition_sdcard" var2="1"/>
+ <actions>
+ <action function="set">partitionlisterror=0</action>
+ <action function="page">partsdcardsel</action>
+ </actions>
+ </listitem>
+ <listitem name="{@dumlock_btn=HTC Dumlock}">
+ <condition var1="tw_show_dumlock" var2="1"/>
+ <action function="page">htcdumlock</action>
+ </listitem>
+ <listitem name="{@inject_twrp_btn=Inject TWRP}">
+ <condition var1="tw_has_injecttwrp" var2="1"/>
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=reinjecttwrp</action>
+ <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
+ <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
+ <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
+ <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
+ <action function="page">confirm_action</action>
+ </actions>
+ </listitem>
+ </listbox>
+
+ <button>
+ <placement x="%col1_x_left%" y="%row11_y%"/>
+ <highlight color="%highlight_color%"/>
+ <image resource="q_btn_arrow_left"/>
+ <action function="page">advanced</action>
</button>
<action>