Bug 715287: Make BrowserToolbar shadow to be lighter. [r=mfinkle]
authorSriram Ramasubramanian <sriram@mozilla.com>
Fri, 13 Apr 2012 12:01:51 -0700
changeset 94947 eabff322e404cae2ae9f639816afb1f8265fed4f
parent 94946 aaa7f8a1945cc4e16cf41cd1b57f51cad85619cf
child 94948 9f703a3559c8469c93585a449c08b85e7a5cd6f7
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs715287
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 715287: Make BrowserToolbar shadow to be lighter. [r=mfinkle]
mobile/android/base/Makefile.in
mobile/android/base/resources/drawable-hdpi/address_bar_bg_shadow.png
mobile/android/base/resources/drawable-xhdpi-v11/address_bar_bg_shadow.png
mobile/android/base/resources/drawable/address_bar_bg_shadow.png
mobile/android/base/resources/drawable/address_bar_bg_shadow.xml
mobile/android/base/resources/drawable/address_bar_bg_shadow_repeat.xml
mobile/android/base/resources/layout-land-v14/browser_toolbar.xml
mobile/android/base/resources/layout/browser_toolbar.xml
--- a/mobile/android/base/Makefile.in
+++ b/mobile/android/base/Makefile.in
@@ -383,16 +383,17 @@ RES_DRAWABLE_HDPI = \
   res/drawable-hdpi/home_star.png \
   res/drawable-hdpi/abouthome_icon.png \
   res/drawable-hdpi/abouthome_logo.png \
   res/drawable-hdpi/abouthome_separator.9.png \
   res/drawable-hdpi/abouthome_sync_logo.png \
   res/drawable-hdpi/abouthome_sync_bg.9.png \
   res/drawable-hdpi/abouthome_sync_pressed_bg.9.png \
   res/drawable-hdpi/abouthome_thumbnail.png \
+  res/drawable-hdpi/address_bar_bg_shadow.png \
   res/drawable-hdpi/awesomebar_tab.9.png \
   res/drawable-hdpi/awesomebar_tab_pressed.9.png \
   res/drawable-hdpi/ic_addons_empty.png \
   res/drawable-hdpi/ic_awesomebar_go.png \
   res/drawable-hdpi/ic_awesomebar_search.png \
   res/drawable-hdpi/ic_menu_bookmark_add.png \
   res/drawable-hdpi/ic_menu_bookmark_remove.png \
   res/drawable-hdpi/ic_menu_find_in_page.png \
@@ -447,16 +448,17 @@ RES_DRAWABLE_XHDPI_V11 = \
   res/drawable-xhdpi-v11/folder.png \
   res/drawable-xhdpi-v11/abouthome_icon.png \
   res/drawable-xhdpi-v11/abouthome_logo.png \
   res/drawable-xhdpi-v11/abouthome_separator.9.png \
   res/drawable-xhdpi-v11/abouthome_sync_logo.png \
   res/drawable-xhdpi-v11/abouthome_sync_bg.9.png \
   res/drawable-xhdpi-v11/abouthome_sync_pressed_bg.9.png \
   res/drawable-xhdpi-v11/abouthome_thumbnail.png \
+  res/drawable-xhdpi-v11/address_bar_bg_shadow.png \
   res/drawable-xhdpi-v11/awesomebar_tab.9.png \
   res/drawable-xhdpi-v11/awesomebar_tab_pressed.9.png \
   res/drawable-xhdpi-v11/ic_addons_empty.png \
   res/drawable-xhdpi-v11/ic_awesomebar_go.png \
   res/drawable-xhdpi-v11/ic_awesomebar_search.png \
   res/drawable-xhdpi-v11/ic_menu_bookmark_add.png \
   res/drawable-xhdpi-v11/ic_menu_bookmark_remove.png \
   res/drawable-xhdpi-v11/ic_menu_find_in_page.png \
@@ -547,17 +549,18 @@ RES_LAYOUT += res/layout/crash_reporter.
 endif
 
 MOZ_ANDROID_DRAWABLES += \
   $(SYNC_RES_DRAWABLE)                                                          \
   mobile/android/base/resources/drawable/abouthome_bg_repeat.xml                \
   mobile/android/base/resources/drawable/abouthome_sync_box.xml                 \
   mobile/android/base/resources/drawable/abouthome_topsites_bg_repeat.xml       \
   mobile/android/base/resources/drawable/address_bar_bg.xml                     \
