Bug 685308 (2/2) - Make tablet UI work in RTL locales [r=wesj]
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 22 Sep 2011 19:20:01 -0700
changeset 77373 94852085df97069e100f79a360af7ee3a99a9aaa
parent 77372 1e9807475e1e7011df078a324807dc4f7efd36a0
child 77374 cbc62f5e79e8e33b47ff089b762caadb86399ec7
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewerswesj
bugs685308
milestone9.0a1
Bug 685308 (2/2) - Make tablet UI work in RTL locales [r=wesj]
mobile/themes/core/browser.css
mobile/themes/core/gingerbread/browser.css
mobile/themes/core/gingerbread/images/close-background-hdpi-rtl.png
mobile/themes/core/honeycomb/browser.css
mobile/themes/core/honeycomb/images/close-background-hdpi-rtl.png
mobile/themes/core/honeycomb/images/tabs-default-bg-rtl.png
mobile/themes/core/honeycomb/images/tabs-selected-bg-rtl.png
mobile/themes/core/images/close-background-hdpi-rtl.png
mobile/themes/core/jar.mn
mobile/themes/core/tablet.css
--- a/mobile/themes/core/browser.css
+++ b/mobile/themes/core/browser.css
@@ -920,20 +920,16 @@ autocompleteresult.noresults > .autocomp
 }
 
 /* Left sidebar (tabs)  ---------------------------------------------------- */
 #tabs-container {
   -moz-border-end: @border_width_large@ solid #262629;
   background: #5e6166;
 }
 
-#tabs:-moz-locale-dir(rtl) {
-  -moz-box-align: start;
-}
-
 #tabs > .tabs-scrollbox {
   max-width: 350px;
 }
 
 #tabs .tabs-list {
   display: block;
   -moz-column-width: 121px;
   -moz-column-gap: 0;
--- a/mobile/themes/core/gingerbread/browser.css
+++ b/mobile/themes/core/gingerbread/browser.css
@@ -874,20 +874,16 @@ autocompleteresult.noresults > .autocomp
 }
 
 /* Left sidebar (tabs)  ---------------------------------------------------- */
 #tabs-container {
   -moz-border-end: @border_width_large@ solid #262629;
   background: @color_background_default@;
 }
 
