Merge "change libtar to fork instead of pthread" into twrp2.4
diff --git a/gui/button.cpp b/gui/button.cpp
index b9d1b52..a4c5ecb 100644
--- a/gui/button.cpp
+++ b/gui/button.cpp
@@ -37,6 +37,8 @@
mButtonLabel = NULL;
mAction = NULL;
mRendered = false;
+ hasHighlightColor = false;
+ renderHighlight = false;
if (!node) return;
@@ -66,6 +68,17 @@
mButtonIcon = PageManager::FindResource(attr->value());
}
+ memset(&mHighlightColor, 0, sizeof(COLOR));
+ child = node->first_node("highlight");
+ if (child) {
+ attr = child->first_attribute("color");
+ if (attr) {
+ hasHighlightColor = true;
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mHighlightColor);
+ }
+ }
+
int x, y, w, h;
if (mButtonImg) mButtonImg->GetRenderPos(x, y, w, h);
SetRenderPos(x, y, w, h);
@@ -96,6 +109,10 @@
gr_blit(mButtonIcon->GetResource(), 0, 0, mIconW, mIconH, mIconX, mIconY);
if (mButtonLabel) ret = mButtonLabel->Render();
if (ret < 0) return ret;
+ if (renderHighlight && hasHighlightColor) {
+ gr_color(mHighlightColor.red, mHighlightColor.green, mHighlightColor.blue, mHighlightColor.alpha);
+ gr_fill(mRenderX, mRenderY, mRenderW, mRenderH);
+ }
mRendered = true;
return ret;
}
@@ -198,6 +215,7 @@
mButtonLabel->isHighlighted = false;
if (mButtonImg != NULL)
mButtonImg->isHighlighted = false;
+ renderHighlight = false;
mRendered = false;
}
} else {
@@ -207,6 +225,7 @@
mButtonLabel->isHighlighted = true;
if (mButtonImg != NULL)
mButtonImg->isHighlighted = true;
+ renderHighlight = true;
mRendered = false;
}
}
diff --git a/gui/devices/1024x600/res/ui.xml b/gui/devices/1024x600/res/ui.xml
index be6750f..9d66a90 100755
--- a/gui/devices/1024x600/res/ui.xml
+++ b/gui/devices/1024x600/res/ui.xml
@@ -104,6 +104,7 @@
<variable name="text_color" value="#A0A0A0" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="slider_x" value="307" />
<variable name="slider_y" value="470" />
<variable name="slider_text_y" value="520" />
@@ -149,6 +150,8 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="2" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="18" />
<variable name="zipstorage_text_y" value="88" />
<variable name="listbox_x" value="269" />
@@ -364,7 +367,7 @@
<object type="keyboard">
<placement x="0" y="341" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="65" width="92" />
<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" key11="104:c:8" />
@@ -411,6 +414,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -422,6 +426,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -430,6 +435,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -438,6 +444,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -446,6 +453,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -454,6 +462,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -462,6 +471,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -470,6 +480,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -538,6 +549,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -545,13 +557,14 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_zip_location" default="/sdcard" />
<data name="select" />
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -559,7 +572,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="0" files="1" />
<path name="tw_zip_location" />
<data name="tw_filename" />
@@ -651,6 +664,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col2_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -660,6 +674,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Queue</text>
@@ -743,6 +758,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe Cache/Dalvik</text>
@@ -763,6 +779,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -786,6 +803,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -839,6 +857,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -922,6 +941,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -981,6 +1001,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -993,6 +1014,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1082,6 +1104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1102,6 +1125,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1122,6 +1146,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1142,6 +1167,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1162,6 +1188,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1267,6 +1294,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row10_text_y%" />
<font resource="font" color="%text_color%" />
<conditions>
@@ -1438,6 +1466,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -1474,6 +1503,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1491,6 +1521,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1508,6 +1539,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1526,6 +1558,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1544,6 +1577,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1565,6 +1599,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1586,6 +1621,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1613,6 +1649,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1631,6 +1668,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1849,6 +1887,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1857,6 +1896,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1924,6 +1964,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel / Clear</text>
@@ -2037,12 +2078,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" nav="0" />
@@ -2062,6 +2104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2191,6 +2234,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -2203,6 +2247,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -2286,6 +2331,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2411,6 +2457,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2419,6 +2466,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2449,10 +2497,14 @@
</object>
<object type="listbox">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%listbox_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2495,6 +2547,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>0</text>
@@ -2503,6 +2556,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2511,6 +2565,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2519,6 +2574,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2527,6 +2583,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2563,6 +2620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2579,6 +2637,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2596,6 +2655,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2604,6 +2664,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2612,6 +2673,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2621,6 +2683,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2629,6 +2692,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2637,6 +2701,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2668,6 +2733,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2676,6 +2742,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2690,6 +2757,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2698,6 +2766,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2718,6 +2787,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2726,6 +2796,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col3_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2792,6 +2863,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2809,6 +2881,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2826,6 +2899,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2887,6 +2961,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -2894,7 +2969,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location1" default="/sdcard" />
<data name="select" />
@@ -2902,6 +2977,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2909,7 +2985,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="0" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2943,6 +3019,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -2974,6 +3051,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2987,6 +3065,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3000,6 +3079,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -3012,6 +3092,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3028,6 +3109,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3043,6 +3125,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3059,6 +3142,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3073,6 +3157,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3109,12 +3194,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" />
@@ -3135,6 +3221,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3178,6 +3265,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3227,6 +3315,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3275,6 +3364,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3436,6 +3526,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3501,6 +3592,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3508,7 +3600,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3528,6 +3620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3568,6 +3661,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3577,6 +3671,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%home_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -3586,6 +3681,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%back_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
diff --git a/gui/devices/1024x768/res/ui.xml b/gui/devices/1024x768/res/ui.xml
index 93e7b1f..cf74e0a 100644
--- a/gui/devices/1024x768/res/ui.xml
+++ b/gui/devices/1024x768/res/ui.xml
@@ -104,6 +104,7 @@
<variable name="text_color" value="#A0A0A0" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="slider_x" value="307" />
<variable name="slider_y" value="600" />
<variable name="slider_text_y" value="650" />
@@ -149,6 +150,8 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="2" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="18" />
<variable name="zipstorage_text_y" value="88" />
<variable name="listbox_x" value="269" />
@@ -364,7 +367,7 @@
<object type="keyboard">
<placement x="0" y="408" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="90" width="85" />
<row1 key01="80:" key02="q" long02="1" key03="w" long03="2" key04="e" long04="3" key05="r" long05="4" key06="t" long06="5" key07="y" long07="6" key08="u" long08="7" key09="i" long09="8" key10="o" long10="9" key11="p" long11="0" key12="94:c:8" />
@@ -411,6 +414,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -422,6 +426,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -430,6 +435,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -438,6 +444,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -446,6 +453,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -454,6 +462,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -462,6 +471,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -470,6 +480,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -538,6 +549,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -545,13 +557,14 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_zip_location" default="/sdcard" />
<data name="select" />
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -559,7 +572,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="0" files="1" />
<path name="tw_zip_location" />
<data name="tw_filename" />
@@ -651,6 +664,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col2_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -660,6 +674,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Queue</text>
@@ -743,6 +758,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe Cache/Dalvik</text>
@@ -763,6 +779,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -786,6 +803,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -839,6 +857,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -922,6 +941,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -981,6 +1001,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -993,6 +1014,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1082,6 +1104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1102,6 +1125,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1122,6 +1146,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1142,6 +1167,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1162,6 +1188,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1267,6 +1294,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row10_text_y%" />
<font resource="font" color="%text_color%" />
<conditions>
@@ -1438,6 +1466,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -1474,6 +1503,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1491,6 +1521,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1508,6 +1539,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1526,6 +1558,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1544,6 +1577,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1565,6 +1599,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1586,6 +1621,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1613,6 +1649,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1631,6 +1668,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1849,6 +1887,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1857,6 +1896,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1924,6 +1964,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel / Clear</text>
@@ -2037,12 +2078,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" nav="0" />
@@ -2062,6 +2104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2191,6 +2234,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -2203,6 +2247,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -2286,6 +2331,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2411,6 +2457,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2419,6 +2466,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2449,10 +2497,14 @@
</object>
<object type="listbox">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%listbox_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2495,6 +2547,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>0</text>
@@ -2503,6 +2556,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2511,6 +2565,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2519,6 +2574,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2527,6 +2583,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2563,6 +2620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2579,6 +2637,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2596,6 +2655,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2604,6 +2664,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2612,6 +2673,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2621,6 +2683,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2629,6 +2692,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2637,6 +2701,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2668,6 +2733,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2676,6 +2742,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2690,6 +2757,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2698,6 +2766,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2718,6 +2787,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2726,6 +2796,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col3_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2792,6 +2863,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2809,6 +2881,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2826,6 +2899,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2887,6 +2961,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -2894,7 +2969,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location1" default="/sdcard" />
<data name="select" />
@@ -2902,6 +2977,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2909,7 +2985,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="0" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2943,6 +3019,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -2974,6 +3051,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2987,6 +3065,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3000,6 +3079,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -3012,6 +3092,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3028,6 +3109,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3043,6 +3125,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3059,6 +3142,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3073,6 +3157,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3109,12 +3194,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" />
@@ -3135,6 +3221,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3178,6 +3265,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3227,6 +3315,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3275,6 +3364,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3436,6 +3526,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3501,6 +3592,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3508,7 +3600,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3528,6 +3620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3568,6 +3661,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3577,6 +3671,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%home_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -3586,6 +3681,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%back_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
diff --git a/gui/devices/1280x800/res/ui.xml b/gui/devices/1280x800/res/ui.xml
index 66d955a..8e96c7b 100644
--- a/gui/devices/1280x800/res/ui.xml
+++ b/gui/devices/1280x800/res/ui.xml
@@ -104,6 +104,7 @@
<variable name="text_color" value="#A0A0A0" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="slider_x" value="435" />
<variable name="slider_y" value="600" />
<variable name="slider_text_y" value="650" />
@@ -149,6 +150,8 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="2" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="18" />
<variable name="zipstorage_text_y" value="88" />
<variable name="listbox_x" value="397" />
@@ -364,7 +367,7 @@
<object type="keyboard">
<placement x="0" y="438" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="91" width="106" />
<row1 key01="102:" key02="q" long02="1" key03="w" long03="2" key04="e" long04="3" key05="r" long05="4" key06="t" long06="5" key07="y" long07="6" key08="u" long08="7" key09="i" long09="8" key10="o" long10="9" key11="p" long11="0" key12="118:c:8" />
@@ -411,6 +414,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -422,6 +426,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -430,6 +435,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -438,6 +444,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -446,6 +453,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -454,6 +462,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -462,6 +471,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -470,6 +480,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -538,6 +549,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -545,13 +557,14 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_zip_location" default="/sdcard" />
<data name="select" />
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -559,7 +572,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="0" files="1" />
<path name="tw_zip_location" />
<data name="tw_filename" />
@@ -651,6 +664,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col2_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -660,6 +674,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Queue</text>
@@ -743,6 +758,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe Cache/Dalvik</text>
@@ -763,6 +779,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -786,6 +803,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -839,6 +857,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -922,6 +941,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -981,6 +1001,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -993,6 +1014,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1082,6 +1104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1102,6 +1125,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1122,6 +1146,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1142,6 +1167,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1162,6 +1188,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1267,6 +1294,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row10_text_y%" />
<font resource="font" color="%text_color%" />
<conditions>
@@ -1438,6 +1466,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -1474,6 +1503,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1491,6 +1521,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1508,6 +1539,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1526,6 +1558,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1544,6 +1577,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1565,6 +1599,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1586,6 +1621,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1613,6 +1649,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1631,6 +1668,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1849,6 +1887,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1857,6 +1896,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1924,6 +1964,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel / Clear</text>
@@ -2037,12 +2078,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" nav="0" />
@@ -2062,6 +2104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2191,6 +2234,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -2203,6 +2247,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -2286,6 +2331,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2411,6 +2457,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2419,6 +2466,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2449,10 +2497,14 @@
</object>
<object type="listbox">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%listbox_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2495,6 +2547,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>0</text>
@@ -2503,6 +2556,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2511,6 +2565,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2519,6 +2574,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2527,6 +2583,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2563,6 +2620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2579,6 +2637,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2596,6 +2655,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2604,6 +2664,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2612,6 +2673,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2621,6 +2683,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2629,6 +2692,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2637,6 +2701,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2668,6 +2733,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2676,6 +2742,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2690,6 +2757,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2698,6 +2766,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2718,6 +2787,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2726,6 +2796,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col3_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2792,6 +2863,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2809,6 +2881,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2826,6 +2899,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2887,6 +2961,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -2894,7 +2969,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location1" default="/sdcard" />
<data name="select" />
@@ -2902,6 +2977,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2909,7 +2985,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="0" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2943,6 +3019,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -2974,6 +3051,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2987,6 +3065,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3000,6 +3079,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -3012,6 +3092,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3028,6 +3109,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3043,6 +3125,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3059,6 +3142,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3073,6 +3157,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3109,12 +3194,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" />
@@ -3135,6 +3221,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3178,6 +3265,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3227,6 +3315,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3275,6 +3364,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3436,6 +3526,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3501,6 +3592,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3508,7 +3600,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3528,6 +3620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3568,6 +3661,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3577,6 +3671,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%home_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -3586,6 +3681,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%back_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
diff --git a/gui/devices/1920x1200/res/ui.xml b/gui/devices/1920x1200/res/ui.xml
index 9b9befd..cbe6353 100644
--- a/gui/devices/1920x1200/res/ui.xml
+++ b/gui/devices/1920x1200/res/ui.xml
@@ -104,6 +104,7 @@
<variable name="text_color" value="#A0A0A0" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="slider_x" value="630" />
<variable name="slider_y" value="1000" />
<variable name="slider_text_y" value="1075" />
@@ -149,6 +150,8 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="2" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="18" />
<variable name="zipstorage_text_y" value="130" />
<variable name="listbox_x" value="560" />
@@ -364,7 +367,7 @@
<object type="keyboard">
<placement x="0" y="684" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="129" width="159" />
<row1 key01="153:" key02="q" long02="1" key03="w" long03="2" key04="e" long04="3" key05="r" long05="4" key06="t" long06="5" key07="y" long07="6" key08="u" long08="7" key09="i" long09="8" key10="o" long10="9" key11="p" long11="0" key12="177:c:8" />
@@ -411,6 +414,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -422,6 +426,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -430,6 +435,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -438,6 +444,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -446,6 +453,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -454,6 +462,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -462,6 +471,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -470,6 +480,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -538,6 +549,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -545,13 +557,14 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_zip_location" default="/sdcard" />
<data name="select" />
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -559,7 +572,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="0" files="1" />
<path name="tw_zip_location" />
<data name="tw_filename" />
@@ -651,6 +664,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col2_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -660,6 +674,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Queue</text>
@@ -743,6 +758,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe Cache/Dalvik</text>
@@ -763,6 +779,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -786,6 +803,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -839,6 +857,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -922,6 +941,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -981,6 +1001,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -993,6 +1014,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1082,6 +1104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1102,6 +1125,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1122,6 +1146,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1142,6 +1167,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1162,6 +1188,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1267,6 +1294,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row10_text_y%" />
<font resource="font" color="%text_color%" />
<conditions>
@@ -1438,6 +1466,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -1474,6 +1503,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1491,6 +1521,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1508,6 +1539,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1526,6 +1558,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1544,6 +1577,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1565,6 +1599,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1586,6 +1621,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1613,6 +1649,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1631,6 +1668,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1849,6 +1887,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1857,6 +1896,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1924,6 +1964,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel / Clear</text>
@@ -2037,12 +2078,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" nav="0" />
@@ -2062,6 +2104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2191,6 +2234,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -2203,6 +2247,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -2286,6 +2331,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2411,6 +2457,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2419,6 +2466,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2449,10 +2497,14 @@
</object>
<object type="listbox">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%listbox_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2495,6 +2547,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>0</text>
@@ -2503,6 +2556,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2511,6 +2565,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2519,6 +2574,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2527,6 +2583,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2563,6 +2620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2579,6 +2637,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2596,6 +2655,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2604,6 +2664,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2612,6 +2673,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2621,6 +2683,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2629,6 +2692,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2637,6 +2701,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2668,6 +2733,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2676,6 +2742,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2690,6 +2757,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2698,6 +2766,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2718,6 +2787,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2726,6 +2796,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col3_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2792,6 +2863,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2809,6 +2881,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2826,6 +2899,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2887,6 +2961,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -2894,7 +2969,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location1" default="/sdcard" />
<data name="select" />
@@ -2902,6 +2977,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2909,7 +2985,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="0" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2943,6 +3019,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -2974,6 +3051,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2987,6 +3065,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3000,6 +3079,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -3012,6 +3092,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3028,6 +3109,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3043,6 +3125,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3059,6 +3142,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3073,6 +3157,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3109,12 +3194,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" />
@@ -3135,6 +3221,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3178,6 +3265,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3227,6 +3315,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3275,6 +3364,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3436,6 +3526,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3501,6 +3592,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3508,7 +3600,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3528,6 +3620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3568,6 +3661,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3577,6 +3671,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%home_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -3586,6 +3681,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%back_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
diff --git a/gui/devices/2560x1600/res/ui.xml b/gui/devices/2560x1600/res/ui.xml
index f53d720..834aa2a 100644
--- a/gui/devices/2560x1600/res/ui.xml
+++ b/gui/devices/2560x1600/res/ui.xml
@@ -104,6 +104,7 @@
<variable name="text_color" value="#A0A0A0" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="slider_x" value="841" />
<variable name="slider_y" value="1335" />
<variable name="slider_text_y" value="1435" />
@@ -149,6 +150,8 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="2" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="18" />
<variable name="zipstorage_text_y" value="190" />
<variable name="listbox_x" value="680" />
@@ -364,7 +367,7 @@
<object type="keyboard">
<placement x="0" y="912" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="172" width="212" />
<row1 key01="204:" key02="q" long02="1" key03="w" long03="2" key04="e" long04="3" key05="r" long05="4" key06="t" long06="5" key07="y" long07="6" key08="u" long08="7" key09="i" long09="8" key10="o" long10="9" key11="p" long11="0" key12="236:c:8" />
@@ -411,6 +414,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -422,6 +426,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -430,6 +435,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -438,6 +444,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -446,6 +453,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -454,6 +462,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -462,6 +471,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -470,6 +480,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -538,6 +549,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -545,13 +557,14 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_zip_location" default="/sdcard" />
<data name="select" />
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -559,7 +572,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="0" files="1" />
<path name="tw_zip_location" />
<data name="tw_filename" />
@@ -651,6 +664,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col2_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -660,6 +674,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Queue</text>
@@ -743,6 +758,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe Cache/Dalvik</text>
@@ -763,6 +779,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -786,6 +803,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -839,6 +857,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -922,6 +941,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -981,6 +1001,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -993,6 +1014,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1082,6 +1104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1102,6 +1125,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1122,6 +1146,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1142,6 +1167,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1162,6 +1188,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1267,6 +1294,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row10_text_y%" />
<font resource="font" color="%text_color%" />
<conditions>
@@ -1438,6 +1466,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -1474,6 +1503,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1491,6 +1521,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1508,6 +1539,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1526,6 +1558,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1544,6 +1577,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1565,6 +1599,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1586,6 +1621,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1613,6 +1649,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1631,6 +1668,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1849,6 +1887,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1857,6 +1896,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1924,6 +1964,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel / Clear</text>
@@ -2037,12 +2078,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" nav="0" />
@@ -2062,6 +2104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2191,6 +2234,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -2203,6 +2247,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -2286,6 +2331,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2411,6 +2457,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2419,6 +2466,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2449,10 +2497,14 @@
</object>
<object type="listbox">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%listbox_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2495,6 +2547,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>0</text>
@@ -2503,6 +2556,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2511,6 +2565,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2519,6 +2574,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2527,6 +2583,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2563,6 +2620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2579,6 +2637,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2596,6 +2655,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2604,6 +2664,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2612,6 +2673,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2621,6 +2683,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2629,6 +2692,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2637,6 +2701,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2668,6 +2733,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2676,6 +2742,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2690,6 +2757,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2698,6 +2766,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2718,6 +2787,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2726,6 +2796,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col3_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2792,6 +2863,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2809,6 +2881,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2826,6 +2899,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2887,6 +2961,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -2894,7 +2969,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location1" default="/sdcard" />
<data name="select" />
@@ -2902,6 +2977,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2909,7 +2985,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="0" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2943,6 +3019,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -2974,6 +3051,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2987,6 +3065,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3000,6 +3079,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -3012,6 +3092,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3028,6 +3109,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3043,6 +3125,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3059,6 +3142,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3073,6 +3157,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3109,12 +3194,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" />
@@ -3135,6 +3221,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3178,6 +3265,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3227,6 +3315,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3275,6 +3364,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3436,6 +3526,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3501,6 +3592,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3508,7 +3600,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3528,6 +3620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3568,6 +3661,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3577,6 +3671,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%home_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -3586,6 +3681,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%back_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
diff --git a/gui/devices/320x480/res/ui.xml b/gui/devices/320x480/res/ui.xml
index 88b3663..c8ff2fb 100644
--- a/gui/devices/320x480/res/ui.xml
+++ b/gui/devices/320x480/res/ui.xml
@@ -96,6 +96,7 @@
<variable name="text_color" value="#FFFFFF" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="home_button_x" value="7" />
<variable name="home_button_y" value="460" />
<variable name="back_button_x" value="275" />
@@ -131,10 +132,12 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="1" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="12" />
<variable name="listbox_x" value="3" />
<variable name="listbox_width" value="313" />
- <variable name="listbox_tz_height" value="168" />
+ <variable name="listbox_tz_height" value="189" />
<variable name="listbox_background" value="#303030" />
<variable name="listbox_spacing" value="12" />
<variable name="sd_plus_x" value="187" />
@@ -321,7 +324,7 @@
<object type="keyboard">
<placement x="0" y="253" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="52" 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" />
@@ -368,6 +371,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -379,6 +383,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -387,6 +392,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -395,6 +401,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -403,6 +410,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -411,6 +419,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -420,6 +429,7 @@
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -428,6 +438,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -496,6 +507,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row2_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -503,7 +515,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="1" files="1" />
<path name="tw_zip_location" default="/sdcard" />
<data name="tw_filename" />
@@ -622,6 +634,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col1_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
@@ -631,6 +644,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Zip Queue</text>
@@ -702,6 +716,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe cache/dalvik</text>
@@ -722,6 +737,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot System</text>
@@ -744,6 +760,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -811,6 +828,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -894,6 +912,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col_center_medium_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -953,6 +972,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -965,6 +985,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1054,6 +1075,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1071,6 +1093,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1088,6 +1111,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1106,6 +1130,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1124,6 +1149,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1145,6 +1171,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1166,6 +1193,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1193,6 +1221,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1211,6 +1240,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1269,6 +1299,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1277,6 +1308,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%backup_name_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1503,6 +1535,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -1614,6 +1647,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
@@ -1621,7 +1655,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" nav="0" />
<path name="tw_backups_folder" />
<data name="tw_restore" default="" />
@@ -1661,6 +1695,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -1673,6 +1708,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -1851,6 +1887,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2052,7 +2089,6 @@
<condition var1="tw_boot_is_mountable" var2="1" />
<condition var1="mounted" op="=" var2="/boot" />
</conditions>
-
<placement x="%col1_x%" y="%row6_text_y%" />
<font resource="font" color="#A0A0A0" />
<text>Unmount Boot</text>
@@ -2109,6 +2145,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_usb_storage" var2="1" />
<placement x="%col1_x%" y="row3_y" />
<font resource="font" color="%button_text_color%" />
@@ -2118,6 +2155,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2164,6 +2202,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -2198,6 +2237,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2218,6 +2258,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2238,6 +2279,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2258,6 +2300,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2278,6 +2321,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2385,6 +2429,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2393,6 +2438,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2416,17 +2462,15 @@
<page name="timezone">
<object type="template" name="header" />
- <object type="text" color="%text_color%">
- <font resource="font" />
- <placement x="%center_x%" y="%row1_header_y%" placement="5" />
- <text>Select Time Zone</text>
- </object>
-
<object type="listbox">
- <placement x="%listbox_x%" y="%row1_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <highlight color="%fileselector_highlight_color%" />
+ <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2469,6 +2513,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>None</text>
@@ -2477,6 +2522,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2485,6 +2531,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2493,6 +2540,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2501,6 +2549,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%tz_set_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2537,6 +2586,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2553,6 +2603,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2570,6 +2621,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2579,6 +2631,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2587,6 +2640,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2595,6 +2649,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2603,6 +2658,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2611,6 +2667,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2620,6 +2677,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_injecttwrp" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2659,6 +2717,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2667,6 +2726,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2681,6 +2741,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2689,6 +2750,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2709,6 +2771,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2717,6 +2780,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col2_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2783,6 +2847,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2800,6 +2865,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2817,6 +2883,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2877,6 +2944,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2884,7 +2952,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<folders="1" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2918,6 +2986,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -2949,6 +3018,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2962,6 +3032,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2975,6 +3046,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -2987,6 +3059,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3003,6 +3076,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3018,6 +3092,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3034,6 +3109,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3048,6 +3124,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3084,6 +3161,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
@@ -3091,7 +3169,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location2" default="/" />
<data name="tw_filename2" />
@@ -3111,6 +3189,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3154,6 +3233,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3203,6 +3283,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3251,6 +3332,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3413,6 +3495,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3478,6 +3561,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3485,7 +3569,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3505,6 +3589,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3545,6 +3630,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
diff --git a/gui/devices/480x800/res/ui.xml b/gui/devices/480x800/res/ui.xml
index 98e4e15..718921d 100644
--- a/gui/devices/480x800/res/ui.xml
+++ b/gui/devices/480x800/res/ui.xml
@@ -96,6 +96,7 @@
<variable name="text_color" value="#FFFFFF" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="home_button_x" value="10" />
<variable name="home_button_y" value="766" />
<variable name="back_button_x" value="413" />
@@ -130,10 +131,12 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="2" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="18" />
<variable name="listbox_x" value="5" />
<variable name="listbox_width" value="470" />
- <variable name="listbox_tz_height" value="280" />
+ <variable name="listbox_tz_height" value="310" />
<variable name="listbox_background" value="#303030" />
<variable name="listbox_spacing" value="18" />
<variable name="sd_plus_x" value="280" />
@@ -320,7 +323,7 @@
<object type="keyboard">
<placement x="0" y="450" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="78" 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" />
@@ -367,6 +370,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -378,6 +382,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -386,6 +391,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -394,6 +400,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -402,6 +409,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -410,6 +418,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -419,6 +428,7 @@
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -427,6 +437,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -495,6 +506,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row2_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -502,7 +514,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="1" files="1" />
<path name="tw_zip_location" default="/sdcard" />
<data name="tw_filename" />
@@ -621,6 +633,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col1_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
@@ -630,6 +643,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Zip Queue</text>
@@ -701,6 +715,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe cache/dalvik</text>
@@ -721,6 +736,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot System</text>
@@ -743,6 +759,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -810,6 +827,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -893,6 +911,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col_center_medium_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -952,6 +971,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -964,6 +984,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1053,6 +1074,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1070,6 +1092,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1087,6 +1110,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1105,6 +1129,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1123,6 +1148,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1144,6 +1170,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1165,6 +1192,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1192,6 +1220,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1210,6 +1239,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1268,6 +1298,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1276,6 +1307,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%backup_name_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1502,6 +1534,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -1613,6 +1646,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
@@ -1620,7 +1654,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" nav="0" />
<path name="tw_backups_folder" />
<data name="tw_restore" default="" />
@@ -1660,6 +1694,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -1672,6 +1707,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -1850,6 +1886,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2051,7 +2088,6 @@
<condition var1="tw_boot_is_mountable" var2="1" />
<condition var1="mounted" op="=" var2="/boot" />
</conditions>
-
<placement x="%col1_x%" y="%row6_text_y%" />
<font resource="font" color="#A0A0A0" />
<text>Unmount Boot</text>
@@ -2108,6 +2144,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_usb_storage" var2="1" />
<placement x="%col1_x%" y="row3_y" />
<font resource="font" color="%button_text_color%" />
@@ -2117,6 +2154,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2163,6 +2201,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -2197,6 +2236,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2217,6 +2257,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2237,6 +2278,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2257,6 +2299,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2277,6 +2320,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2384,6 +2428,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2392,6 +2437,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2415,17 +2461,15 @@
<page name="timezone">
<object type="template" name="header" />
- <object type="text" color="%text_color%">
- <font resource="font" />
- <placement x="%center_x%" y="%row1_header_y%" placement="5" />
- <text>Select Time Zone</text>
- </object>
-
<object type="listbox">
- <placement x="%listbox_x%" y="%row1_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <highlight color="%fileselector_highlight_color%" />
+ <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2468,6 +2512,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>None</text>
@@ -2476,6 +2521,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2484,6 +2530,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2492,6 +2539,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2500,6 +2548,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%tz_set_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2536,6 +2585,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2552,6 +2602,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2569,6 +2620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2578,6 +2630,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2586,6 +2639,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2594,6 +2648,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2602,6 +2657,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2610,6 +2666,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2619,6 +2676,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_injecttwrp" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2658,6 +2716,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2666,6 +2725,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2680,6 +2740,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2688,6 +2749,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2708,6 +2770,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2716,6 +2779,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col2_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2782,6 +2846,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2799,6 +2864,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2816,6 +2882,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2876,6 +2943,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2883,7 +2951,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<folders="1" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2917,6 +2985,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -2948,6 +3017,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2961,6 +3031,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2974,6 +3045,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -2986,6 +3058,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3002,6 +3075,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3017,6 +3091,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3033,6 +3108,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3047,6 +3123,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3083,6 +3160,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
@@ -3090,7 +3168,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location2" default="/" />
<data name="tw_filename2" />
@@ -3110,6 +3188,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3153,6 +3232,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3202,6 +3282,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3250,6 +3331,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3412,6 +3494,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3477,6 +3560,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3484,7 +3568,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3504,6 +3588,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3544,6 +3629,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
diff --git a/gui/devices/480x854/res/ui.xml b/gui/devices/480x854/res/ui.xml
index 964d9de..b8bd53f 100644
--- a/gui/devices/480x854/res/ui.xml
+++ b/gui/devices/480x854/res/ui.xml
@@ -95,6 +95,7 @@
<variable name="text_color" value="#FFFFFF" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="home_button_x" value="10" />
<variable name="home_button_y" value="820" />
<variable name="back_button_x" value="413" />
@@ -129,10 +130,12 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="2" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="18" />
<variable name="listbox_x" value="5" />
<variable name="listbox_width" value="470" />
- <variable name="listbox_tz_height" value="280" />
+ <variable name="listbox_tz_height" value="310" />
<variable name="listbox_background" value="#303030" />
<variable name="listbox_spacing" value="18" />
<variable name="sd_plus_x" value="280" />
@@ -319,7 +322,7 @@
<object type="keyboard">
<placement x="0" y="504" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="78" 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" />
@@ -366,6 +369,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -377,6 +381,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -385,6 +390,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -393,6 +399,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -401,6 +408,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -409,6 +417,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -418,6 +427,7 @@
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -426,6 +436,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -494,6 +505,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row2_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -501,7 +513,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="1" files="1" />
<path name="tw_zip_location" default="/sdcard" />
<data name="tw_filename" />
@@ -620,6 +632,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col1_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
@@ -629,6 +642,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Zip Queue</text>
@@ -700,6 +714,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe cache/dalvik</text>
@@ -720,6 +735,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot System</text>
@@ -742,6 +758,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -809,6 +826,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -892,6 +910,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col_center_medium_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -951,6 +970,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -963,6 +983,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1052,6 +1073,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1069,6 +1091,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1086,6 +1109,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1104,6 +1128,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1122,6 +1147,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1143,6 +1169,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1164,6 +1191,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1191,6 +1219,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1209,6 +1238,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1267,6 +1297,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1275,6 +1306,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%backup_name_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1501,6 +1533,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -1612,6 +1645,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
@@ -1619,7 +1653,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" nav="0" />
<path name="tw_backups_folder" />
<data name="tw_restore" default="" />
@@ -1659,6 +1693,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -1671,6 +1706,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -1849,6 +1885,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2050,7 +2087,6 @@
<condition var1="tw_boot_is_mountable" var2="1" />
<condition var1="mounted" op="=" var2="/boot" />
</conditions>
-
<placement x="%col1_x%" y="%row6_text_y%" />
<font resource="font" color="#A0A0A0" />
<text>Unmount Boot</text>
@@ -2107,6 +2143,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_usb_storage" var2="1" />
<placement x="%col1_x%" y="row3_y" />
<font resource="font" color="%button_text_color%" />
@@ -2116,6 +2153,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2162,6 +2200,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -2196,6 +2235,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2216,6 +2256,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2236,6 +2277,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2256,6 +2298,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2276,6 +2319,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2383,6 +2427,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2391,6 +2436,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2414,17 +2460,15 @@
<page name="timezone">
<object type="template" name="header" />
- <object type="text" color="%text_color%">
- <font resource="font" />
- <placement x="%center_x%" y="%row1_header_y%" placement="5" />
- <text>Select Time Zone</text>
- </object>
-
<object type="listbox">
- <placement x="%listbox_x%" y="%row1_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <highlight color="%fileselector_highlight_color%" />
+ <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2467,6 +2511,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>None</text>
@@ -2475,6 +2520,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2483,6 +2529,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2491,6 +2538,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2499,6 +2547,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%tz_set_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2535,6 +2584,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2551,6 +2601,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2568,6 +2619,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2577,6 +2629,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2585,6 +2638,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2593,6 +2647,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2601,6 +2656,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2609,6 +2665,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2618,6 +2675,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_injecttwrp" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2657,6 +2715,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2665,6 +2724,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2679,6 +2739,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2687,6 +2748,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2707,6 +2769,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2715,6 +2778,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col2_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2781,6 +2845,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2798,6 +2863,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2815,6 +2881,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2875,6 +2942,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2882,7 +2950,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<folders="1" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2916,6 +2984,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -2947,6 +3016,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2960,6 +3030,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2973,6 +3044,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -2985,6 +3057,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3001,6 +3074,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3016,6 +3090,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3032,6 +3107,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3046,6 +3122,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3082,6 +3159,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
@@ -3089,7 +3167,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location2" default="/" />
<data name="tw_filename2" />
@@ -3109,6 +3187,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3152,6 +3231,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3201,6 +3281,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3249,6 +3330,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3411,6 +3493,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3476,6 +3559,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3483,7 +3567,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3503,6 +3587,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3543,6 +3628,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
diff --git a/gui/devices/540x960/res/ui.xml b/gui/devices/540x960/res/ui.xml
index 1ff4821..01e7f7a 100644
--- a/gui/devices/540x960/res/ui.xml
+++ b/gui/devices/540x960/res/ui.xml
@@ -96,6 +96,7 @@
<variable name="text_color" value="#FFFFFF" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="home_button_x" value="10" />
<variable name="home_button_y" value="919" />
<variable name="back_button_x" value="466" />
@@ -130,10 +131,12 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="2" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="18" />
<variable name="listbox_x" value="5" />
<variable name="listbox_width" value="530" />
- <variable name="listbox_tz_height" value="390" />
+ <variable name="listbox_tz_height" value="420" />
<variable name="listbox_background" value="#303030" />
<variable name="listbox_spacing" value="18" />
<variable name="sd_plus_x" value="280" />
@@ -320,7 +323,7 @@
<object type="keyboard">
<placement x="0" y="600" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="78" width="54" />
<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" />
@@ -367,6 +370,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -378,6 +382,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -386,6 +391,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -394,6 +400,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -402,6 +409,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -410,6 +418,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -419,6 +428,7 @@
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -427,6 +437,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -495,6 +506,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row2_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -502,7 +514,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="1" files="1" />
<path name="tw_zip_location" default="/sdcard" />
<data name="tw_filename" />
@@ -621,6 +633,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col1_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
@@ -630,6 +643,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Zip Queue</text>
@@ -701,6 +715,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe cache/dalvik</text>
@@ -721,6 +736,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot System</text>
@@ -743,6 +759,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -810,6 +827,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -893,6 +911,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col_center_medium_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -952,6 +971,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -964,6 +984,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1053,6 +1074,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1070,6 +1092,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1087,6 +1110,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1105,6 +1129,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1123,6 +1148,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1144,6 +1170,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1165,6 +1192,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1192,6 +1220,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1210,6 +1239,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1268,6 +1298,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1276,6 +1307,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%backup_name_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1502,6 +1534,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -1613,6 +1646,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
@@ -1620,7 +1654,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" nav="0" />
<path name="tw_backups_folder" />
<data name="tw_restore" default="" />
@@ -1660,6 +1694,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -1672,6 +1707,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -1850,6 +1886,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2051,7 +2088,6 @@
<condition var1="tw_boot_is_mountable" var2="1" />
<condition var1="mounted" op="=" var2="/boot" />
</conditions>
-
<placement x="%col1_x%" y="%row6_text_y%" />
<font resource="font" color="#A0A0A0" />
<text>Unmount Boot</text>
@@ -2108,6 +2144,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_usb_storage" var2="1" />
<placement x="%col1_x%" y="row3_y" />
<font resource="font" color="%button_text_color%" />
@@ -2117,6 +2154,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2163,6 +2201,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -2197,6 +2236,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2217,6 +2257,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2237,6 +2278,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2257,6 +2299,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2277,6 +2320,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2384,6 +2428,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2392,6 +2437,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2415,17 +2461,15 @@
<page name="timezone">
<object type="template" name="header" />
- <object type="text" color="%text_color%">
- <font resource="font" />
- <placement x="%center_x%" y="%row1_header_y%" placement="5" />
- <text>Select Time Zone</text>
- </object>
-
<object type="listbox">
- <placement x="%listbox_x%" y="%row1_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <highlight color="%fileselector_highlight_color%" />
+ <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2468,6 +2512,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>None</text>
@@ -2476,6 +2521,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2484,6 +2530,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2492,6 +2539,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2500,6 +2548,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%tz_set_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2536,6 +2585,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2552,6 +2602,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2569,6 +2620,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2578,6 +2630,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2586,6 +2639,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2594,6 +2648,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2602,6 +2657,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2610,6 +2666,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2619,6 +2676,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_injecttwrp" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2658,6 +2716,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2666,6 +2725,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2680,6 +2740,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2688,6 +2749,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2708,6 +2770,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2716,6 +2779,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col2_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2782,6 +2846,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2799,6 +2864,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2816,6 +2882,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2876,6 +2943,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2883,7 +2951,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<folders="1" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2917,6 +2985,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -2948,6 +3017,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2961,6 +3031,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2974,6 +3045,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -2986,6 +3058,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3002,6 +3075,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3017,6 +3091,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3033,6 +3108,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3047,6 +3123,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3083,6 +3160,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
@@ -3090,7 +3168,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location2" default="/" />
<data name="tw_filename2" />
@@ -3110,6 +3188,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3153,6 +3232,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3202,6 +3282,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3250,6 +3331,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3412,6 +3494,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3477,6 +3560,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3484,7 +3568,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3504,6 +3588,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3544,6 +3629,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
diff --git a/gui/devices/720x1280/res/ui.xml b/gui/devices/720x1280/res/ui.xml
index 5f39a2f..fa51706 100644
--- a/gui/devices/720x1280/res/ui.xml
+++ b/gui/devices/720x1280/res/ui.xml
@@ -100,6 +100,7 @@
<variable name="text_color" value="#FFFFFF" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="home_button_x" value="10" />
<variable name="home_button_y" value="1226" />
<variable name="back_button_x" value="625" />
@@ -135,10 +136,12 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="2" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="36" />
<variable name="listbox_x" value="5" />
<variable name="listbox_width" value="710" />
- <variable name="listbox_tz_height" value="540" />
+ <variable name="listbox_tz_height" value="590" />
<variable name="listbox_background" value="#303030" />
<variable name="listbox_spacing" value="16" />
<variable name="sd_plus_x" value="350" />
@@ -204,6 +207,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%home_button_x%" y="%home_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -213,6 +217,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%back_button_x%" y="%back_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -250,6 +255,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col1_button_x%" y="%sort_asc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Name</text>
@@ -258,6 +264,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col2_button_x%" y="%sort_asc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Date</text>
@@ -266,6 +273,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col3_button_x%" y="%sort_asc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Size</text>
@@ -280,6 +288,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col1_button_x%" y="%sort_desc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Name</text>
@@ -288,6 +297,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col2_button_x%" y="%sort_desc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Date</text>
@@ -296,6 +306,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col3_button_x%" y="%sort_desc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Size</text>
@@ -325,7 +336,7 @@
<object type="keyboard">
<placement x="0" y="800" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="106" width="72" />
<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" />
@@ -372,6 +383,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -383,6 +395,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -391,6 +404,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -399,6 +413,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -407,6 +422,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -415,6 +431,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -424,6 +441,7 @@
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -432,6 +450,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -500,6 +519,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row2_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -507,7 +527,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="1" files="1" />
<path name="tw_zip_location" default="/sdcard" />
<data name="tw_filename" />
@@ -626,6 +646,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col1_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
@@ -635,6 +656,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Zip Queue</text>
@@ -706,6 +728,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe cache/dalvik</text>
@@ -726,6 +749,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot System</text>
@@ -748,6 +772,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -815,6 +840,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -898,6 +924,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col_center_medium_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -957,6 +984,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -969,6 +997,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1058,6 +1087,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1075,6 +1105,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1092,6 +1123,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1110,6 +1142,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1128,6 +1161,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1149,6 +1183,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1170,6 +1205,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1197,6 +1233,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1215,6 +1252,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1273,6 +1311,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1281,6 +1320,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%backup_name_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1507,6 +1547,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -1618,6 +1659,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
@@ -1625,7 +1667,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" nav="0" />
<path name="tw_backups_folder" />
<data name="tw_restore" default="" />
@@ -1665,6 +1707,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -1677,6 +1720,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -1855,6 +1899,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2056,7 +2101,6 @@
<condition var1="tw_boot_is_mountable" var2="1" />
<condition var1="mounted" op="=" var2="/boot" />
</conditions>
-
<placement x="%col1_x%" y="%row6_text_y%" />
<font resource="font" color="#A0A0A0" />
<text>Unmount Boot</text>
@@ -2113,6 +2157,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_usb_storage" var2="1" />
<placement x="%col1_x%" y="row3_y" />
<font resource="font" color="%button_text_color%" />
@@ -2122,6 +2167,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2168,6 +2214,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -2202,6 +2249,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2222,6 +2270,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2242,6 +2291,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2262,6 +2312,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2282,6 +2333,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2389,6 +2441,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2397,6 +2450,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2420,17 +2474,15 @@
<page name="timezone">
<object type="template" name="header" />
- <object type="text" color="%text_color%">
- <font resource="font" />
- <placement x="%center_x%" y="%row1_header_y%" placement="5" />
- <text>Select Time Zone</text>
- </object>
-
<object type="listbox">
- <placement x="%listbox_x%" y="%row1_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <highlight color="%fileselector_highlight_color%" />
+ <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2473,6 +2525,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>None</text>
@@ -2481,6 +2534,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2489,6 +2543,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2497,6 +2552,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2505,6 +2561,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%tz_set_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2541,6 +2598,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2557,6 +2615,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2574,6 +2633,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2583,6 +2643,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2591,6 +2652,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2599,6 +2661,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2607,6 +2670,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2615,6 +2679,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2624,6 +2689,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_injecttwrp" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2663,6 +2729,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2671,6 +2738,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2685,6 +2753,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2693,6 +2762,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2713,6 +2783,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2721,6 +2792,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col2_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2787,6 +2859,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2804,6 +2877,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2821,6 +2895,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2881,6 +2956,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2888,7 +2964,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<folders="1" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2922,6 +2998,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -2953,6 +3030,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2966,6 +3044,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2979,6 +3058,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -2991,6 +3071,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3007,6 +3088,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3022,6 +3104,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3038,6 +3121,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3052,6 +3136,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3088,6 +3173,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
@@ -3095,7 +3181,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location2" default="/" />
<data name="tw_filename2" />
@@ -3115,6 +3201,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3158,6 +3245,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3207,6 +3295,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3255,6 +3344,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3417,6 +3507,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3482,6 +3573,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3489,7 +3581,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3509,6 +3601,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3549,6 +3642,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
diff --git a/gui/devices/800x1280/res/ui.xml b/gui/devices/800x1280/res/ui.xml
index 9432466..4bb146b 100755
--- a/gui/devices/800x1280/res/ui.xml
+++ b/gui/devices/800x1280/res/ui.xml
@@ -96,6 +96,7 @@
<variable name="text_color" value="#FFFFFF" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="home_button_x" value="50" />
<variable name="home_button_y" value="1226" />
<variable name="back_button_x" value="666" />
@@ -131,10 +132,12 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="2" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="36"/>
<variable name="listbox_x" value="5" />
<variable name="listbox_width" value="710" />
- <variable name="listbox_tz_height" value="540" />
+ <variable name="listbox_tz_height" value="580" />
<variable name="listbox_background" value="#303030" />
<variable name="listbox_spacing" value="16" />
<variable name="sd_plus_x" value="350" />
@@ -321,33 +324,33 @@
<object type="keyboard">
<placement x="0" y="740" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="115" 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="108:a" key02="s" key03="d" key04="f" key05="g" key06="h" key07="j" key08="k" key09="108:l" />
- <row3 key01="108:layout2" key02="z" key03="x" key04="c" key05="v" key06="b" key07="n" key08="m" key09="108:c:8" />
+ <row2 key01="117:a" key02="s" key03="d" key04="f" key05="g" key06="h" key07="j" key08="k" key09="123:l" />
+ <row3 key01="117:layout2" key02="z" key03="x" key04="c" key05="v" key06="b" key07="n" key08="m" key09="123:c:8" />
<row4 key01="117:layout3" key02="80:" key03="400: " key04="80:." key05="123:a:action" />
</layout1>
<layout2>
<keysize height="116" 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="108:A" key02="S" key03="D" key04="F" key05="G" key06="H" key07="J" key08="K" key09="108:L" />
- <row3 key01="108:layout1" key02="Z" key03="X" key04="C" key05="V" key06="B" key07="N" key08="M" key09="108:c:8" />
+ <row2 key01="117:A" key02="S" key03="D" key04="F" key05="G" key06="H" key07="J" key08="K" key09="123:L" />
+ <row3 key01="117:layout1" key02="Z" key03="X" key04="C" key05="V" key06="B" key07="N" key08="M" key09="123:c:8" />
<row4 key01="117:layout3" key02="80:," key03="400: " key04="80:." key05="123:action" />
</layout2>
<layout3>
<keysize height="115" 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="108:layout4" key02="!" key03="72:c:34" key04="'" key05=":" key06=";" key07="/" key08="?" key09="108:c:8" />
+ <row3 key01="117:layout4" key02="!" key03="80:c:34" key04="'" key05=":" key06=";" key07="/" key08="?" key09="123:c:8" />
<row4 key01="117:layout1" key02="80:," key03="400: " key04="80:." key05="123:action" />
</layout3>
<layout4>
<keysize height="116" width="80" />
<row1 key01="~" key02="`" key03="|" key04="80:" key05="80:" key06="80:" key07="80:" key08="80:" key09="{" key10="}" />
<row2 key01="80:" key02="80:" key03="80:" key04="80:" key05="80:" key06="^" key07="_" key08="=" key09="[" key10="]" />
- <row3 key01="115:layout3" key02="80:" key03="80:" key04="80:" key05="80:" key06="\" key07="<" key08=">" key09="108:c:8" />
+ <row3 key01="117:layout3" key02="80:" key03="80:" key04="80:" key05="80:" key06="\" key07="<" key08=">" key09="123:c:8" />
<row4 key01="117:layout1" key02="80:" key03="400: " key04="80:" key05="123:action" />
</layout4>
</object>
@@ -368,6 +371,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -379,6 +383,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -387,6 +392,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -395,6 +401,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -403,6 +410,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -411,6 +419,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -420,6 +429,7 @@
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -428,6 +438,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -496,6 +507,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row2_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -503,7 +515,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="1" files="1" />
<path name="tw_zip_location" default="/sdcard" />
<data name="tw_filename" />
@@ -622,6 +634,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col1_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
@@ -631,6 +644,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Zip Queue</text>
@@ -702,6 +716,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe cache/dalvik</text>
@@ -722,6 +737,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot System</text>
@@ -744,6 +760,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -811,6 +828,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -894,6 +912,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col_center_medium_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -953,6 +972,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -965,6 +985,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1054,6 +1075,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1071,6 +1093,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1088,6 +1111,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1106,6 +1130,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1124,6 +1149,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1145,6 +1171,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1166,6 +1193,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1193,6 +1221,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1211,6 +1240,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1269,6 +1299,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1277,6 +1308,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%backup_name_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1503,6 +1535,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -1614,6 +1647,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
@@ -1621,7 +1655,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" nav="0" />
<path name="tw_backups_folder" />
<data name="tw_restore" default="" />
@@ -1661,6 +1695,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -1673,6 +1708,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -1851,6 +1887,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2052,7 +2089,6 @@
<condition var1="tw_boot_is_mountable" var2="1" />
<condition var1="mounted" op="=" var2="/boot" />
</conditions>
-
<placement x="%col1_x%" y="%row6_text_y%" />
<font resource="font" color="#A0A0A0" />
<text>Unmount Boot</text>
@@ -2109,6 +2145,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_usb_storage" var2="1" />
<placement x="%col1_x%" y="row3_y" />
<font resource="font" color="%button_text_color%" />
@@ -2118,6 +2155,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2164,6 +2202,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -2198,6 +2237,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2218,6 +2258,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2238,6 +2279,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2258,6 +2300,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2278,6 +2321,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2385,6 +2429,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2393,6 +2438,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2416,17 +2462,15 @@
<page name="timezone">
<object type="template" name="header" />
- <object type="text" color="%text_color%">
- <font resource="font" />
- <placement x="%center_x%" y="%row1_header_y%" placement="5" />
- <text>Select Time Zone</text>
- </object>
-
<object type="listbox">
- <placement x="%listbox_x%" y="%row1_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <highlight color="%fileselector_highlight_color%" />
+ <placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2469,6 +2513,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>None</text>
@@ -2477,6 +2522,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2485,6 +2531,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2493,6 +2540,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offset_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2501,6 +2549,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%tz_set_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2537,6 +2586,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2553,6 +2603,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2570,6 +2621,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2579,6 +2631,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2587,6 +2640,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2595,6 +2649,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2603,6 +2658,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2611,6 +2667,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2620,6 +2677,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_injecttwrp" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2659,6 +2717,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2667,6 +2726,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2681,6 +2741,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2689,6 +2750,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sd_plus_x%" y="%sdswap_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2709,6 +2771,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2717,6 +2780,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col2_x%" y="%sdfilesystem_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2783,6 +2847,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2800,6 +2865,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2817,6 +2883,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2877,6 +2944,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2884,7 +2952,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<folders="1" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2918,6 +2986,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -2949,6 +3018,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2962,6 +3032,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2975,6 +3046,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -2987,6 +3059,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3003,6 +3076,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3018,6 +3092,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3034,6 +3109,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3048,6 +3124,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3084,6 +3161,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
@@ -3091,7 +3169,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location2" default="/" />
<data name="tw_filename2" />
@@ -3111,6 +3189,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3154,6 +3233,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3203,6 +3283,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3251,6 +3332,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3413,6 +3495,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3478,6 +3561,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row1_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3485,7 +3569,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3505,6 +3589,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select</text>
@@ -3545,6 +3630,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
diff --git a/gui/devices/800x480/res/ui.xml b/gui/devices/800x480/res/ui.xml
index 74c8092..9d6abf9 100755
--- a/gui/devices/800x480/res/ui.xml
+++ b/gui/devices/800x480/res/ui.xml
@@ -104,6 +104,7 @@
<variable name="text_color" value="#A0A0A0" />
<variable name="text_success_color" value="#33B5E5" />
<variable name="text_fail_color" value="#FF0101" />
+ <variable name="highlight_color" value="#90909080" />
<variable name="slider_x" value="225" />
<variable name="slider_y" value="390" />
<variable name="slider_text_y" value="425" />
@@ -149,6 +150,8 @@
<variable name="fileselector_separatorcolor" value="#505050" />
<variable name="fileselector_separatorheight" value="1" />
<variable name="fileselector_background" value="#303030" />
+ <variable name="fileselector_highlight_color" value="#505050" />
+ <variable name="fileselector_highlight_font_color" value="#33B5E5" />
<variable name="fileselector_spacing" value="12" />
<variable name="zipstorage_text_y" value="88" />
<variable name="listbox_x" value="156" />
@@ -235,6 +238,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%home_button_x%" y="%home_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -244,6 +248,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%back_button_x%" y="%back_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -281,6 +286,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col1_button_x%" y="%sort_asc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Name</text>
@@ -289,6 +295,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col2_button_x%" y="%sort_asc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Date</text>
@@ -297,6 +304,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col3_button_x%" y="%sort_asc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Size</text>
@@ -311,6 +319,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col1_button_x%" y="%sort_desc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Name</text>
@@ -319,6 +328,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col2_button_x%" y="%sort_desc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Date</text>
@@ -327,6 +337,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%sort_col3_button_x%" y="%sort_desc_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Size</text>
@@ -364,7 +375,7 @@
<object type="keyboard">
<placement x="0" y="277" />
<layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" />
- <highlight color="#90909080" />
+ <highlight color="%highlight_color%" />
<layout1>
<keysize height="51" width="73" />
<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" key11="70:c:8" />
@@ -411,6 +422,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
@@ -422,6 +434,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
@@ -430,6 +443,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
@@ -438,6 +452,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
@@ -446,6 +461,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
@@ -454,6 +470,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
@@ -462,6 +479,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
@@ -470,6 +488,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
@@ -538,6 +557,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -545,13 +565,14 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_zip_location" default="/sdcard" />
<data name="select" />
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_zip_location%</text>
@@ -559,7 +580,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="0" files="1" />
<path name="tw_zip_location" />
<data name="tw_filename" />
@@ -651,6 +672,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col2_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -660,6 +682,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row5_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Queue</text>
@@ -743,6 +766,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe Cache/Dalvik</text>
@@ -763,6 +787,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -786,6 +811,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
@@ -839,6 +865,7 @@
<object type="template" name="header" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_exclamation" var2="1" />
<placement x="%exclamation_x%" y="%exclamation_y%" />
<font resource="font" color="%button_text_color%" />
@@ -922,6 +949,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col4_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -981,6 +1009,7 @@
<object type="template" name="action_page_console" />
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -993,6 +1022,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1082,6 +1112,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1102,6 +1133,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1122,6 +1154,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1142,6 +1175,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_reboot_bootloader" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1162,6 +1196,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_download_mode" var2="1" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1267,6 +1302,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row10_text_y%" />
<font resource="font" color="%text_color%" />
<conditions>
@@ -1438,6 +1474,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
@@ -1474,6 +1511,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cache</text>
@@ -1491,6 +1529,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Dalvik Cache</text>
@@ -1508,6 +1547,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Factory Reset</text>
@@ -1526,6 +1566,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
@@ -1544,6 +1585,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_external" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1565,6 +1607,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_internal" var2="1" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1586,6 +1629,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_internal" var2="1" />
<condition var1="tw_has_data_media" var2="1" />
@@ -1613,6 +1657,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_data_media" var2="0" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1631,6 +1676,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_has_sdext_partition" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -1849,6 +1895,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
@@ -1857,6 +1904,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Backup Name</text>
@@ -1924,6 +1972,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel / Clear</text>
@@ -2037,12 +2086,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Select Package to Restore:</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" nav="0" />
@@ -2062,6 +2112,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
@@ -2191,6 +2242,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
@@ -2203,6 +2255,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%backup_name_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete Backup</text>
@@ -2286,6 +2339,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -2411,6 +2465,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Time Zone</text>
@@ -2419,6 +2474,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%slider_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore Defaults</text>
@@ -2449,10 +2505,14 @@
</object>
<object type="listbox">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%listbox_y%" w="%listbox_width%" h="%listbox_tz_height%" />
+ <header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
+ <text>Select Time Zone:</text>
<icon selected="radio_true" unselected="radio_false" />
+ <separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
- <font resource="font" spacing="%listbox_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_time_zone_guisel" />
<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
@@ -2495,6 +2555,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>0</text>
@@ -2503,6 +2564,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>15</text>
@@ -2511,6 +2573,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>30</text>
@@ -2519,6 +2582,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_medium_x%" y="%row_offsetmedium_y%" />
<font resource="font" color="%button_text_color%" />
<text>45</text>
@@ -2527,6 +2591,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Set Time Zone</text>
@@ -2563,6 +2628,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Copy Log to SD</text>
@@ -2579,6 +2645,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
@@ -2596,6 +2663,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Terminal Command</text>
@@ -2604,6 +2672,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>ADB Sideload</text>
@@ -2612,6 +2681,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_allow_partition_sdcard" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2621,6 +2691,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>File Manager</text>
@@ -2629,6 +2700,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reload Theme</text>
@@ -2637,6 +2709,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2668,6 +2741,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2676,6 +2750,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row1_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2690,6 +2765,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2698,6 +2774,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_sdext_x%" y="%row2_sdext_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -2718,6 +2795,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
@@ -2726,6 +2804,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_sdext_disable_ext4" var2="0" />
<placement x="%col3_medium_x%" y="%row4_medium_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2792,6 +2871,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2809,6 +2889,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2826,6 +2907,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_show_dumlock" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2887,6 +2969,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>Folders:</text>
@@ -2894,7 +2977,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_file_location1" default="/sdcard" />
<data name="select" />
@@ -2902,6 +2985,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location1%</text>
@@ -2909,7 +2993,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="0" files="1" />
<path name="tw_file_location1" default="/" />
<data name="tw_filename1" />
@@ -2943,6 +3027,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -2974,6 +3059,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -2987,6 +3073,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3000,6 +3087,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Move</text>
@@ -3012,6 +3100,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col3_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod 755</text>
@@ -3028,6 +3117,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col4_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>chmod</text>
@@ -3043,6 +3133,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
@@ -3059,6 +3150,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="0" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3073,6 +3165,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_fm_isfolder" var2="1" />
<placement x="%col4_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3109,12 +3202,13 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_file_location2%</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
- <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<filter folders="1" files="0" />
@@ -3135,6 +3229,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3178,6 +3273,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3227,6 +3323,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3275,6 +3372,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3436,6 +3534,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%cancel_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
@@ -3501,6 +3600,7 @@
</object>
<object type="fileselector">
+ <highlight color="%fileselector_highlight_color%" />
<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<text>%tw_terminal_location%</text>
@@ -3508,7 +3608,7 @@
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
- <font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" />
+ <font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" />
<path name="tw_terminal_location" default="/" />
<data name="tw_terminal" />
@@ -3528,6 +3628,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Select Folder</text>
@@ -3568,6 +3669,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<condition var1="tw_terminal_state" var2="1" />
<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
@@ -3577,6 +3679,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%home_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
@@ -3586,6 +3689,7 @@
</object>
<object type="button">
+ <highlight color="%highlight_color%" />
<placement x="%back_button_x%" y="%terminal_button_y%" />
<font resource="font" color="%button_text_color%" />
<text></text>
diff --git a/gui/fileselector.cpp b/gui/fileselector.cpp
index 38eaadd..66bf80f 100644
--- a/gui/fileselector.cpp
+++ b/gui/fileselector.cpp
@@ -62,6 +62,10 @@
ConvertStrToColor("black", &mHeaderSeparatorColor);
ConvertStrToColor("white", &mFontColor);
ConvertStrToColor("white", &mHeaderFontColor);
+ hasHighlightColor = false;
+ hasFontHighlightColor = false;
+ isHighlighted = false;
+ startSelection = -1;
// Load header text
child = node->first_node("header");
@@ -102,6 +106,17 @@
child = node->first_node("text");
if (child) mHeaderText = child->value();
+ memset(&mHighlightColor, 0, sizeof(COLOR));
+ child = node->first_node("highlight");
+ if (child) {
+ attr = child->first_attribute("color");
+ if (attr) {
+ hasHighlightColor = true;
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mHighlightColor);
+ }
+ }
+
// Simple way to check for static state
mLastValue = gui_parse_text(mHeaderText);
if (mLastValue != mHeaderText)
@@ -161,6 +176,15 @@
string parsevalue = gui_parse_text(attr->value());
mLineSpacing = atoi(parsevalue.c_str());
}
+
+ attr = child->first_attribute("highlightcolor");
+ memset(&mFontHighlightColor, 0, sizeof(COLOR));
+ if (attr)
+ {
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mFontHighlightColor);
+ hasFontHighlightColor = true;
+ }
}
// Load the separator if it exists
@@ -349,14 +373,39 @@
int currentIconOffsetY = 0, currentIconOffsetX = 0;
int folderIconOffsetY = (int)((actualLineHeight - mFolderIconHeight) / 2), fileIconOffsetY = (int)((actualLineHeight - mFileIconHeight) / 2);
int folderIconOffsetX = (mIconWidth - mFolderIconWidth) / 2, fileIconOffsetX = (mIconWidth - mFileIconWidth) / 2;
+ int actualSelection = mStart;
+
+ if (isHighlighted) {
+ int selectY = scrollingY;
+
+ // Locate the correct line for highlighting
+ while (selectY + actualLineHeight < startSelection) {
+ selectY += actualLineHeight;
+ actualSelection++;
+ }
+ if (hasHighlightColor) {
+ // Highlight the area
+ gr_color(mHighlightColor.red, mHighlightColor.green, mHighlightColor.blue, 255);
+ int HighlightHeight = actualLineHeight;
+ if (mRenderY + mHeaderH + selectY + actualLineHeight > mRenderH + mRenderY) {
+ HighlightHeight = actualLineHeight - (mRenderY + mHeaderH + selectY + actualLineHeight - mRenderH - mRenderY);
+ }
+ gr_fill(mRenderX, mRenderY + mHeaderH + selectY, mRenderW, HighlightHeight);
+ }
+ }
for (line = 0; line < lines; line++)
{
Resource* icon;
std::string label;
- // Set the color for the font
- gr_color(mFontColor.red, mFontColor.green, mFontColor.blue, 255);
+ if (isHighlighted && hasFontHighlightColor && line + mStart == actualSelection) {
+ // Use the highlight color for the font
+ gr_color(mFontHighlightColor.red, mFontHighlightColor.green, mFontHighlightColor.blue, 255);
+ } else {
+ // Set the color for the font
+ gr_color(mFontColor.red, mFontColor.green, mFontColor.blue, 255);
+ }
if (line + mStart < folderSize)
{
@@ -514,7 +563,6 @@
int GUIFileSelector::NotifyTouch(TOUCH_STATE state, int x, int y)
{
- static int startSelection = -1;
static int lastY = 0, last2Y = 0;
int selection = 0;
@@ -525,6 +573,9 @@
startSelection = -1;
else
startSelection = GetSelection(x,y);
+ isHighlighted = (startSelection > -1);
+ if (isHighlighted)
+ mUpdate = 1;
startY = lastY = last2Y = y;
scrollingSpeed = 0;
break;
@@ -533,14 +584,21 @@
// Check if we dragged out of the selection window
if (GetSelection(x, y) == -1) {
last2Y = lastY = 0;
+ if (isHighlighted) {
+ isHighlighted = false;
+ mUpdate = 1;
+ }
break;
}
// Provide some debounce on initial touches
if (startSelection != -1 && abs(y - startY) < touchDebounce) {
+ isHighlighted = true;
+ mUpdate = 1;
break;
}
+ isHighlighted = false;
last2Y = lastY;
lastY = y;
startSelection = -1;
@@ -581,6 +639,7 @@
break;
case TOUCH_RELEASE:
+ isHighlighted = false;
if (startSelection >= 0)
{
// We've selected an item!
diff --git a/gui/listbox.cpp b/gui/listbox.cpp
index 888947b..5dd2a2d 100644
--- a/gui/listbox.cpp
+++ b/gui/listbox.cpp
@@ -1,4 +1,4 @@
-// ListBox.cpp - GUIListBox object
+// FileSelector.cpp - GUIFileSelector object
#include <linux/input.h>
#include <pthread.h>
@@ -31,105 +31,238 @@
#include "rapidxml.hpp"
#include "objects.hpp"
#include "../data.hpp"
+#include "../twrp-functions.hpp"
+
+#define SCROLLING_SPEED_DECREMENT 6
+#define SCROLLING_FLOOR 10
+#define SCROLLING_MULTIPLIER 6
GUIListBox::GUIListBox(xml_node<>* node)
{
- xml_attribute<>* attr;
- xml_node<>* child;
+ xml_attribute<>* attr;
+ xml_node<>* child;
+ int header_separator_color_specified = 0, header_separator_height_specified = 0, header_text_color_specified = 0, header_background_color_specified = 0;
- mStart = mLineSpacing = mIconWidth = mIconHeight = 0;
- mIconSelected = mIconUnselected = mBackground = mFont = NULL;
- mBackgroundX = mBackgroundY = mBackgroundW = mBackgroundH = 0;
- mUpdate = 0;
- ConvertStrToColor("black", &mBackgroundColor);
- ConvertStrToColor("white", &mFontColor);
-
- child = node->first_node("icon");
- if (child)
- {
- attr = child->first_attribute("selected");
- if (attr)
- mIconSelected = PageManager::FindResource(attr->value());
- attr = child->first_attribute("unselected");
- if (attr)
- mIconUnselected = PageManager::FindResource(attr->value());
- }
- child = node->first_node("background");
- if (child)
- {
- attr = child->first_attribute("resource");
- if (attr)
- mBackground = PageManager::FindResource(attr->value());
- attr = child->first_attribute("color");
- if (attr)
- {
- std::string color = attr->value();
- ConvertStrToColor(color, &mBackgroundColor);
- }
- }
+ mStart = mLineSpacing = startY = mFontHeight = mSeparatorH = scrollingY = scrollingSpeed = 0;
+ mIconWidth = mIconHeight = mSelectedIconHeight = mSelectedIconHeight = mUnselectedIconWidth = mUnselectedIconWidth = mHeaderIconHeight = mHeaderIconWidth = 0;
+ mHeaderSeparatorH = mLineHeight = mHeaderIsStatic = mHeaderH = actualLineHeight = 0;
+ mIconSelected = mIconUnselected = mBackground = mFont = mHeaderIcon = NULL;
+ mBackgroundX = mBackgroundY = mBackgroundW = mBackgroundH = 0;
+ mUpdate = 0;
+ touchDebounce = 6;
+ ConvertStrToColor("black", &mBackgroundColor);
+ ConvertStrToColor("black", &mHeaderBackgroundColor);
+ ConvertStrToColor("black", &mSeparatorColor);
+ ConvertStrToColor("black", &mHeaderSeparatorColor);
+ ConvertStrToColor("white", &mFontColor);
+ ConvertStrToColor("white", &mHeaderFontColor);
+ hasHighlightColor = false;
+ hasFontHighlightColor = false;
+ isHighlighted = false;
+ startSelection = -1;
- // Load the placement
- LoadPlacement(node->first_node("placement"), &mRenderX, &mRenderY, &mRenderW, &mRenderH);
- SetActionPos(mRenderX, mRenderY, mRenderW, mRenderH);
+ // Load header text
+ child = node->first_node("header");
+ if (child)
+ {
+ attr = child->first_attribute("icon");
+ if (attr)
+ mHeaderIcon = PageManager::FindResource(attr->value());
- // Load the font, and possibly override the color
- child = node->first_node("font");
- if (child)
- {
- attr = child->first_attribute("resource");
- if (attr)
- mFont = PageManager::FindResource(attr->value());
-
- attr = child->first_attribute("color");
- if (attr)
- {
- std::string color = attr->value();
- ConvertStrToColor(color, &mFontColor);
- }
-
- attr = child->first_attribute("spacing");
- if (attr) {
- string parsevalue = gui_parse_text(attr->value());
- mLineSpacing = atoi(parsevalue.c_str());
+ attr = child->first_attribute("background");
+ if (attr)
+ {
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mHeaderBackgroundColor);
+ header_background_color_specified = -1;
}
- }
+ attr = child->first_attribute("textcolor");
+ if (attr)
+ {
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mHeaderFontColor);
+ header_text_color_specified = -1;
+ }
+ attr = child->first_attribute("separatorcolor");
+ if (attr)
+ {
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mHeaderSeparatorColor);
+ header_separator_color_specified = -1;
+ }
+ attr = child->first_attribute("separatorheight");
+ if (attr) {
+ string parsevalue = gui_parse_text(attr->value());
+ mHeaderSeparatorH = atoi(parsevalue.c_str());
+ header_separator_height_specified = -1;
+ }
+ }
+ child = node->first_node("text");
+ if (child) mHeaderText = child->value();
- // Handle the result variable
- child = node->first_node("data");
- if (child)
- {
- attr = child->first_attribute("name");
- if (attr)
- mVariable = attr->value();
- attr = child->first_attribute("default");
- if (attr)
- DataManager::SetValue(mVariable, attr->value());
- }
+ memset(&mHighlightColor, 0, sizeof(COLOR));
+ child = node->first_node("highlight");
+ if (child) {
+ attr = child->first_attribute("color");
+ if (attr) {
+ hasHighlightColor = true;
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mHighlightColor);
+ }
+ }
- // Retrieve the line height
- gr_getFontDetails(mFont ? mFont->GetResource() : NULL, &mFontHeight, NULL);
- mLineHeight = mFontHeight;
- if (mIconSelected && mIconSelected->GetResource())
- {
- if (gr_get_height(mIconSelected->GetResource()) > mLineHeight)
- mLineHeight = gr_get_height(mIconSelected->GetResource());
- mIconWidth = gr_get_width(mIconSelected->GetResource());
- mIconHeight = gr_get_height(mIconSelected->GetResource());
- }
- if (mIconUnselected && mIconUnselected->GetResource())
- {
- if (gr_get_height(mIconUnselected->GetResource()) > mLineHeight)
- mLineHeight = gr_get_height(mIconUnselected->GetResource());
- mIconWidth = gr_get_width(mIconUnselected->GetResource());
- mIconHeight = gr_get_height(mIconUnselected->GetResource());
- }
-
- if (mBackground && mBackground->GetResource())
- {
- mBackgroundW = gr_get_width(mBackground->GetResource());
- mBackgroundH = gr_get_height(mBackground->GetResource());
- }
-
+ // Simple way to check for static state
+ mLastValue = gui_parse_text(mHeaderText);
+ if (mLastValue != mHeaderText)
+ mHeaderIsStatic = 0;
+ else
+ mHeaderIsStatic = -1;
+
+ child = node->first_node("icon");
+ if (child)
+ {
+ attr = child->first_attribute("selected");
+ if (attr)
+ mIconSelected = PageManager::FindResource(attr->value());
+ attr = child->first_attribute("unselected");
+ if (attr)
+ mIconUnselected = PageManager::FindResource(attr->value());
+ }
+ child = node->first_node("background");
+ if (child)
+ {
+ attr = child->first_attribute("resource");
+ if (attr)
+ mBackground = PageManager::FindResource(attr->value());
+ attr = child->first_attribute("color");
+ if (attr)
+ {
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mBackgroundColor);
+ if (!header_background_color_specified)
+ ConvertStrToColor(color, &mHeaderBackgroundColor);
+ }
+ }
+
+ // Load the placement
+ LoadPlacement(node->first_node("placement"), &mRenderX, &mRenderY, &mRenderW, &mRenderH);
+ SetActionPos(mRenderX, mRenderY, mRenderW, mRenderH);
+
+ // Load the font, and possibly override the color
+ child = node->first_node("font");
+ if (child)
+ {
+ attr = child->first_attribute("resource");
+ if (attr)
+ mFont = PageManager::FindResource(attr->value());
+
+ attr = child->first_attribute("color");
+ if (attr)
+ {
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mFontColor);
+ if (!header_text_color_specified)
+ ConvertStrToColor(color, &mHeaderFontColor);
+ }
+
+ attr = child->first_attribute("spacing");
+ if (attr) {
+ string parsevalue = gui_parse_text(attr->value());
+ mLineSpacing = atoi(parsevalue.c_str());
+ }
+
+ attr = child->first_attribute("highlightcolor");
+ memset(&mFontHighlightColor, 0, sizeof(COLOR));
+ if (attr)
+ {
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mFontHighlightColor);
+ hasFontHighlightColor = true;
+ }
+ }
+
+ // Load the separator if it exists
+ child = node->first_node("separator");
+ if (child)
+ {
+ attr = child->first_attribute("color");
+ if (attr)
+ {
+ std::string color = attr->value();
+ ConvertStrToColor(color, &mSeparatorColor);
+ if (!header_separator_color_specified)
+ ConvertStrToColor(color, &mHeaderSeparatorColor);
+ }
+
+ attr = child->first_attribute("height");
+ if (attr) {
+ string parsevalue = gui_parse_text(attr->value());
+ mSeparatorH = atoi(parsevalue.c_str());
+ if (!header_separator_height_specified)
+ mHeaderSeparatorH = mSeparatorH;
+ }
+ }
+
+ // Handle the result variable
+ child = node->first_node("data");
+ if (child)
+ {
+ attr = child->first_attribute("name");
+ if (attr)
+ mVariable = attr->value();
+ attr = child->first_attribute("default");
+ if (attr)
+ DataManager::SetValue(mVariable, attr->value());
+ }
+
+ // Retrieve the line height
+ gr_getFontDetails(mFont ? mFont->GetResource() : NULL, &mFontHeight, NULL);
+ mLineHeight = mFontHeight;
+ mHeaderH = mFontHeight;
+
+ if (mIconSelected && mIconSelected->GetResource())
+ {
+ mSelectedIconWidth = gr_get_width(mIconSelected->GetResource());
+ mSelectedIconHeight = gr_get_height(mIconSelected->GetResource());
+ if (mSelectedIconHeight > (int)mLineHeight)
+ mLineHeight = mSelectedIconHeight;
+ mIconWidth = mSelectedIconWidth;
+ }
+
+ if (mIconUnselected && mIconUnselected->GetResource())
+ {
+ mUnselectedIconWidth = gr_get_width(mIconUnselected->GetResource());
+ mUnselectedIconHeight = gr_get_height(mIconUnselected->GetResource());
+ if (mUnselectedIconHeight > (int)mLineHeight)
+ mLineHeight = mUnselectedIconHeight;
+ if (mUnselectedIconWidth > mIconWidth)
+ mIconWidth = mUnselectedIconWidth;
+ }
+
+ if (mHeaderIcon && mHeaderIcon->GetResource())
+ {
+ mHeaderIconWidth = gr_get_width(mHeaderIcon->GetResource());
+ mHeaderIconHeight = gr_get_height(mHeaderIcon->GetResource());
+ if (mHeaderIconHeight > mHeaderH)
+ mHeaderH = mHeaderIconHeight;
+ if (mHeaderIconWidth > mIconWidth)
+ mIconWidth = mHeaderIconWidth;
+ }
+
+ mHeaderH += mLineSpacing + mHeaderSeparatorH;
+ actualLineHeight = mLineHeight + mLineSpacing + mSeparatorH;
+ if (mHeaderH < actualLineHeight)
+ mHeaderH = actualLineHeight;
+
+ if (actualLineHeight / 3 > 6)
+ touchDebounce = actualLineHeight / 3;
+
+ if (mBackground && mBackground->GetResource())
+ {
+ mBackgroundW = gr_get_width(mBackground->GetResource());
+ mBackgroundH = gr_get_height(mBackground->GetResource());
+ }
+
// Get the currently selected value for the list
DataManager::GetValue(mVariable, currentValue);
@@ -146,18 +279,16 @@
data.displayName = attr->value();
data.variableValue = child->value();
- if (child->value() == currentValue)
+ if (child->value() == currentValue) {
data.selected = 1;
- else
+ } else {
data.selected = 0;
+ }
mList.push_back(data);
child = child->next_sibling("listitem");
}
-
- // Call this to get the selected item to be shown in the list on first render
- NotifyVarChange(mVariable, currentValue);
}
GUIListBox::~GUIListBox()
@@ -165,168 +296,363 @@
}
int GUIListBox::Render(void)
-{
+{
// First step, fill background
- gr_color(mBackgroundColor.red, mBackgroundColor.green, mBackgroundColor.blue, 255);
- gr_fill(mRenderX, mRenderY, mRenderW, mRenderH);
+ gr_color(mBackgroundColor.red, mBackgroundColor.green, mBackgroundColor.blue, 255);
+ gr_fill(mRenderX, mRenderY + mHeaderH, mRenderW, mRenderH - mHeaderH);
- // Next, render the background resource (if it exists)
- if (mBackground && mBackground->GetResource())
- {
- mBackgroundX = mRenderX + ((mRenderW - mBackgroundW) / 2);
- mBackgroundY = mRenderY + ((mRenderH - mBackgroundH) / 2);
- gr_blit(mBackground->GetResource(), 0, 0, mBackgroundW, mBackgroundH, mBackgroundX, mBackgroundY);
- }
+ // Next, render the background resource (if it exists)
+ if (mBackground && mBackground->GetResource())
+ {
+ mBackgroundX = mRenderX + ((mRenderW - mBackgroundW) / 2);
+ mBackgroundY = mRenderY + ((mRenderH - mBackgroundH) / 2);
+ gr_blit(mBackground->GetResource(), 0, 0, mBackgroundW, mBackgroundH, mBackgroundX, mBackgroundY);
+ }
- // Now, we need the lines (icon + text)
- gr_color(mFontColor.red, mFontColor.green, mFontColor.blue, mFontColor.alpha);
+ // This tells us how many lines we can actually render
+ int lines = (mRenderH - mHeaderH) / (actualLineHeight);
+ int line;
- // This tells us how many lines we can actually render
- int lines = mRenderH / (mLineHeight + mLineSpacing);
- int line;
+ int listSize = mList.size();
- int listSize = mList.size();
+ if (listSize < lines) {
+ lines = listSize;
+ scrollingY = 0;
+ } else {
+ lines++;
+ if (lines < listSize)
+ lines++;
+ }
- if (listSize < lines) lines = listSize;
+ void* fontResource = NULL;
+ if (mFont) fontResource = mFont->GetResource();
- void* fontResource = NULL;
- if (mFont) fontResource = mFont->GetResource();
+ int yPos = mRenderY + mHeaderH + scrollingY;
+ int fontOffsetY = (int)((actualLineHeight - mFontHeight) / 2);
+ int currentIconHeight = 0, currentIconWidth = 0;
+ int currentIconOffsetY = 0, currentIconOffsetX = 0;
+ int UnselectedIconOffsetY = (int)((actualLineHeight - mUnselectedIconHeight) / 2), SelectedIconOffsetY = (int)((actualLineHeight - mSelectedIconHeight) / 2);
+ int UnselectedIconOffsetX = (mIconWidth - mUnselectedIconWidth) / 2, SelectedIconOffsetX = (mIconWidth - mSelectedIconWidth) / 2;
+ int actualSelection = mStart;
- int yPos = mRenderY + (mLineSpacing / 2);
- for (line = 0; line < lines; line++)
- {
- Resource* icon;
- std::string label;
+ if (isHighlighted) {
+ int selectY = scrollingY;
- label = mList.at(line + mStart).displayName;
+ // Locate the correct line for highlighting
+ while (selectY + actualLineHeight < startSelection) {
+ selectY += actualLineHeight;
+ actualSelection++;
+ }
+ if (hasHighlightColor) {
+ // Highlight the area
+ gr_color(mHighlightColor.red, mHighlightColor.green, mHighlightColor.blue, 255);
+ int HighlightHeight = actualLineHeight;
+ if (mRenderY + mHeaderH + selectY + actualLineHeight > mRenderH + mRenderY) {
+ HighlightHeight = actualLineHeight - (mRenderY + mHeaderH + selectY + actualLineHeight - mRenderH - mRenderY);
+ }
+ gr_fill(mRenderX, mRenderY + mHeaderH + selectY, mRenderW, HighlightHeight);
+ }
+ }
+
+ for (line = 0; line < lines; line++)
+ {
+ Resource* icon;
+ std::string label;
+
+ if (line + mStart >= listSize)
+ continue;
+
+ label = mList.at(line + mStart).displayName;
+ if (isHighlighted && hasFontHighlightColor && line + mStart == actualSelection) {
+ // Use the highlight color for the font
+ gr_color(mFontHighlightColor.red, mFontHighlightColor.green, mFontHighlightColor.blue, 255);
+ } else {
+ // Set the color for the font
+ gr_color(mFontColor.red, mFontColor.green, mFontColor.blue, 255);
+ }
+
if (mList.at(line + mStart).selected != 0)
{
icon = mIconSelected;
+ currentIconHeight = mSelectedIconHeight;
+ currentIconWidth = mSelectedIconWidth;
+ currentIconOffsetY = SelectedIconOffsetY;
+ currentIconOffsetX = SelectedIconOffsetX;
}
else
{
icon = mIconUnselected;
+ currentIconHeight = mSelectedIconHeight;
+ currentIconWidth = mSelectedIconWidth;
+ currentIconOffsetY = SelectedIconOffsetY;
+ currentIconOffsetX = SelectedIconOffsetX;
}
- if (icon && icon->GetResource())
- {
- gr_blit(icon->GetResource(), 0, 0, mIconWidth, mIconHeight, mRenderX, (yPos + (int)((mLineHeight - mIconHeight) / 2)));
- }
- gr_textExW(mRenderX + mIconWidth + 5, yPos, label.c_str(), fontResource, mRenderX + mRenderW - mIconWidth - 5);
+ if (icon && icon->GetResource())
+ {
+ int rect_y = 0, image_y = (yPos + currentIconOffsetY);
+ if (image_y + currentIconHeight > mRenderY + mRenderH)
+ rect_y = mRenderY + mRenderH - image_y;
+ else
+ rect_y = currentIconHeight;
+ gr_blit(icon->GetResource(), 0, 0, currentIconWidth, rect_y, mRenderX + currentIconOffsetX, image_y);
+ }
+ gr_textExWH(mRenderX + mIconWidth + 5, yPos + fontOffsetY, label.c_str(), fontResource, mRenderX + mRenderW, mRenderY + mRenderH);
- // Move the yPos
- yPos += mLineHeight + mLineSpacing;
- }
+ // Add the separator
+ if (yPos + actualLineHeight < mRenderH + mRenderY) {
+ gr_color(mSeparatorColor.red, mSeparatorColor.green, mSeparatorColor.blue, 255);
+ gr_fill(mRenderX, yPos + actualLineHeight - mSeparatorH, mRenderW, mSeparatorH);
+ }
- mUpdate = 0;
- return 0;
+ // Move the yPos
+ yPos += actualLineHeight;
+ }
+
+ // Render the Header (last so that it overwrites the top most row for per pixel scrolling)
+ // First step, fill background
+ gr_color(mHeaderBackgroundColor.red, mHeaderBackgroundColor.green, mHeaderBackgroundColor.blue, 255);
+ gr_fill(mRenderX, mRenderY, mRenderW, mHeaderH);
+
+ // Now, we need the header (icon + text)
+ yPos = mRenderY;
+ {
+ Resource* headerIcon;
+ int mIconOffsetX = 0;
+
+ // render the icon if it exists
+ headerIcon = mHeaderIcon;
+ if (headerIcon && headerIcon->GetResource())
+ {
+ gr_blit(headerIcon->GetResource(), 0, 0, mHeaderIconWidth, mHeaderIconHeight, mRenderX + ((mHeaderIconWidth - mIconWidth) / 2), (yPos + (int)((mHeaderH - mHeaderIconHeight) / 2)));
+ mIconOffsetX = mIconWidth;
+ }
+
+ // render the text
+ gr_color(mHeaderFontColor.red, mHeaderFontColor.green, mHeaderFontColor.blue, 255);
+ gr_textExWH(mRenderX + mIconOffsetX + 5, yPos + (int)((mHeaderH - mFontHeight) / 2), mLastValue.c_str(), fontResource, mRenderX + mRenderW, mRenderY + mRenderH);
+
+ // Add the separator
+ gr_color(mHeaderSeparatorColor.red, mHeaderSeparatorColor.green, mHeaderSeparatorColor.blue, 255);
+ gr_fill(mRenderX, yPos + mHeaderH - mHeaderSeparatorH, mRenderW, mHeaderSeparatorH);
+ }
+
+ mUpdate = 0;
+ return 0;
}
int GUIListBox::Update(void)
{
- if (mUpdate)
- {
- mUpdate = 0;
- if (Render() == 0)
+ if (!mHeaderIsStatic) {
+ std::string newValue = gui_parse_text(mHeaderText);
+ if (mLastValue != newValue) {
+ mLastValue = newValue;
+ mUpdate = 1;
+ }
+ }
+
+ if (mUpdate)
+ {
+ mUpdate = 0;
+ if (Render() == 0)
return 2;
- }
- return 0;
+ }
+
+ // Handle kinetic scrolling
+ if (scrollingSpeed == 0) {
+ // Do nothing
+ } else if (scrollingSpeed > 0) {
+ if (scrollingSpeed < ((int) (actualLineHeight * 2.5))) {
+ scrollingY += scrollingSpeed;
+ scrollingSpeed -= SCROLLING_SPEED_DECREMENT;
+ } else {
+ scrollingY += ((int) (actualLineHeight * 2.5));
+ scrollingSpeed -= SCROLLING_SPEED_DECREMENT;
+ }
+ while (mStart && scrollingY > 0) {
+ mStart--;
+ scrollingY -= actualLineHeight;
+ }
+ if (mStart == 0 && scrollingY > 0) {
+ scrollingY = 0;
+ scrollingSpeed = 0;
+ } else if (scrollingSpeed < SCROLLING_FLOOR)
+ scrollingSpeed = 0;
+ mUpdate = 1;
+ } else if (scrollingSpeed < 0) {
+ int totalSize = mList.size();
+ int lines = (mRenderH - mHeaderH) / (actualLineHeight);
+
+ if (totalSize > lines) {
+ int bottom_offset = ((int)(mRenderH) - mHeaderH) - (lines * actualLineHeight);
+
+ bottom_offset -= actualLineHeight;
+
+ if (abs(scrollingSpeed) < ((int) (actualLineHeight * 2.5))) {
+ scrollingY += scrollingSpeed;
+ scrollingSpeed += SCROLLING_SPEED_DECREMENT;
+ } else {
+ scrollingY -= ((int) (actualLineHeight * 2.5));
+ scrollingSpeed += SCROLLING_SPEED_DECREMENT;
+ }
+ while (mStart + lines + (bottom_offset ? 1 : 0) < totalSize && abs(scrollingY) > actualLineHeight) {
+ mStart++;
+ scrollingY += actualLineHeight;
+ }
+ if (bottom_offset != 0 && mStart + lines + 1 >= totalSize && scrollingY <= bottom_offset) {
+ mStart = totalSize - lines - 1;
+ scrollingY = bottom_offset;
+ } else if (mStart + lines >= totalSize && scrollingY < 0) {
+ mStart = totalSize - lines;
+ scrollingY = 0;
+ } else if (scrollingSpeed * -1 < SCROLLING_FLOOR)
+ scrollingSpeed = 0;
+ mUpdate = 1;
+ }
+ }
+
+ return 0;
}
int GUIListBox::GetSelection(int x, int y)
{
- // We only care about y position
- return (y - mRenderY) / (mLineHeight + mLineSpacing);
+ // We only care about y position
+ if (y < mRenderY || y - mRenderY <= mHeaderH || y - mRenderY > mRenderH) return -1;
+ return (y - mRenderY - mHeaderH);
}
int GUIListBox::NotifyTouch(TOUCH_STATE state, int x, int y)
{
- static int startSelection = -1;
- static int startY = 0;
- int selection = 0;
+ static int lastY = 0, last2Y = 0;
+ int selection = 0;
- switch (state)
- {
- case TOUCH_START:
- startSelection = GetSelection(x,y);
- startY = y;
- break;
+ switch (state)
+ {
+ case TOUCH_START:
+ if (scrollingSpeed != 0)
+ startSelection = -1;
+ else
+ startSelection = GetSelection(x,y);
+ isHighlighted = (startSelection > -1);
+ if (isHighlighted)
+ mUpdate = 1;
+ startY = lastY = last2Y = y;
+ scrollingSpeed = 0;
+ break;
- case TOUCH_DRAG:
- // Check if we dragged out of the selection window
- selection = GetSelection(x,y);
- if (startSelection != selection)
- {
- startSelection = -1;
+ case TOUCH_DRAG:
+ // Check if we dragged out of the selection window
+ if (GetSelection(x, y) == -1) {
+ last2Y = lastY = 0;
+ if (isHighlighted) {
+ isHighlighted = false;
+ mUpdate = 1;
+ }
+ break;
+ }
- // Handle scrolling
- if (y > (int) (startY + (mLineHeight + mLineSpacing)))
- {
- if (mStart) mStart--;
- mUpdate = 1;
- startY = y;
- }
- else if (y < (int) (startY - (mLineHeight + mLineSpacing)))
- {
- int listSize = mList.size();
- int lines = mRenderH / (mLineHeight + mLineSpacing);
+ // Provide some debounce on initial touches
+ if (startSelection != -1 && abs(y - startY) < touchDebounce) {
+ isHighlighted = true;
+ mUpdate = 1;
+ break;
+ }
- if (mStart + lines < listSize) mStart++;
- mUpdate = 1;
- startY = y;
- }
- }
- break;
+ isHighlighted = false;
+ last2Y = lastY;
+ lastY = y;
+ startSelection = -1;
- case TOUCH_RELEASE:
- if (startSelection >= 0)
- {
- // We've selected an item!
- std::string str;
+ // Handle scrolling
+ scrollingY += y - startY;
+ startY = y;
+ while(mStart && scrollingY > 0) {
+ mStart--;
+ scrollingY -= actualLineHeight;
+ }
+ if (mStart == 0 && scrollingY > 0)
+ scrollingY = 0;
+ {
+ int totalSize = mList.size();
+ int lines = (mRenderH - mHeaderH) / (actualLineHeight);
- int listSize = mList.size();
+ if (totalSize > lines) {
+ int bottom_offset = ((int)(mRenderH) - mHeaderH) - (lines * actualLineHeight);
- // Move the selection to the proper place in the array
- startSelection += mStart;
+ bottom_offset -= actualLineHeight;
- if (startSelection < listSize)
- {
- if (!mVariable.empty())
- {
- int i;
- for (i=0; i<listSize; i++)
- mList.at(i).selected = 0;
+ while (mStart + lines + (bottom_offset ? 1 : 0) < totalSize && abs(scrollingY) > actualLineHeight) {
+ mStart++;
+ scrollingY += actualLineHeight;
+ }
+ if (bottom_offset != 0 && mStart + lines + 1 >= totalSize && scrollingY <= bottom_offset) {
+ mStart = totalSize - lines - 1;
+ scrollingY = bottom_offset;
+ } else if (mStart + lines >= totalSize && scrollingY < 0) {
+ mStart = totalSize - lines;
+ scrollingY = 0;
+ }
+ } else
+ scrollingY = 0;
+ }
+ mUpdate = 1;
+ break;
- str = mList.at(startSelection).variableValue;
- mList.at(startSelection).selected = 1;
- DataManager::SetValue(mVariable, str);
- mUpdate = 1;
- }
- }
- }
- case TOUCH_HOLD:
+ case TOUCH_RELEASE:
+ isHighlighted = false;
+ if (startSelection >= 0)
+ {
+ // We've selected an item!
+ std::string str;
+
+ int listSize = mList.size();
+ int selectY = scrollingY, actualSelection = mStart;
+
+ // Move the selection to the proper place in the array
+ while (selectY + actualLineHeight < startSelection) {
+ selectY += actualLineHeight;
+ actualSelection++;
+ }
+
+ if (actualSelection < listSize && !mVariable.empty())
+ {
+ int i;
+ for (i=0; i<listSize; i++)
+ mList.at(i).selected = 0;
+
+ str = mList.at(actualSelection).variableValue;
+ mList.at(actualSelection).selected = 1;
+ DataManager::SetValue(mVariable, str);
+ mUpdate = 1;
+ }
+ } else {
+ // This is for kinetic scrolling
+ scrollingSpeed = lastY - last2Y;
+ if (abs(scrollingSpeed) > SCROLLING_FLOOR)
+ scrollingSpeed *= SCROLLING_MULTIPLIER;
+ else
+ scrollingSpeed = 0;
+ }
case TOUCH_REPEAT:
- break;
- }
- return 0;
+ case TOUCH_HOLD:
+ break;
+ }
+ return 0;
}
int GUIListBox::NotifyVarChange(std::string varName, std::string value)
{
- string checkValue;
- int var_changed = 0;
-
- if (varName.empty())
- {
- DataManager::GetValue(mVariable, checkValue);
- if (checkValue != currentValue) {
- varName = mVariable;
- value = checkValue;
- currentValue = checkValue;
- var_changed = 1;
+ if (!mHeaderIsStatic) {
+ std::string newValue = gui_parse_text(mHeaderText);
+ if (mLastValue != newValue) {
+ mLastValue = newValue;
+ mStart = 0;
+ scrollingY = 0;
+ scrollingSpeed = 0;
+ mUpdate = 1;
}
- }
- if (varName == mVariable || var_changed != 0)
+ }
+ if (varName == mVariable)
{
int i, listSize = mList.size(), selected_index = 0;
@@ -354,28 +680,29 @@
mUpdate = 1;
return 0;
}
- return 0;
+ return 0;
}
int GUIListBox::SetRenderPos(int x, int y, int w /* = 0 */, int h /* = 0 */)
{
- mRenderX = x;
- mRenderY = y;
- if (w || h)
- {
- mRenderW = w;
- mRenderH = h;
- }
- SetActionPos(mRenderX, mRenderY, mRenderW, mRenderH);
- mUpdate = 1;
- return 0;
+ mRenderX = x;
+ mRenderY = y;
+ if (w || h)
+ {
+ mRenderW = w;
+ mRenderH = h;
+ }
+ SetActionPos(mRenderX, mRenderY, mRenderW, mRenderH);
+ mUpdate = 1;
+ return 0;
}
void GUIListBox::SetPageFocus(int inFocus)
{
- if (inFocus)
- {
- mUpdate = 1;
- }
+ if (inFocus)
+ {
+ DataManager::GetValue(mVariable, currentValue);
+ NotifyVarChange(mVariable, currentValue);
+ mUpdate = 1;
+ }
}
-
diff --git a/gui/objects.hpp b/gui/objects.hpp
index c310b36..2ddeb88 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -355,6 +355,9 @@
int mTextX, mTextY, mTextW, mTextH;
int mIconX, mIconY, mIconW, mIconH;
bool mRendered;
+ bool hasHighlightColor;
+ bool renderHighlight;
+ COLOR mHighlightColor;
};
class GUICheckbox: public RenderObject, public ActionObject, public Conditional
@@ -478,6 +481,12 @@
COLOR mHeaderFontColor;
COLOR mSeparatorColor;
COLOR mHeaderSeparatorColor;
+ bool hasHighlightColor;
+ bool hasFontHighlightColor;
+ bool isHighlighted;
+ COLOR mHighlightColor;
+ COLOR mFontHighlightColor;
+ int startSelection;
};
class GUIListBox : public RenderObject, public ActionObject
@@ -524,20 +533,40 @@
std::string mVariable;
std::string mSelection;
std::string currentValue;
+ std::string mHeaderText;
+ std::string mLastValue;
+ int actualLineHeight;
int mStart;
+ int startY;
+ int mSeparatorH, mHeaderSeparatorH;
int mLineSpacing;
int mUpdate;
- int mBackgroundX, mBackgroundY, mBackgroundW, mBackgroundH;
+ int mBackgroundX, mBackgroundY, mBackgroundW, mBackgroundH, mHeaderH;
+ int mIconWidth, mIconHeight, mSelectedIconWidth, mSelectedIconHeight, mUnselectedIconWidth, mUnselectedIconHeight, mHeaderIconHeight, mHeaderIconWidth;
+ int scrollingSpeed;
+ int scrollingY;
static int mSortOrder;
unsigned mFontHeight;
unsigned mLineHeight;
- int mIconWidth, mIconHeight;
+ Resource* mHeaderIcon;
Resource* mIconSelected;
Resource* mIconUnselected;
Resource* mBackground;
Resource* mFont;
COLOR mBackgroundColor;
COLOR mFontColor;
+ COLOR mHeaderBackgroundColor;
+ COLOR mHeaderFontColor;
+ COLOR mSeparatorColor;
+ COLOR mHeaderSeparatorColor;
+ bool hasHighlightColor;
+ bool hasFontHighlightColor;
+ bool isHighlighted;
+ COLOR mHighlightColor;
+ COLOR mFontHighlightColor;
+ int mHeaderIsStatic;
+ int startSelection;
+ int touchDebounce;
};
// GUIAnimation - Used for animations