From 60bef866471b7029125e9fef5c0e3eecf03aba2f Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 5 Dec 2011 00:00:53 +0100 Subject: [PATCH] Apply theme changes --- OsmAnd/res/drawable-hdpi/box_top_trans.9.png | Bin 0 -> 933 bytes .../res/drawable-hdpi/box_top_trans_l.9.png | Bin 0 -> 910 bytes .../res/drawable-hdpi/box_top_trans_r.9.png | Bin 0 -> 903 bytes OsmAnd/res/drawable/box_top_l.xml | 6 ++ OsmAnd/res/drawable/box_top_lt.xml | 6 ++ OsmAnd/res/drawable/box_top_r.xml | 6 ++ OsmAnd/res/drawable/box_top_rt.xml | 6 ++ OsmAnd/res/drawable/box_top_t.xml | 6 ++ OsmAnd/res/drawable/box_top_trans.9.png | Bin 0 -> 933 bytes OsmAnd/res/drawable/box_top_trans_l.9.png | Bin 0 -> 910 bytes OsmAnd/res/drawable/box_top_trans_r.9.png | Bin 0 -> 903 bytes OsmAnd/res/values/strings.xml | 5 ++ OsmAnd/res/xml/settings_pref.xml | 3 + .../src/net/osmand/plus/OsmandSettings.java | 9 +++ .../osmand/plus/activities/MapActivity.java | 1 + .../plus/activities/SettingsActivity.java | 2 +- .../net/osmand/plus/views/MapInfoControl.java | 27 +++++++-- .../net/osmand/plus/views/MapInfoLayer.java | 57 +++++++++++++----- .../osmand/plus/views/MapStackControl.java | 20 ++++++ .../net/osmand/plus/views/MiniMapControl.java | 4 +- .../plus/views/NextTurnInfoControl.java | 9 +-- .../osmand/plus/views/TextInfoControl.java | 9 +-- 22 files changed, 147 insertions(+), 29 deletions(-) create mode 100644 OsmAnd/res/drawable-hdpi/box_top_trans.9.png create mode 100644 OsmAnd/res/drawable-hdpi/box_top_trans_l.9.png create mode 100644 OsmAnd/res/drawable-hdpi/box_top_trans_r.9.png create mode 100644 OsmAnd/res/drawable/box_top_l.xml create mode 100644 OsmAnd/res/drawable/box_top_lt.xml create mode 100644 OsmAnd/res/drawable/box_top_r.xml create mode 100644 OsmAnd/res/drawable/box_top_rt.xml create mode 100644 OsmAnd/res/drawable/box_top_t.xml create mode 100644 OsmAnd/res/drawable/box_top_trans.9.png create mode 100644 OsmAnd/res/drawable/box_top_trans_l.9.png create mode 100644 OsmAnd/res/drawable/box_top_trans_r.9.png diff --git a/OsmAnd/res/drawable-hdpi/box_top_trans.9.png b/OsmAnd/res/drawable-hdpi/box_top_trans.9.png new file mode 100644 index 0000000000000000000000000000000000000000..a65d362488cbabaa8b4a7d448613761953d4c777 GIT binary patch literal 933 zcmV;W16urvP)=v_i|#y-1hE>gzB#xqOV-~xEu+uK_ovCzT6!5RpC ziS89}92@|3YS6=E%5K;-OO*1QCp`~(GIjF5 zED*bfz;Kabt(u2U1-T4HC4|}|7V7i)-pJ+hcj%UYGxU;ykx(;z3JQ>|65+V8RLeM5 z$&84!?*%4s8r%Xlr_$Pry~)IFr#ZP;dh6pkt)N(eb|o&ed~m z27O=1jJ-FROs=`Pxq^s=&d<;5;M0%jI>Br302F~drYxOS*v}ekq?l#2(p-Db0O1cSlUsNQt5v$N;SX0sRFub>t@0ypR@vDpcV&Ss=D!Z<>*DNcCY z%;J7cyorDnv?e7b^-oPr6+>uTR6?;(IWaL&r`2i)aQO|0D)1cK1vkNEzGB7ZXGuN@ zU0ZmtLi+IzC})=1luBj4*XwPXZCfXCx;K;)s#{cZ~erJ0$TBD>w*k(HG-tkGzGQMB-IANUSL zm2eR^$2^?#Ly{yvp6+3*)!I8bIa!K(#&6l@-_p`j;^N|B9wJ=T)z#J3+S=OF($eC@ zZ@0tY_yaK}{sXSg&dx8RqoX$QfQk&oY`5+9AGhEZv99(TNF@#rzZH7900000NkvXX Hu0mjf1K-3w literal 0 HcmV?d00001 diff --git a/OsmAnd/res/drawable-hdpi/box_top_trans_l.9.png b/OsmAnd/res/drawable-hdpi/box_top_trans_l.9.png new file mode 100644 index 0000000000000000000000000000000000000000..333a5cfa08d3f477eb8a761f400dddb7b7ba4b9a GIT binary patch literal 910 zcmV;919AL`P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2ipt; z5iiY=IRIGz7Jvu<2>_!NHvBm<)x+-Y?$9LZ7Dd^R z_g`U~1?(XKcrq+W8Cs2VNnlP2V37%%@(^tLbNa%bmC%fG&KWhL2=d57m<`LY8(^Jr z#+VtJQP*`vpej8*umeFx?qe&gU%i~hsD`BxKxNK(gbt5JPgMXd3ziTq!h9>}H%9p` zfIMv(84L!Gh6$_$m>U2PjYhkgrltD*z5&1hpwsFJ(hY=M9>Az*4X+`EnvMZT02rr3 zbWc$f6~Oyp(g)H#Gc$9MNF=h3t5KND==`oQ|VD+vmy)VKk_1P}!fHw+_| z%jGUYOJ67yKH0Wy0!UKl2>@dN;#52;u&fhH5#M{n_aBp*j?qlEyxRGEK3*&qYoQNQ zyWKurU0uCAIy%Y#xF*TDz{)j%E-^X~*yO(X=rJ!-o=#0#08&ImdU0{_CY4InLjz4F zlV2N+#&NM&d{M1dGbFF)F`cZ?B`bLHy8-@`g*=TUj|o6ClarIFwY9ZF0G~qx1%Pxq zeZ0NB{dj3<=|QvEWW-2>BiJXAbzPmFo>mtY7QU29rQ_Mz*>{YwtGise zej2S-Yl3rbSF6>zlarII<2X^yIcJP<*Zt9Ak|cR|2H7;tZ-qkPa(;gPgK3(lrfHtz kfBcVsD8d{j{x>mv2lu$}&P!n|P5=M^07*qoM6N<$g2jxH1ONa4 literal 0 HcmV?d00001 diff --git a/OsmAnd/res/drawable-hdpi/box_top_trans_r.9.png b/OsmAnd/res/drawable-hdpi/box_top_trans_r.9.png new file mode 100644 index 0000000000000000000000000000000000000000..14991013c58f138c92e244a5aa2166309e1ca9bd GIT binary patch literal 903 zcmV;219<$2P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2ipt; z5i%Ez_$2E900Rd}L_t(Y$L*FsNE=Zc$3O3KcS$a4{t=P-k5Fhp#I6!t96BhD4nm>!5&G|36*X12Nk6db$wov@Rmjqt&_`L7$ z`@47WXG-$7YIAcF%d!AWzz8ghz~@~`C>ekSbOBF*VPG71wZ6XoChX5fi;YLs#-5VU zBp>LUzL(F@iY0teO8HTNcmelhh`YZ7YX&GZNJB~~?gI*70}c?;0L23mB?1wM=n_JN z?rnxGc%Bypu7GQ;-NDx1)k)tJ-9aDFQXEz*<642{q?8q)qQFe$?u`}+J-=Saposve z59iAUqCm9KXoP`EQ*-K8B@&5g+qN_Hdi@AE1{8xNmIea)WPFQ z3DXSq4KplrLqkI+sZ^@Zb=?l218_A!GQ=aH(a}cjZzIT0=<&+OJQzJ~%OT$RvSS-FQ zl}b6)UO!_o6@}|SR=p4ZPHt@A=P=IVUySKW!IyyBq^{i5< z2<1prweUh^_C|9R4c5?rO>M&CDneaA*0$~Lm6es_LZPrNgz)YKDulR}QodVTTYJ5* zu<-Qa;=+flYQuG-J^fw?QE7>Cm#4Ptx_!I5yR(an zi^Kc-`&Ym@P}44idLXAX$)~M#BiY;A8(&^t{yZ}?^ER1GmfN{GTEDkR87r5|FE%zd z#<#Y%`j3u|>a|+!CeZq3png8hSS)4@4h~uq6BFNNXJ_|DMn*meA1?_yt{D`tTVhE&l)j002ovPDHLkV1mC#oyq_J literal 0 HcmV?d00001 diff --git a/OsmAnd/res/drawable/box_top_l.xml b/OsmAnd/res/drawable/box_top_l.xml new file mode 100644 index 0000000000..82e888e3fd --- /dev/null +++ b/OsmAnd/res/drawable/box_top_l.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/OsmAnd/res/drawable/box_top_lt.xml b/OsmAnd/res/drawable/box_top_lt.xml new file mode 100644 index 0000000000..4870fe6ad0 --- /dev/null +++ b/OsmAnd/res/drawable/box_top_lt.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/OsmAnd/res/drawable/box_top_r.xml b/OsmAnd/res/drawable/box_top_r.xml new file mode 100644 index 0000000000..82e888e3fd --- /dev/null +++ b/OsmAnd/res/drawable/box_top_r.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/OsmAnd/res/drawable/box_top_rt.xml b/OsmAnd/res/drawable/box_top_rt.xml new file mode 100644 index 0000000000..c3d84c8a26 --- /dev/null +++ b/OsmAnd/res/drawable/box_top_rt.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/OsmAnd/res/drawable/box_top_t.xml b/OsmAnd/res/drawable/box_top_t.xml new file mode 100644 index 0000000000..b0416444cc --- /dev/null +++ b/OsmAnd/res/drawable/box_top_t.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/OsmAnd/res/drawable/box_top_trans.9.png b/OsmAnd/res/drawable/box_top_trans.9.png new file mode 100644 index 0000000000000000000000000000000000000000..a65d362488cbabaa8b4a7d448613761953d4c777 GIT binary patch literal 933 zcmV;W16urvP)=v_i|#y-1hE>gzB#xqOV-~xEu+uK_ovCzT6!5RpC ziS89}92@|3YS6=E%5K;-OO*1QCp`~(GIjF5 zED*bfz;Kabt(u2U1-T4HC4|}|7V7i)-pJ+hcj%UYGxU;ykx(;z3JQ>|65+V8RLeM5 z$&84!?*%4s8r%Xlr_$Pry~)IFr#ZP;dh6pkt)N(eb|o&ed~m z27O=1jJ-FROs=`Pxq^s=&d<;5;M0%jI>Br302F~drYxOS*v}ekq?l#2(p-Db0O1cSlUsNQt5v$N;SX0sRFub>t@0ypR@vDpcV&Ss=D!Z<>*DNcCY z%;J7cyorDnv?e7b^-oPr6+>uTR6?;(IWaL&r`2i)aQO|0D)1cK1vkNEzGB7ZXGuN@ zU0ZmtLi+IzC})=1luBj4*XwPXZCfXCx;K;)s#{cZ~erJ0$TBD>w*k(HG-tkGzGQMB-IANUSL zm2eR^$2^?#Ly{yvp6+3*)!I8bIa!K(#&6l@-_p`j;^N|B9wJ=T)z#J3+S=OF($eC@ zZ@0tY_yaK}{sXSg&dx8RqoX$QfQk&oY`5+9AGhEZv99(TNF@#rzZH7900000NkvXX Hu0mjf1K-3w literal 0 HcmV?d00001 diff --git a/OsmAnd/res/drawable/box_top_trans_l.9.png b/OsmAnd/res/drawable/box_top_trans_l.9.png new file mode 100644 index 0000000000000000000000000000000000000000..333a5cfa08d3f477eb8a761f400dddb7b7ba4b9a GIT binary patch literal 910 zcmV;919AL`P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2ipt; z5iiY=IRIGz7Jvu<2>_!NHvBm<)x+-Y?$9LZ7Dd^R z_g`U~1?(XKcrq+W8Cs2VNnlP2V37%%@(^tLbNa%bmC%fG&KWhL2=d57m<`LY8(^Jr z#+VtJQP*`vpej8*umeFx?qe&gU%i~hsD`BxKxNK(gbt5JPgMXd3ziTq!h9>}H%9p` zfIMv(84L!Gh6$_$m>U2PjYhkgrltD*z5&1hpwsFJ(hY=M9>Az*4X+`EnvMZT02rr3 zbWc$f6~Oyp(g)H#Gc$9MNF=h3t5KND==`oQ|VD+vmy)VKk_1P}!fHw+_| z%jGUYOJ67yKH0Wy0!UKl2>@dN;#52;u&fhH5#M{n_aBp*j?qlEyxRGEK3*&qYoQNQ zyWKurU0uCAIy%Y#xF*TDz{)j%E-^X~*yO(X=rJ!-o=#0#08&ImdU0{_CY4InLjz4F zlV2N+#&NM&d{M1dGbFF)F`cZ?B`bLHy8-@`g*=TUj|o6ClarIFwY9ZF0G~qx1%Pxq zeZ0NB{dj3<=|QvEWW-2>BiJXAbzPmFo>mtY7QU29rQ_Mz*>{YwtGise zej2S-Yl3rbSF6>zlarII<2X^yIcJP<*Zt9Ak|cR|2H7;tZ-qkPa(;gPgK3(lrfHtz kfBcVsD8d{j{x>mv2lu$}&P!n|P5=M^07*qoM6N<$g2jxH1ONa4 literal 0 HcmV?d00001 diff --git a/OsmAnd/res/drawable/box_top_trans_r.9.png b/OsmAnd/res/drawable/box_top_trans_r.9.png new file mode 100644 index 0000000000000000000000000000000000000000..14991013c58f138c92e244a5aa2166309e1ca9bd GIT binary patch literal 903 zcmV;219<$2P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2ipt; z5i%Ez_$2E900Rd}L_t(Y$L*FsNE=Zc$3O3KcS$a4{t=P-k5Fhp#I6!t96BhD4nm>!5&G|36*X12Nk6db$wov@Rmjqt&_`L7$ z`@47WXG-$7YIAcF%d!AWzz8ghz~@~`C>ekSbOBF*VPG71wZ6XoChX5fi;YLs#-5VU zBp>LUzL(F@iY0teO8HTNcmelhh`YZ7YX&GZNJB~~?gI*70}c?;0L23mB?1wM=n_JN z?rnxGc%Bypu7GQ;-NDx1)k)tJ-9aDFQXEz*<642{q?8q)qQFe$?u`}+J-=Saposve z59iAUqCm9KXoP`EQ*-K8B@&5g+qN_Hdi@AE1{8xNmIea)WPFQ z3DXSq4KplrLqkI+sZ^@Zb=?l218_A!GQ=aH(a}cjZzIT0=<&+OJQzJ~%OT$RvSS-FQ zl}b6)UO!_o6@}|SR=p4ZPHt@A=P=IVUySKW!IyyBq^{i5< z2<1prweUh^_C|9R4c5?rO>M&CDneaA*0$~Lm6es_LZPrNgz)YKDulR}QodVTTYJ5* zu<-Qa;=+flYQuG-J^fw?QE7>Cm#4Ptx_!I5yR(an zi^Kc-`&Ym@P}44idLXAX$)~M#BiY;A8(&^t{yZ}?^ER1GmfN{GTEDkR87r5|FE%zd z#<#Y%`j3u|>a|+!CeZq3png8hSS)4@4h~uq6BFNNXJ_|DMn*meA1?_yt{D`tTVhE&l)j002ovPDHLkV1mC#oyq_J literal 0 HcmV?d00001 diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 4240f2df80..8154722195 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -1,5 +1,10 @@ + Use transparent map controls (requires application restart) + Transparent theme + + Configure application look and feel + Appearance Native library is not supported on this device. Initializing native library... Map view auto follow diff --git a/OsmAnd/res/xml/settings_pref.xml b/OsmAnd/res/xml/settings_pref.xml index f28cc257c8..ae95fb48b0 100644 --- a/OsmAnd/res/xml/settings_pref.xml +++ b/OsmAnd/res/xml/settings_pref.xml @@ -87,6 +87,9 @@ + + +