summaryrefslogtreecommitdiffstats
path: root/gui/theme/common/portrait.xml
diff options
context:
space:
mode:
Diffstat (limited to 'gui/theme/common/portrait.xml')
-rwxr-xr-xgui/theme/common/portrait.xml185
1 files changed, 114 insertions, 71 deletions
diff --git a/gui/theme/common/portrait.xml b/gui/theme/common/portrait.xml
index b1ab160d1..251be75c6 100755
--- a/gui/theme/common/portrait.xml
+++ b/gui/theme/common/portrait.xml
@@ -80,6 +80,12 @@
<font resource="fixed"/>
</style>
+ <style name="terminal">
+ <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
+ <background color="%background_color%"/>
+ <font resource="fixed" spacing="3" color="%text_color%"/>
+ </style>
+
<style name="fileselector">
<highlight color="%fileselector_highlight_color%"/>
<header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
@@ -3167,7 +3173,7 @@
<button style="main_button">
<placement x="%indent%" y="%row13a_y%"/>
<text>{@terminal_btn=Terminal}</text>
- <action function="page">terminalfolder</action>
+ <action function="page">terminalcommand</action>
</button>
<button style="main_button">
@@ -4082,94 +4088,131 @@
</action>
</page>
- <page name="terminalfolder">
+ <page name="terminalcommand">
<template name="page"/>
- <text style="text_l">
- <placement x="%col1_x_header%" y="%row3_header_y%"/>
- <text>{@term_hdr=Terminal Command}</text>
- </text>
-
- <text style="text_m">
- <placement x="%col1_x_header%" y="%row4_header_y%"/>
- <text>{@term_sel_folder_hdr=Browse to Starting Folder}</text>
- </text>
-
- <template name="sort_options"/>
-
- <fileselector>
- <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
- <text>%tw_terminal_location%</text>
- <filter folders="1" files="0"/>
- <path name="tw_terminal_location" default="/"/>
- <data name="tw_terminal"/>
- <selection name="tw_terminal_selection"/>
- </fileselector>
-
- <button style="fab">
- <image resource="fab_selectfolder"/>
- <action function="page">terminalcommand</action>
- </button>
-
- <action>
- <touch key="home"/>
- <action function="page">main</action>
- </action>
-
- <action>
- <touch key="back"/>
- <action function="page">advanced</action>
- </action>
- </page>
+ <fill color="%background_color%">
+ <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
+ </fill>
- <page name="terminalcommand">
- <template name="page"/>
+ <terminal>
+ <condition var1="tw_hide_kb" var2="0"/>
+ <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
+ </terminal>
- <text style="text_l">
- <placement x="%col1_x_header%" y="%row3_header_y%"/>
- <text>{term_hdr=Terminal Command}</text>
- </text>
+ <terminal>
+ <condition var1="tw_hide_kb" var2="1"/>
+ <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
+ </terminal>
- <text style="text_m">
- <placement x="%col1_x_header%" y="%row4_header_y%"/>
- <text>%tw_terminal_location%</text>
- </text>
+ <template name="keyboardterminaltemplate"/>
- <template name="console_terminal"/>
+ <template name="keyboardtemplate"/>
- <input>
- <placement x="%indent%" y="%row11a_y%" w="%content_width%" h="%input_height%"/>
- <text>%tw_terminal_command%</text>
- <data name="tw_terminal_command"/>
- <restrict minlen="1"/>
- <action function="terminalcommand">%tw_terminal_command%</action>
- </input>
+ <object type="fill" color="#000000">
+ <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
+ </object>
- <fill color="%accent_color%">
- <placement x="%indent%" y="row12a_y" w="%content_width%" h="input_line_width" placement="1"/>
- </fill>
+ <object type="button">
+ <condition var1="tw_samsung_navbar" op="!=" var2="1" />
+ <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="back" />
+ <condition var1="tw_busy" var2="0" />
+ <actions>
+ <action function="set">tw_hide_kb=0</action>
+ <action function="key">back</action>
+ </actions>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_samsung_navbar" op="=" var2="1" />
+ <condition var1="tw_hide_kb" op="=" var2="0" />
+ <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="kb_hide" />
+ <condition var1="tw_busy" var2="0" />
+ <actions>
+ <action function="set">tw_hide_kb=1</action>
+ <action function="page">terminalcommand</action>
+ </actions>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_samsung_navbar" op="=" var2="1" />
+ <condition var1="tw_hide_kb" op="=" var2="1" />
+ <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="kb_show" />
+ <condition var1="tw_busy" var2="0" />
+ <actions>
+ <action function="set">tw_hide_kb=0</action>
+ <action function="page">terminalcommand</action>
+ </actions>
+ </object>
- <button>
- <condition var1="tw_terminal_state" var2="1"/>
- <highlight color="%highlight_color%"/>
- <placement x="%btn4_col4_x%" y="%row12a_y%"/>
- <font resource="font_m" color="%text_button_color%"/>
- <text>{@term_kill_btn=Kill}</text>
- <image resource="tab_4"/>
- <action function="killterminal"/>
- </button>
+ <object type="button">
+ <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="home" />
+ <condition var1="tw_busy" var2="0" />
+ <actions>
+ <action function="set">tw_hide_kb=0</action>
+ <action function="key">home</action>
+ </actions>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_samsung_navbar" op="!=" var2="1" />
+ <condition var1="tw_hide_kb" op="=" var2="0" />
+ <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="kb_hide" />
+ <condition var1="tw_busy" var2="0" />
+ <actions>
+ <action function="set">tw_hide_kb=1</action>
+ <action function="page">terminalcommand</action>
+ </actions>
+ </object>
+
+ <object type="button">
+ <condition var1="tw_samsung_navbar" op="!=" var2="1" />
+ <condition var1="tw_hide_kb" op="=" var2="1" />
+ <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="kb_show" />
+ <condition var1="tw_busy" var2="0" />
+ <actions>
+ <action function="set">tw_hide_kb=0</action>
+ <action function="page">terminalcommand</action>
+ </actions>
+ </object>
- <template name="keyboardtemplate"/>
+ <object type="button">
+ <condition var1="tw_samsung_navbar" op="=" var2="1" />
+ <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
+ <image resource="back" />
+ <condition var1="tw_busy" var2="0" />
+ <actions>
+ <action function="set">tw_hide_kb=0</action>
+ <action function="key">back</action>
+ </actions>
+ </object>
<action>
<touch key="home"/>
- <action function="page">main</action>
+ <actions>
+ <action function="set">tw_hide_kb=0</action>
+ <action function="page">main</action>
+ </actions>
</action>
<action>
<touch key="back"/>
- <action function="page">terminalfolder</action>
+ <actions>
+ <action function="set">tw_hide_kb=0</action>
+ <action function="page">advanced</action>
+ </actions>
</action>
+
+ <object type="action">
+ <touch key="power+voldown" />
+ <action function="screenshot" />
+ </object>
</page>
<page name="sideload">