-  mobile/android/base/resources/drawable/address_bar_bg_shadow.xml              \
+  mobile/android/base/resources/drawable/address_bar_bg_shadow.png              \
+  mobile/android/base/resources/drawable/address_bar_bg_shadow_repeat.xml       \
   mobile/android/base/resources/drawable/address_bar_url_default.xml            \
   mobile/android/base/resources/drawable/address_bar_url_pressed.xml            \
   mobile/android/base/resources/drawable/autocomplete_list_bg.9.png             \
   mobile/android/base/resources/drawable/awesomebar_tab_indicator.xml           \
   mobile/android/base/resources/drawable/awesomebar_tab_press.xml               \
   mobile/android/base/resources/drawable/awesomebar_tab_press_selected.xml      \
   mobile/android/base/resources/drawable/awesomebar_tab_selected.xml            \
   mobile/android/base/resources/drawable/awesomebar_tab_unselected.xml          \
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..6de75266019d152beea615e287d7415f09b6ed14
GIT binary patch
literal 979
zc$|GxJ#W)M7&ah9s8ZJoI-T4lm56=kuQaE)Rb!_l5)M%km5g!hOJb$=8T&$<Oo$D!
zup<5g8xunZCjJ5w6D#}#&iMi%rKhv+?$z@=_xkbszHPUj9v&PY2!e3fY}g&XKFFVk
z1^&J+e!k_)V^;68E*-JCn-JmBr$Yjop*toW;`)o1-$<1co(H`?>pRb|M?=ZYF;W)B
zLO!Y&S?qdK!oZM>gUA$reYq7u;G5zL-GNSQkx9^4CZxM;^}OZOtN7x@IjCls3xtHZ
zAPaAz6lbQm(#3qAhh-70AZ%)i>!kWl8(1_UK$p~#2N42>At6mS4D<vj5GgX`(<mVg
z>jqZJU^7I1TjGy!$G+O!#ZRU<VJyb7JfF{{xhm0QETc-Ll4~eRi6ctsB4Tb<iqey<
zf=yB{31Sw|2;^sXNN3Cx#qB4A@lG~MH#Tv@<jjp_BtiKfpyS*P4Z|HeWgRlQ8=dwR
zF_AkYrL)B2KW=oAlVfZp#AP(;QF^m=u|1)TrV|<it80KFQYE-D52{d?LP<mV#!FR(
zI#v*dkk3;9ijM0AQO-SGi8~H%Mk#Y6k2Gyl<Pj+de5`3T>rAoKvQ@7mR7Yoe8QNMI
z>Kd%6YTe#)ZR*WJ60t4U|I5|(a`U=bvq=)XBK}oEL$LA(2m5nD`*T@y{r$Npd$}@C
zM*goVwjo|>`F2<1{IKg167kkZcn=(Xe3Uoianru+W#5PXVDN*yzJCO+Yd;%b&xCsg
Xq3~Yl{XT#9A#by0y=8x@4c`0#h^8b*
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ee55b8db0701ebe4d8003930882703fcf6f83f7b
GIT binary patch
literal 979
zc$|Gx%Z}496b%m{R5TyJtgOstMrso~uTHIo=`=~1N~Bb6CAw^yxNX!X4v9-Mvp|R)
zKf#I(8zj~&Sn~_45FY^I4{-VtLh4vfY+s#od~<T|yKd*{QR%oO2*OeO%I@*?e(^kf
zz~3MLynoG?$IKbBKAo_YmlEMJpko5skvAnh;sw_)zmd8i+<P7lhHU6Q!#<59ufRxo
zlnBMBU*w7B&j|x#G7V!>{Qc#t2*SV=U+6A$6N}8ktDBVcZ#o12X71Ml@!|=n=a>sb
zgn1y37IB7iQ(Ws}zAwVE2-XlbH^og-L$?boni8N(YQ={L0mG1xrW*z-0|g>QhI|?o
zq+#8_N)>E}$Zt!73GUgg?Opt2iZjL%EX%9aN?NHBO{X%d)oO)?qEtAdl3mBl%PVnq
zvQw~0=BHu8LK=hO?2YM?nWDJ+gecj|#@W^;ZkU{ViHsyD{{wX0+o4gkM`x@@Cby%r
z!F5999?9r3_4$vRoD}2)TPg7vO$U@Nb}n{jl+kQP6JYfXaEeq3uFZog)TKz$kiPX&
zm7$Imgdybf41iPD^TW8{o~^}Q7q{b#d9hF0wkh(66ovuTw5D~gG+R~6aS(FQxn6~~
zR)x9-o2u&AJFZRrWkh1O;|6=K1rKtIy4kQv8onYyE2R-w`-8*7x!8wu*>Hn{xip=F
zT$v{$|5p{e5HGc2yRUJ6*mntud26J+2TI+~zj*%~x9!V8{(T&bMn9&FyX8i?)fJpa
ajW>6Mqf249`1zq+v{~Ef*q@rCw|@bt=p^?5
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..021f6abf7df0dbfa23048f397053cb04c7d12514
GIT binary patch
literal 973
zc$|GxO^?z*7;Yr4W)p74sHaKS!)_w&4E;bR)D26EOJb3*Byyy*12k+qbvj7l=*>Ui
z&+zEQ7`^%j_TZoJ>d`4sG$!n1+L?LtJkPv+`o14}-IwL#C&!W`l{=SqU#xfX=l+p+
zv(M$HVtLG+A-|#%zVsN8ngJaX(22Y$=@Tzlz5PKNl2m#f4u*W_zQR6@6fegpS(Hfm
zXq;z>=g$cTV=@h6OaArcn+(FhlHV9EbdwgDg_mnauGZawzn=T`Kt6u~8W|P>5#b)l
zqU$)tnI&&@vDoKfRR$XfpIh=asiE5gEy@Tm6s_Vzgn(%(NH<IqJp)yUswx!ItRNj5
zCa%`NZph*`7EEy8Ztw0ACrh4jo?um7E|<zuQz)CNs9vw<8r5n=AS&r9=3Z8b)00BM
zCaKTDgoiW+`Pm!O1-E3m_=G6g%f{)>CSjPGd5MY?sQv?V-P@s2v`44BPbRmc)4?hs
zYM-QZ!F=)KCMP*L!7WBSPT7Fc>%zs}jB=XJXaZVSCOAc!0ypMC4H`<M=*ZZ4sj1Mw
zRfHiF^9+Df*Ym?T=bmlET^D!alzXvHI<_T?h!TbY)|)N8hT3MW<v0jA=($mYwqApV
z4lgv#u?wzE{Y6A#UT}lI+}c5IUN>7dVc|Oxv>A=S#vdFW&P6|*%a$7)&c!&$RYfxD
ze^pV0M5*Q5eT|F5zDr0fT7!um`1n<eME^YK*v&!qa~zCDy}RS1hmT6&yHvU-^=^LO
PH1Y=PI9>bG#pwMXk>erY
rename from mobile/android/base/resources/drawable/address_bar_bg_shadow.xml
rename to mobile/android/base/resources/drawable/address_bar_bg_shadow_repeat.xml
--- a/mobile/android/base/resources/drawable/address_bar_bg_shadow.xml
+++ b/mobile/android/base/resources/drawable/address_bar_bg_shadow_repeat.xml
@@ -1,22 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
-    
-    <item>
-
-        <shape android:shape="rectangle">
-             <size android:height="1dp"/>
-             <solid android:color="#18000000"/>
-        </shape>
-
-    </item>
-
-    <item android:top="1dp">
-
-        <shape android:shape="rectangle">
-             <size android:height="1dp"/>
-             <solid android:color="#48000000"/>
-        </shape>
-
-    </item>
-
-</layer-list>
+<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
+        android:src="@drawable/address_bar_bg_shadow"
+        android:tileMode="repeat"
+        android:dither="false"/>
--- a/mobile/android/base/resources/layout-land-v14/browser_toolbar.xml
+++ b/mobile/android/base/resources/layout-land-v14/browser_toolbar.xml
@@ -71,14 +71,14 @@
                      android:layout_centerVertical="true"
                      android:src="@drawable/site_security_level"
                      android:layout_alignRight="@id/awesome_bar"/>
 
          <ImageView android:id="@+id/shadow"
                     android:layout_width="fill_parent"
                     android:layout_height="2dp"
                     android:layout_alignParentBottom="true"
-                    android:src="@drawable/address_bar_bg_shadow"
+                    android:background="@drawable/address_bar_bg_shadow_repeat"
                     android:visibility="gone"/>
 
     </RelativeLayout>
 
 </LinearLayout>
--- a/mobile/android/base/resources/layout/browser_toolbar.xml
+++ b/mobile/android/base/resources/layout/browser_toolbar.xml
@@ -72,14 +72,14 @@
                      android:layout_centerVertical="true"
                      android:src="@drawable/site_security_level"
                      android:layout_alignRight="@id/awesome_bar"/>
 
          <ImageView android:id="@+id/shadow"
                     android:layout_width="fill_parent"
                     android:layout_height="2dp"
                     android:layout_alignParentBottom="true"
-                    android:src="@drawable/address_bar_bg_shadow"
+                    android:background="@drawable/address_bar_bg_shadow_repeat"
                     android:visibility="gone"/>
 
     </RelativeLayout>
 
 </LinearLayout>