diff options
-rw-r--r-- | gui/console.cpp | 2 | ||||
-rw-r--r-- | gui/devices/240x240/res/ui.xml | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index 51ad21e59..f0d76c646 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -229,7 +229,7 @@ int GUIConsole::RenderConsole(void) line_char_width = gr_maxExW(curr_line.c_str(), fontResource, mConsoleW); if (line_char_width < curr_line.size()) { rConsole.push_back(curr_line.substr(0, line_char_width)); - curr_line = curr_line.substr(line_char_width, curr_line.size() - line_char_width - 1); + curr_line = curr_line.substr(line_char_width, curr_line.size() - line_char_width); } else { rConsole.push_back(curr_line); break; diff --git a/gui/devices/240x240/res/ui.xml b/gui/devices/240x240/res/ui.xml index ca3d510cc..aaaa4d283 100644 --- a/gui/devices/240x240/res/ui.xml +++ b/gui/devices/240x240/res/ui.xml @@ -94,6 +94,7 @@ <variable name="text_success_color" value="#33B5E5" /> <variable name="text_fail_color" value="#FF0101" /> <variable name="highlight_color" value="#90909080" /> + <variable name="caps_highlight_color" value="#33B5E580" /> <variable name="home_button_x" value="3" /> <variable name="home_button_y" value="220" /> <variable name="back_button_x" value="209" /> @@ -350,6 +351,7 @@ <placement x="0" y="90" /> <layout resource1="keyboard1" resource2="keyboard2" resource3="keyboard3" resource4="keyboard4" /> <highlight color="%highlight_color%" /> + <capshighlight color="%caps_highlight_color%" /> <layout1> <keysize height="32" width="24" /> <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" /> @@ -358,7 +360,7 @@ <row4 key01="36:layout3" key02="24:" key03="120: " key04="24:." key05="36:a:action" /> </layout1> <layout2> - <keysize height="32" width="24" /> + <keysize height="32" width="24" capslock="0" revert_layout="1" /> <row1 key01="Q" long01="1" key02="W" long02="2" key03="E" long03="3" key04="R" long04="4" key05="T" long05="5" key06="Y" long06="6" key07="U" long07="7" key08="I" long08="8" key09="O" long09="9" key10="P" long10="0" /> <row2 key01="36:A" key02="S" key03="D" key04="F" key05="G" key06="H" key07="J" key08="K" key09="36:L" /> <row3 key01="36:layout1" key02="Z" key03="X" key04="C" key05="V" key06="B" key07="N" key08="M" key09="36:c:8" /> @@ -2132,9 +2134,9 @@ <object type="button"> <highlight color="%highlight_color%" /> <condition var1="tw_has_usb_storage" var2="1" /> - <placement x="%col1_x%" y="row4_y" /> + <placement x="%col_center_x%" y="%row5_y%" /> <font resource="font" color="%button_text_color%" /> - <text>Mount USB Storage</text> + <text>Mount USB</text> <image resource="main_button" /> <action function="page">usb_mount</action> </object> @@ -2598,7 +2600,7 @@ <object type="slidervalue"> <condition var1="tw_has_brightnesss_file" var2="1" /> - <placement x="col1_x" y="%row12_text_y%" w="%slidervalue_w%" /> + <placement x="col1_x" y="%row8_text_y%" w="%slidervalue_w%" /> <font resource="font" color="%text_color%" /> <colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" /> <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" /> |