-#tabs:-moz-locale-dir(rtl) {
-  -moz-box-align: start;
-}
-
 #tabs > .tabs-scrollbox {
   max-width: 350px;
 }
 
 #tabs .tabs-list {
   display: block;
   -moz-column-width: 121px;
   -moz-column-gap: 0;
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..d50c1962b4fb657059bd20ccc2668e8a397c3999
GIT binary patch
literal 1360
zc${^VeLT|%9LIlYQq037&qW>zacwJ>r)IOw9vp@|gl_oRRJ=Tm?DTLwOxu*_!oB3F
zsFla5jG8&!u25&#p&C<()1BueRBrWp-5>YI{qgy}U*CuKzhADOkC&#pu{r<%nj|95
zUrAeKQa3}Cm1PagE1?oa@xlRL<~X0euC^o+LsOI_ehZ=N_`$Ekv_uT!Ul(9FgE#<y
zgphEUz}V607nIoWLxvsm>!K6}vcxL>lHs`^9n3Asm0322R}U%Yn85h@;lo!URPuR4
zgX(tuwphn=O~=}Dhl|;;I`V);4dQ!j7@PYW0oio)1(S{}SvxHhF4LostY_{$D_0-M
z%@oclv(Ak6Suzo5-mwk8$n$jrt*ma)`A9*y4Uw4c!DiJ%jY<p!LQ@REf&dMbOWy{x
z=vWe<NnlTejn#$xt~DxAXZNm4-fn&QH!>jzYO^h6=;VSq=@^OA9gz7ljq1reTu9%E
zDuAXgpIX(ieMjUOJ%rB9-Dz>^^Kf^xnDI3-Z>`HfFU3`#1)2McMe*9DanXA&$8itd
z%rZzglRQ2)jq1l)rds`M`SkW(X0?po<}zvumZ>tm<K&?yrh9toiuxBMsKtO@h8n@P
zDv}oYX6$v{eOv+uQfzW?F?Et#5G+M(9Q;Kh3Cm6>hRn(Dcn*lOb3_>vSeS;1#_o=5
zx({sydXo9pCVt<5rP^+I6TGRh@$=NJT<9ZV;mWI)@?~h%b+v%kV-5<M6MnVw2RFsY
z>LC{|n5H}JdL9t;>eHlaj`w6p1t<HmNeRU7rdEsCz1vMS@TsoxS;)`~y0JOOl*O}_
zWeG;QyRT21p$S_r-{2HkRVV9Ot;~O}5v{q(=P*Fk4t4M?e`uz)%t4m7x$a4r=fhX$
zM`QyY>Jo)e^=~H>S}?2ij>KlEKkq1GT|MkC`=|!pIj*@p%5u0T`{-$aB`;7;6zGsU
zKWw-8m72@W8ydk~5_Ys+XwzRWw9ECDS*lK+rh>JD>n0mIiKNUq>7JRfz3f}kb=|7w
z+WbQTa!{9DsP!H2%C|<HBQfR<+vD{tIvbb#BPcpk$I^w^W|<%zvyGrv(hI331{<#U
z8k-F4o!VlNqaD5SM>GaREcPAPwCR4Mz1JGTPc?s4-k#t`vG&?9&aHoMsv2mIS$-?)
zSQKHB6fi7(z*mefbHmp*+8A?7UDsZZc2PiES|PawMy}d=s#k<cD*4op@iJe^`aCN>
zS*oI;_vq#>6~0fl=}3xwfhS(lp&nepBR)u9dY`D!Kvz{(s>yjDo@Ekyuc3=vi+04B
z728MAqB2J+CXk9F1+smu3Px|u;}>26V<-JIDK#lExZ!aFmj1Zr%+$&UDNcG#aQ>cD
z5}^^sW=`{G#ec5OY0D&={QVpivE?))=jZFcSC(nmL&Vi0qubD<6AxUEn3<dHN0u&K
z6l(Fmyd3;7uGD@pHsne&h4_YiJZ!cc?5d1x7_yTCQ=t*tMP~|@_tm<g(cn+w>~;k1
ztcqP)pbnV$ow%Rdtzs8+cjsQMlM_#3^*3${c>0$)(r2>BFt+$WpPFXHu;)dFAH4G!
z5#TRJz2Wr03OhGDjjm^KVO;^y!@{17GAh=>2Wr3=<c}{T$499)gg2x5JCgEn1z1J8
z%13R%E`4_@WeBc(Hr7mh2osEC#<)Z$$0z|H;Ru8S+}Q!)9Ed=<ARS#C_dCE*E^xTV
zkQ(YgLVN;vl+OBp0l^bzDFvgiLO=qYc_K172Ec#`Q8DJE_((>Ke@rCEO6rPnQyu{%
LybrD(OFQ=u<}+UW
--- a/mobile/themes/core/honeycomb/browser.css
+++ b/mobile/themes/core/honeycomb/browser.css
@@ -352,34 +352,41 @@ toolbarbutton.urlbar-button {
   -moz-box-orient: vertical;
   list-style-image: url("chrome://browser/skin/images/tabs-hdpi.png");
   background-image: url("chrome://browser/skin/images/tabs-default-bg.png");
   background-position: top left;
   background-repeat: no-repeat;
   -moz-margin-end: -@margin_large@; /* allow back button to overlap a bit */
   min-width: 100px !important; /* same width than bg image */
 }
+#tool-tabs:-moz-locale-dir(rtl) {
+  background-image: url("chrome://browser/skin/images/tabs-default-bg-rtl.png");
+}
 
 #tool-tabs:not([disabled="true"]):active,
 #tool-tabs:not([disabled="true"])[open="true"] {
   background-image: url("chrome://browser/skin/images/tabs-selected-bg.png");
   background-color: transparent;
 }
+#tool-tabs:not([disabled="true"]):active:-moz-locale-dir(rtl),
+#tool-tabs:not([disabled="true"])[open="true"]:-moz-locale-dir(rtl) {
+  background-image: url("chrome://browser/skin/images/tabs-selected-bg-rtl.png");
+}
 
 #tool-tabs .toolbarbutton-icon {
   -moz-transform: translateY(0.45em);
-  padding-right: 32px; /* correct position and alignment */
+  -moz-padding-end: 32px; /* correct position and alignment */
 }
 
 #tool-tabs .toolbarbutton-text {
   color: @color_text_toolbutton_inverse@;
   display: -moz-box;
   font-size: @font_small@ !important;
   -moz-transform: translateY(-0.56em);
-  padding-right: 33px; /* correct position and alignment */
+  -moz-padding-end: 33px; /* correct position and alignment */
 }
 
 #tool-menu {
   list-style-image: url("chrome://browser/skin/images/menu-hdpi.png");
   -moz-margin-end: 0px;
 }
 
 .tool-star {
@@ -994,20 +1001,16 @@ autocompleteresult.noresults > .autocomp
 }
 
 /* Left sidebar (tabs)  ---------------------------------------------------- */
 #tabs-container {
   -moz-border-end: @border_width_large@ solid #262629;
   background: @color_toolbar_background@;
 }
 
-#tabs:-moz-locale-dir(rtl) {
-  -moz-box-align: start;
-}
-
 #tabs > .tabs-scrollbox {
   max-width: 350px;
 }
 
 #tabs .tabs-list {
   display: block;
   -moz-column-width: 121px;
   -moz-column-gap: 0;
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..d50c1962b4fb657059bd20ccc2668e8a397c3999
GIT binary patch
literal 1360
zc${^VeLT|%9LIlYQq037&qW>zacwJ>r)IOw9vp@|gl_oRRJ=Tm?DTLwOxu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?9&aHoMsv2mIS$-?)
zSQKHB6fi7(z*mefbHmp*+8A?7UDsZZc2PiES|PawMy}d=s#k<cD*4op@iJe^`aCN>
zS*oI;_vq#>6~0fl=}3xwfhS(lp&nepBR)u9dY`D!Kvz{(s>yjDo@Ekyuc3=vi+04B
z728MAqB2J+CXk9F1+smu3Px|u;}>26V<-JIDK#lExZ!aFmj1Zr%+$&UDNcG#aQ>cD
z5}^^sW=`{G#ec5OY0D&={QVpivE?))=jZFcSC(nmL&Vi0qubD<6AxUEn3<dHN0u&K
z6l(Fmyd3;7uGD@pHsne&h4_YiJZ!cc?5d1x7_yTCQ=t*tMP~|@_tm<g(cn+w>~;k1
ztcqP)pbnV$ow%Rdtzs8+cjsQMlM_#3^*3${c>0$)(r2>BFt+$WpPFXHu;)dFAH4G!
z5#TRJz2Wr03OhGDjjm^KVO;^y!@{17GAh=>2Wr3=<c}{T$499)gg2x5JCgEn1z1J8
z%13R%E`4_@WeBc(Hr7mh2osEC#<)Z$$0z|H;Ru8S+}Q!)9Ed=<ARS#C_dCE*E^xTV
zkQ(YgLVN;vl+OBp0l^bzDFvgiLO=qYc_K172Ec#`Q8DJE_((>Ke@rCEO6rPnQyu{%
LybrD(OFQ=u<}+UW
--- a/mobile/themes/core/jar.mn
+++ b/mobile/themes/core/jar.mn
@@ -114,16 +114,17 @@ chrome.jar:
   skin/images/locked-hdpi.png               (images/locked-hdpi.png)
   skin/images/close-default-hdpi.png        (images/close-default-hdpi.png)
   skin/images/close-default-tablet-hdpi.png (images/close-default-tablet-hdpi.png)
   skin/images/close-active-hdpi.png         (images/close-active-hdpi.png)
   skin/images/close-active-tablet-hdpi.png  (images/close-active-tablet-hdpi.png)
   skin/images/close-inactive-tab-hdpi.png   (images/close-inactive-tab-hdpi.png)
   skin/images/close-inactive-tab-tablet-hdpi.png   (images/close-inactive-tab-tablet-hdpi.png)
   skin/images/close-background-hdpi.png     (images/close-background-hdpi.png)
+  skin/images/close-background-hdpi-rtl.png (images/close-background-hdpi-rtl.png)
   skin/images/check-30.png                  (images/check-30.png)
   skin/images/search-glass-30.png           (images/search-glass-30.png)
   skin/images/search-clear-30.png           (images/search-clear-30.png)
   skin/images/section-expanded-16.png       (images/section-expanded-16.png)
   skin/images/section-collapsed-16.png      (images/section-collapsed-16.png)
   skin/images/task-switch-hdpi.png          (images/task-switch-hdpi.png)
   skin/images/task-close-hdpi.png           (images/task-close-hdpi.png)
   skin/images/task-back-hdpi.png            (images/task-back-hdpi.png)
@@ -245,16 +246,17 @@ chrome.jar:
   skin/gingerbread/images/identity-ev-hdpi.png          (gingerbread/images/identity-ev-hdpi.png)
   skin/gingerbread/images/unlocked-hdpi.png             (gingerbread/images/unlocked-hdpi.png)
   skin/gingerbread/images/locked-hdpi.png               (gingerbread/images/locked-hdpi.png)
   skin/gingerbread/images/close-default-hdpi.png        (gingerbread/images/close-default-hdpi.png)
   skin/gingerbread/images/close-default-tablet-hdpi.png (gingerbread/images/close-default-tablet-hdpi.png)
   skin/gingerbread/images/close-active-hdpi.png         (gingerbread/images/close-active-hdpi.png)
   skin/gingerbread/images/close-active-tablet-hdpi.png  (gingerbread/images/close-active-tablet-hdpi.png)
   skin/gingerbread/images/close-background-hdpi.png     (gingerbread/images/close-background-hdpi.png)
+  skin/gingerbread/images/close-background-hdpi-rtl.png (gingerbread/images/close-background-hdpi-rtl.png)
   skin/gingerbread/images/close-inactive-tab-hdpi.png   (gingerbread/images/close-inactive-tab-hdpi.png)
   skin/gingerbread/images/close-inactive-tab-tablet-hdpi.png   (gingerbread/images/close-inactive-tab-tablet-hdpi.png)
   skin/gingerbread/images/check-30.png                  (gingerbread/images/check-30.png)
   skin/gingerbread/images/search-glass-30.png           (gingerbread/images/search-glass-30.png)
   skin/gingerbread/images/search-clear-30.png           (gingerbread/images/search-clear-30.png)
   skin/gingerbread/images/section-expanded-16.png       (images/section-expanded-16.png)
   skin/gingerbread/images/section-collapsed-16.png      (images/section-collapsed-16.png)
   skin/gingerbread/images/task-switch-hdpi.png          (gingerbread/images/task-switch-hdpi.png)
@@ -383,16 +385,17 @@ chrome.jar:
   skin/honeycomb/images/identity-ev-hdpi.png          (honeycomb/images/identity-ev-hdpi.png)
   skin/honeycomb/images/unlocked-hdpi.png             (honeycomb/images/unlocked-hdpi.png)
   skin/honeycomb/images/locked-hdpi.png               (honeycomb/images/locked-hdpi.png)
   skin/honeycomb/images/close-default-hdpi.png        (honeycomb/images/close-default-hdpi.png)
   skin/honeycomb/images/close-default-tablet-hdpi.png (honeycomb/images/close-default-tablet-hdpi.png)
   skin/honeycomb/images/close-active-hdpi.png         (honeycomb/images/close-active-hdpi.png)
   skin/honeycomb/images/close-active-tablet-hdpi.png  (honeycomb/images/close-active-tablet-hdpi.png)
   skin/honeycomb/images/close-background-hdpi.png     (honeycomb/images/close-background-hdpi.png)
+  skin/honeycomb/images/close-background-hdpi-rtl.png (honeycomb/images/close-background-hdpi-rtl.png)
   skin/honeycomb/images/close-inactive-tab-hdpi.png   (honeycomb/images/close-inactive-tab-hdpi.png)
   skin/honeycomb/images/close-inactive-tab-tablet-hdpi.png   (honeycomb/images/close-inactive-tab-tablet-hdpi.png)
   skin/honeycomb/images/checkmark-hdpi.png                 (images/checkmark-hdpi.png)
   skin/honeycomb/images/check-30.png                  (images/check-30.png)
   skin/honeycomb/images/check-selected-hdpi.png       (honeycomb/images/check-selected-hdpi.png)
   skin/honeycomb/images/check-unselected-hdpi.png     (honeycomb/images/check-unselected-hdpi.png)
   skin/honeycomb/images/search-glass-30.png           (honeycomb/images/search-glass-30.png)
   skin/honeycomb/images/search-clear-30.png           (honeycomb/images/search-clear-30.png)
@@ -416,16 +419,18 @@ chrome.jar:
   skin/honeycomb/images/mute-hdpi.png                 (honeycomb/images/mute-hdpi.png)
   skin/honeycomb/images/unmute-hdpi.png               (honeycomb/images/unmute-hdpi.png)
   skin/honeycomb/images/scrubber-hdpi.png             (honeycomb/images/scrubber-hdpi.png)
   skin/honeycomb/images/handle-start.png              (images/handle-start.png)
   skin/honeycomb/images/handle-end.png                (images/handle-end.png)
   skin/honeycomb/images/tabs-hdpi.png                 (honeycomb/images/tabs-hdpi.png)
   skin/honeycomb/images/tabs-default-bg.png           (honeycomb/images/tabs-default-bg.png)
   skin/honeycomb/images/tabs-selected-bg.png          (honeycomb/images/tabs-selected-bg.png)
+  skin/honeycomb/images/tabs-default-bg-rtl.png       (honeycomb/images/tabs-default-bg-rtl.png)
+  skin/honeycomb/images/tabs-selected-bg-rtl.png      (honeycomb/images/tabs-selected-bg-rtl.png)
   skin/honeycomb/images/menu-hdpi.png                 (honeycomb/images/menu-hdpi.png)
   skin/honeycomb/images/errorpage-warning.png         (images/errorpage-warning.png)
   skin/honeycomb/images/errorpage-larry-white.png     (images/errorpage-larry-white.png)
   skin/honeycomb/images/errorpage-larry-black.png     (images/errorpage-larry-black.png)
   skin/honeycomb/images/homescreen-blank-hdpi.png     (images/homescreen-blank-hdpi.png)
   skin/honeycomb/images/homescreen-default-hdpi.png   (images/homescreen-default-hdpi.png)
   skin/honeycomb/images/urlbar-border-side.png        (honeycomb/images/urlbar-border-side.png)
   skin/honeycomb/images/urlbar-border-bottom.png      (honeycomb/images/urlbar-border-bottom.png)
--- a/mobile/themes/core/tablet.css
+++ b/mobile/themes/core/tablet.css
@@ -66,25 +66,33 @@
 
 .documenttab-close-container[tablet] {
   left: 0px;
   -moz-margin-end: 0px;
   -moz-margin-start: 143px;
   -moz-box-pack: end;
   -moz-box-align: center;
   -moz-margin-end: -11px;
-  padding-right: 13px;
+  -moz-padding-end: 13px;
+}
+.documenttab-close-container[tablet]:-moz-locale-dir(rtl) {
+  left: auto;
+  right: 0px;
 }
 
 documenttab[selected="true"] > vbox > stack > .documenttab-close-container[tablet] {
   background: url("chrome://browser/skin/images/close-background-hdpi.png");
   background-repeat: no-repeat;
   background-position: right;
   -moz-margin-start: 146px;
-  padding-right: 2px;
+  -moz-padding-end: 2px;
+}
+documenttab[selected="true"] > vbox > stack > .documenttab-close-container[tablet]:-moz-locale-dir(rtl) {
+  background: url("chrome://browser/skin/images/close-background-hdpi-rtl.png");
+  background-position: left;
 }
 
 .documenttab-close[tablet] {
   width: 30px;
   height: 44px;
   list-style-image: url("chrome://browser/skin/images/close-inactive-tab-tablet-hdpi.png");
 }