Bug 1375448 (Part 2) - duplicate styles.xml draft
authorJulian_Chu <walkingice0204@gmail.com>
Mon, 19 Jun 2017 16:43:45 +0800
changeset 599475 86388d7bbd015abf57696db0091bbb8d7e213685
parent 599474 b56f4fed25e7f55b8e1f8e4eb221e77277934c62
child 599476 075ef8bd6f27f9b5f053ed83a7253b947e5c9dd5
push id65541
push userbmo:walkingice0204@gmail.com
push dateFri, 23 Jun 2017 07:18:28 +0000
bugs1375448
milestone56.0a1
Bug 1375448 (Part 2) - duplicate styles.xml There will be lots of color change in Photon. To duplicate styles.xml so any changes to Photon won't effect Australis flavor. In this commit we did 1. move xml file from 'main' to 'australis' 2. copy xml file from 'australis' to 'photon' 3. indent/reformat xml file in 'photon' by Android Studio. MozReview-Commit-ID: LD7gGsnFEC8
mobile/android/app/lint.xml
mobile/android/app/src/australis/res/values-land/styles.xml
mobile/android/app/src/australis/res/values-large-land-v11/styles.xml
mobile/android/app/src/australis/res/values-large-v16/styles.xml
mobile/android/app/src/australis/res/values-large-v17/styles.xml
mobile/android/app/src/australis/res/values-large/styles.xml
mobile/android/app/src/australis/res/values-v11/styles.xml
mobile/android/app/src/australis/res/values-v13/styles.xml
mobile/android/app/src/australis/res/values-v16/styles.xml
mobile/android/app/src/australis/res/values-v17/styles.xml
mobile/android/app/src/australis/res/values-v19/styles.xml
mobile/android/app/src/australis/res/values-v21/styles.xml
mobile/android/app/src/australis/res/values-w400dp/styles.xml
mobile/android/app/src/australis/res/values-xlarge-land-v11/styles.xml
mobile/android/app/src/australis/res/values-xlarge-v11/styles.xml
mobile/android/app/src/australis/res/values/styles.xml
mobile/android/app/src/main/res/values-land/styles.xml
mobile/android/app/src/main/res/values-large-land-v11/styles.xml
mobile/android/app/src/main/res/values-large-v16/styles.xml
mobile/android/app/src/main/res/values-large-v17/styles.xml
mobile/android/app/src/main/res/values-large/styles.xml
mobile/android/app/src/main/res/values-v11/styles.xml
mobile/android/app/src/main/res/values-v13/styles.xml
mobile/android/app/src/main/res/values-v16/styles.xml
mobile/android/app/src/main/res/values-v17/styles.xml
mobile/android/app/src/main/res/values-v19/styles.xml
mobile/android/app/src/main/res/values-v21/styles.xml
mobile/android/app/src/main/res/values-w400dp/styles.xml
mobile/android/app/src/main/res/values-xlarge-land-v11/styles.xml
mobile/android/app/src/main/res/values-xlarge-v11/styles.xml
mobile/android/app/src/main/res/values/styles.xml
mobile/android/app/src/photon/res/values-land/styles.xml
mobile/android/app/src/photon/res/values-large-land-v11/styles.xml
mobile/android/app/src/photon/res/values-large-v16/styles.xml
mobile/android/app/src/photon/res/values-large-v17/styles.xml
mobile/android/app/src/photon/res/values-large/styles.xml
mobile/android/app/src/photon/res/values-v11/styles.xml
mobile/android/app/src/photon/res/values-v13/styles.xml
mobile/android/app/src/photon/res/values-v16/styles.xml
mobile/android/app/src/photon/res/values-v17/styles.xml
mobile/android/app/src/photon/res/values-v19/styles.xml
mobile/android/app/src/photon/res/values-v21/styles.xml
mobile/android/app/src/photon/res/values-w400dp/styles.xml
mobile/android/app/src/photon/res/values-xlarge-land-v11/styles.xml
mobile/android/app/src/photon/res/values-xlarge-v11/styles.xml
mobile/android/app/src/photon/res/values/styles.xml
--- a/mobile/android/app/lint.xml
+++ b/mobile/android/app/lint.xml
@@ -56,17 +56,18 @@
         <ignore path="**/mobile/android/base/java/org/mozilla/gecko/toolbar/TabCounter.java"/>
         <ignore path="**/mobile/android/base/java/org/mozilla/gecko/tabs/TabPanelBackButton.java"/>
         <ignore path="**/mobile/android/base/java/org/mozilla/gecko/toolbar/ToolbarEditText.java"/>
         <ignore path="**/mobile/android/base/java/org/mozilla/gecko/util/ViewUtil.java"/>
         <ignore path="**/mobile/android/base/java/org/mozilla/gecko/webapps/WebAppActivity.java"/>
         <ignore path="**/mobile/android/base/java/org/mozilla/gecko/IntentHelper.java"/>
         <ignore path="**/media/webrtc/trunk/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java"/>
         <ignore path="**/media/webrtc/trunk/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java"/>
-        <ignore path="src/main/res/values/styles.xml"/>
+        <ignore path="src/australis/res/values/styles.xml"/>
+        <ignore path="src/photon/res/values/styles.xml"/>
     </issue>
 
     <!-- We fixed all "Registered" lint errors. However the current gradle plugin has a bug where
          it ignores @SuppressLint annotations for this check. See CrashReporter class and
          https://code.google.com/p/android/issues/detail?id=204846 -->
     <issue id="Registered" severity="warning" />
 
     <!-- WHEN YOU FIX A LINT WARNING, ADD IT TO THIS LIST.
rename from mobile/android/app/src/main/res/values-land/styles.xml
rename to mobile/android/app/src/australis/res/values-land/styles.xml
rename from mobile/android/app/src/main/res/values-large-land-v11/styles.xml
rename to mobile/android/app/src/australis/res/values-large-land-v11/styles.xml
rename from mobile/android/app/src/main/res/values-large-v16/styles.xml
rename to mobile/android/app/src/australis/res/values-large-v16/styles.xml
rename from mobile/android/app/src/main/res/values-large-v17/styles.xml
rename to mobile/android/app/src/australis/res/values-large-v17/styles.xml
rename from mobile/android/app/src/main/res/values-large/styles.xml
rename to mobile/android/app/src/australis/res/values-large/styles.xml
rename from mobile/android/app/src/main/res/values-v11/styles.xml
rename to mobile/android/app/src/australis/res/values-v11/styles.xml
rename from mobile/android/app/src/main/res/values-v13/styles.xml
rename to mobile/android/app/src/australis/res/values-v13/styles.xml
rename from mobile/android/app/src/main/res/values-v16/styles.xml
rename to mobile/android/app/src/australis/res/values-v16/styles.xml
rename from mobile/android/app/src/main/res/values-v17/styles.xml
rename to mobile/android/app/src/australis/res/values-v17/styles.xml
rename from mobile/android/app/src/main/res/values-v19/styles.xml
rename to mobile/android/app/src/australis/res/values-v19/styles.xml
rename from mobile/android/app/src/main/res/values-v21/styles.xml
rename to mobile/android/app/src/australis/res/values-v21/styles.xml
rename from mobile/android/app/src/main/res/values-w400dp/styles.xml
rename to mobile/android/app/src/australis/res/values-w400dp/styles.xml
rename from mobile/android/app/src/main/res/values-xlarge-land-v11/styles.xml
rename to mobile/android/app/src/australis/res/values-xlarge-land-v11/styles.xml
rename from mobile/android/app/src/main/res/values-xlarge-v11/styles.xml
rename to mobile/android/app/src/australis/res/values-xlarge-v11/styles.xml
rename from mobile/android/app/src/main/res/values/styles.xml
rename to mobile/android/app/src/australis/res/values/styles.xml
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-land/styles.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+    <style name="TabsItem">
+        <item name="android:nextFocusDown">@+id/close</item>
+    </style>
+
+    <style name="TabsItemClose">
+        <item name="android:nextFocusUp">@+id/info</item>
+    </style>
+
+</resources>
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-large-land-v11/styles.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+    <style name="Widget.BookmarksListView" parent="Widget.HomeListView">
+        <item name="android:scrollbarStyle">outsideOverlay</item>
+    </style>
+
+    <style name="Widget.TopSitesGridView" parent="Widget.GridView">
+        <item name="android:paddingLeft">55dp</item>
+        <item name="android:paddingRight">55dp</item>
+        <item name="android:paddingBottom">30dp</item>
+        <item name="android:horizontalSpacing">20dp</item>
+        <item name="android:verticalSpacing">20dp</item>
+    </style>
+
+</resources>
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-large-v16/styles.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <style name="TextAppearance.UrlBar.Title" parent="TextAppearance.Small">
+        <item name="android:textSize">16sp</item>
+        <item name="android:fontFamily">sans-serif-light</item>
+    </style>
+
+</resources>
copy from mobile/android/app/src/main/res/values-large-v17/styles.xml
copy to mobile/android/app/src/photon/res/values-large-v17/styles.xml
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-large/styles.xml
@@ -0,0 +1,196 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+    <style name="UrlBar.ImageButton" parent="UrlBar.ImageButtonBase">
+        <item name="android:layout_width">@dimen/tablet_browser_toolbar_menu_item_width</item>
+    </style>
+
+    <!-- If this style wasn't actually shared outside the
+         url bar, this name could be improved (bug 1197424). -->
+    <style name="UrlBar.ImageButton.BrowserToolbarColors">
+        <item name="drawableTintList">@color/action_bar_menu_item_colors</item>
+    </style>
+
+    <style name="UrlBar.Button.Container">
+        <item name="android:layout_marginTop">6dp</item>
+        <item name="android:layout_marginBottom">6dp</item>
+        <!-- Start with forward hidden -->
+        <item name="android:orientation">horizontal</item>
+    </style>
+
+    <style name="TabsItem">
+        <item name="android:nextFocusDown">@+id/close</item>
+    </style>
+
+    <style name="TabsItemClose">
+        <item name="android:nextFocusUp">@+id/info</item>
+    </style>
+
+    <style name="Toast" parent="ToastBase">
+        <item name="android:layout_width">400dp</item>
+
+        <!-- Same as pre-19 Toast style, but with no left and right margins.
+             They're removed since large tablets are never going to be only 400dp wide. -->
+    </style>
+
+    <style name="Widget.MenuItemActionBar">
+        <item name="android:layout_width">wrap_content</item>
+        <item name="android:layout_height">wrap_content</item>
+        <item name="android:background">@drawable/browser_toolbar_action_bar_button</item>
+        <item name="drawableTintList">@color/action_bar_menu_item_colors</item>
+        <item name="android:scaleType">center</item>
+
+        <!-- layout_width/height doesn't work here, likely because it's only
+             added programmatically, so we use padding for the width instead.
+             layout_height is set to MATCH_PARENT programmatically in
+             org.mozilla.gecko.toolbar.BrowserToolbarTabletBase.addActionItem(View) -->
+
+        <item name="android:paddingLeft">
+            @dimen/tablet_browser_toolbar_menu_item_padding_horizontal
+        </item>
+        <item name="android:paddingRight">
+            @dimen/tablet_browser_toolbar_menu_item_padding_horizontal
+        </item>
+    </style>
+
+    <style name="Widget.BookmarksListView" parent="Widget.HomeListView">
+        <item name="android:scrollbarStyle">outsideOverlay</item>
+    </style>
+
+    <style name="Widget.TopSitesGridView" parent="Widget.GridView">
+        <item name="android:paddingLeft">5dp</item>
+        <item name="android:paddingRight">5dp</item>
+        <item name="android:paddingBottom">30dp</item>
+        <item name="android:horizontalSpacing">10dp</item>
+        <item name="android:verticalSpacing">10dp</item>
+    </style>
+
+    <style name="Widget.TopSitesListView" parent="Widget.BookmarksListView">
+        <item name="android:paddingTop">30dp</item>
+        <item name="android:paddingLeft">32dp</item>
+        <item name="android:paddingRight">32dp</item>
+        <item name="android:clipToPadding">false</item>
+        <item name="topDivider">false</item>
+    </style>
+
+    <style name="Widget.HomeBanner">
+        <item name="android:paddingLeft">32dp</item>
+        <item name="android:paddingRight">32dp</item>
+    </style>
+
+    <style name="TextAppearance.UrlBar.Title" parent="TextAppearance.Medium">
+        <item name="android:textSize">16sp</item>
+    </style>
+
+    <style name="UrlBar.Base" />
+
+    <style name="UrlBar.MenuMargin" parent="UrlBar.V15.MenuMargin" />
+
+    <style name="UrlBar.Base.MenuMargin" />
+
+    <style name="UrlBar.V15.MenuMargin" parent="UrlBar.Base.MenuMargin">
+        <item name="android:layout_alignParentRight">true</item>
+    </style>
+
+    <style name="UrlBar.Menu" parent="UrlBar.V15.Menu" />
+
+    <style name="UrlBar.Base.Menu" parent="UrlBar.ImageButton" />
+
+    <style name="UrlBar.V15.Menu" parent="UrlBar.Base.Menu">
+        <item name="android:layout_toLeftOf">@id/menu_margin</item>
+    </style>
+
+    <style name="UrlBar.MenuItem" parent="UrlBar.V15.MenuItem" />
+
+    <style name="UrlBar.Base.MenuItem" />
+
+    <style name="UrlBar.V15.MenuItem" parent="UrlBar.Base.MenuItem">
+        <item name="android:layout_marginLeft">6dp</item>
+        <item name="android:layout_toLeftOf">@id/tabs</item>
+    </style>
+
+    <style name="UrlBar.Tabs" parent="UrlBar.V15.Tabs" />
+
+    <style name="UrlBar.Base.Tabs" parent="UrlBar.ImageButton" />
+
+    <style name="UrlBar.V15.Tabs" parent="UrlBar.Base.Tabs">
+        <item name="android:layout_toLeftOf">@id/menu</item>
+    </style>
+
+    <style name="UrlBar.TabCounter" parent="UrlBar.V15.TabCounter" />
+
+    <style name="UrlBar.Base.TabCounter" parent="UrlBar.ImageButton" />
+
+    <style name="UrlBar.V15.TabCounter" parent="UrlBar.Base.TabCounter">
+        <item name="android:layout_alignLeft">@id/tabs</item>
+        <item name="android:layout_alignRight">@id/tabs</item>
+        <item name="android:layout_marginLeft">16dp</item>
+        <item name="android:layout_marginRight">16dp</item>
+        <item name="android:layout_toLeftOf">@id/menu</item>
+    </style>
+
+    <style name="UrlBar.Entry" parent="UrlBar.V15.Entry" />
+
+    <style name="UrlBar.Base.Entry" />
+
+    <style name="UrlBar.V15.Entry" parent="UrlBar.Base.Entry">
+        <item name="android:layout_alignLeft">@id/back</item>
+        <item name="android:layout_toLeftOf">@id/menu_items</item>
+        <item name="android:layout_marginLeft">@dimen/tablet_nav_button_width_half</item>
+    </style>
+
+    <style name="UrlBar.ForwardButton" parent="UrlBar.V15.ForwardButton" />
+
+    <style name="UrlBar.Base.ForwardButton" parent="UrlBar.ImageButton.BrowserToolbarColors" />
+
+    <style name="UrlBar.V15.ForwardButton" parent="UrlBar.Base.ForwardButton">
+        <item name="android:layout_alignLeft">@id/back</item>
+        <item name="android:layout_marginLeft">@dimen/tablet_nav_button_width_half</item>
+        <item name="android:paddingLeft">@dimen/tablet_fwd_button_padding_start</item>
+        <item name="android:paddingRight">@dimen/tablet_fwd_button_padding_end</item>
+    </style>
+
+    <style name="UrlBar.BackButton" parent="UrlBar.V15.BackButton" />
+
+    <style name="UrlBar.Base.BackButton" parent="UrlBar.ImageButton.BrowserToolbarColors" />
+
+    <style name="UrlBar.V15.BackButton" parent="UrlBar.Base.BackButton">
+        <item name="android:layout_marginLeft">12dp</item>
+        <item name="android:layout_alignParentLeft">true</item>
+    </style>
+
+    <style name="UrlBar.EditLayout" parent="UrlBar.V15.EditLayout" />
+
+    <style name="UrlBar.Base.EditLayout" parent="UrlBar.Button" />
+
+    <style name="UrlBar.V15.EditLayout" parent="UrlBar.Base.EditLayout">
+        <item name="android:paddingRight">12dp</item>
+        <item name="android:layout_toLeftOf">@id/menu_items</item>
+        <item name="android:layout_toRightOf">@id/back</item>
+    </style>
+
+    <style name="UrlBar.DisplayLayout" parent="UrlBar.V15.DisplayLayout" />
+
+    <style name="UrlBar.Base.DisplayLayout" parent="UrlBar.Button.Container" />
+
+    <style name="UrlBar.V15.DisplayLayout" parent="UrlBar.Base.DisplayLayout">
+        <item name="android:layout_toLeftOf">@id/menu_items</item>
+        <item name="android:layout_toRightOf">@id/back</item>
+        <item name="android:paddingLeft">0dip</item>
+        <item name="android:paddingRight">4dip</item>
+    </style>
+
+    <style name="UrlBar.EditCancel" parent="UrlBar.V15.EditCancel" />
+
+    <style name="UrlBar.Base.EditCancel" parent="UrlBar.ImageButton" />
+
+    <style name="UrlBar.V15.EditCancel" parent="UrlBar.Base.EditCancel">
+        <item name="android:layout_alignParentRight">true</item>
+    </style>
+
+</resources>
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-v11/styles.xml
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <!--
+        Only overriden styles for Honeycomb/Ice cream sandwich are specified here.
+        Please refer to values/styles.xml for default styles.
+    -->
+
+    <!--
+        Base application styles. This could be overridden in other res/values-XXX/themes.xml.
+    -->
+    <style name="Widget.BaseButton" parent="android:style/Widget.Holo.Light.Button" />
+
+    <style name="Widget.BaseDropDownItem" parent="android:style/Widget.Holo.Light.DropDownItem" />
+
+    <style name="Widget.BaseEditText" parent="android:style/Widget.Holo.Light.EditText" />
+
+    <style name="Widget.BaseListView" parent="android:style/Widget.Holo.ListView" />
+
+    <style name="Widget.BaseGridView" parent="android:style/Widget.Holo.GridView" />
+
+    <style name="Widget.BaseTextView" parent="android:style/Widget.Holo.Light.TextView" />
+
+    <style name="Widget.ProgressBar.Horizontal" parent="android:style/Widget.Holo.ProgressBar.Horizontal" />
+
+
+    <!--
+        Application styles. All customizations that are not specific
+        to a particular API level can go here.
+    -->
+    <style name="Widget.ListItem">
+        <item name="android:textColor">@color/select_item_multichoice</item>
+        <item name="android:minHeight">?android:attr/listPreferredItemHeight</item>
+        <item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
+        <item name="android:gravity">center_vertical</item>
+        <item name="android:paddingLeft">12dip</item>
+        <item name="android:paddingRight">7dip</item>
+        <item name="android:checkMark">?android:attr/listChoiceIndicatorMultiple</item>
+        <item name="android:ellipsize">marquee</item>
+    </style>
+
+    <!-- ActionBar -->
+    <style name="ActionBar" parent="android:style/Widget.Holo.ActionBar" />
+
+    <!-- TabsLayout ActionBar -->
+    <style name="ActionBar.TabsLayout">
+        <item name="android:visibility">gone</item>
+    </style>
+
+    <!-- DropDown List View -->
+    <style name="DropDownListView" parent="@android:style/Widget.Holo.ListView.DropDown">
+        <item name="android:listSelector">@drawable/action_bar_button</item>
+        <item name="android:divider">@color/toolbar_divider_grey</item>
+        <item name="android:dividerHeight">@dimen/page_row_divider_height</item>
+    </style>
+
+    <!-- Spinner DropDown Item -->
+    <style name="Widget.DropDownItem.Spinner" parent="@android:style/Widget.Holo.Light.DropDownItem.Spinner">
+        <item name="android:textColor">#FF000000</item>
+    </style>
+
+    <style name="Widget.Spinner" parent="android:style/Widget.Holo.Light.Spinner">
+        <item name="android:minWidth">@dimen/doorhanger_input_width</item>
+    </style>
+
+    <style name="Widget.TextView.SpinnerItem" parent="android:style/Widget.Holo.Light.TextView.SpinnerItem">
+        <item name="android:textColor">#FF000000</item>
+    </style>
+
+    <style name="TextAppearance.Widget.ActionBar.Title" parent="@android:style/TextAppearance.Medium" />
+
+    <style name="GeckoActionBar.Title" parent="TextAppearance.Widget.ActionBar.Title">
+        <item name="android:drawableLeft">@drawable/ab_done</item>
+        <item name="android:background">@android:color/transparent</item>
+        <item name="android:paddingLeft">15dp</item>
+        <item name="android:paddingRight">15dp</item>
+        <!-- gravity and minWidth are added here to more resemble our values/styles.xml
+             counterpart. This is solely to correct bug 1233709 -->
+        <item name="android:gravity">center_vertical</item>
+        <item name="android:minWidth">0dp</item>
+    </style>
+
+    <style name="GeckoActionBar.Button" parent="android:style/Widget.Holo.Light.ActionButton">
+        <item name="android:padding">8dip</item>
+        <!-- The default implementation doesn't do any image scaling. Our custom menus mean we can't just use the same image
+             in both menus and the actionbar without doing some scaling though. Users may also want to set
+             layout_height="match_parent" to make sure buttons are scaled to full action bar height - setting it here
+             doesn't work. -->
+        <item name="android:scaleType">centerInside</item>
+    </style>
+
+    <style name="GeckoActionBar.Button.MenuButton" parent="android:style/Widget.Holo.Light.ActionButton.Overflow">
+        <item name="android:scaleType">centerInside</item>
+        <item name="android:background">@android:color/transparent</item>
+        <item name="android:src">@drawable/menu</item>
+        <item name="android:tint">@color/toolbar_icon_grey</item>
+        <item name="android:layout_marginTop">16dp</item>
+        <item name="android:layout_marginBottom">16dp</item>
+    </style>
+
+    <style name="TabInput"></style>
+
+    <style name="TabInput.TabWidget" parent="android:style/Widget.Holo.Light.TabWidget" />
+
+    <style name="TabInput.Tab" parent="android:style/Widget.Holo.Light.Tab">
+        <item name="android:minHeight">@dimen/menu_item_row_height</item>
+        <item name="android:textAllCaps">true</item>
+    </style>
+
+</resources>
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-v13/styles.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+    <style name="TextAppearance.Widget.ActionBar.Title" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title" />
+
+</resources>
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-v16/styles.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <style name="TextAppearance.EmptyMessage" parent="TextAppearance.Large">
+        <item name="android:fontFamily">sans-serif-light</item>
+    </style>
+
+    <style name="TextAppearance.Widget.Home.ItemTitle" parent="TextAppearance.Medium">
+        <item name="android:fontFamily">sans-serif-light</item>
+    </style>
+
+    <style name="TextAppearance.FirstrunTextLight">
+        <item name="android:fontFamily">sans-serif-light</item>
+    </style>
+
+    <style name="TextAppearance.FirstrunTextRegular">
+        <item name="android:fontFamily">sans-serif</item>
+    </style>
+
+    <style name="TextAppearance.UrlBar.Title" parent="TextAppearance.Small">
+        <item name="android:textSize">15sp</item>
+        <item name="android:fontFamily">sans-serif-light</item>
+    </style>
+
+</resources>
copy from mobile/android/app/src/main/res/values-v17/styles.xml
copy to mobile/android/app/src/photon/res/values-v17/styles.xml
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-v19/styles.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <style name="Toast" parent="ToastBase">
+        <item name="android:layout_marginLeft">8dp</item>
+        <item name="android:layout_marginRight">8dp</item>
+    </style>
+
+    <style name="ToastElementBase">
+        <item name="android:background">@null</item>
+        <item name="android:paddingLeft">24dp</item>
+        <item name="android:paddingRight">24dp</item>
+        <item name="android:paddingTop">11dp</item>
+        <item name="android:paddingBottom">11dp</item>
+    </style>
+
+    <style name="ToastDivider" parent="ToastDividerBase">
+        <item name="android:layout_marginTop">12dp</item>
+        <item name="android:layout_marginBottom">12dp</item>
+    </style>
+
+    <style name="ToastMessage" parent="ToastMessageBase">
+        <item name="android:textSize">16sp</item>
+        <item name="android:fontFamily">sans-serif-condensed</item>
+        <item name="android:shadowColor">#BB000000</item>
+        <item name="android:shadowRadius">2.75</item>
+    </style>
+
+    <style name="ToastButton" parent="ToastButtonBase">
+        <item name="android:textSize">12sp</item>
+        <item name="android:textStyle">bold</item>
+        <item name="android:fontFamily">sans-serif-condensed</item>
+        <item name="android:shadowColor">#BB000000</item>
+        <item name="android:shadowRadius">2.75</item>
+    </style>
+
+</resources>
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-v21/styles.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+    <style name="ActionBarTitleTextStyle" parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title">
+        <item name="android:textColor">#fff</item>
+    </style>
+
+</resources>
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-w400dp/styles.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+    <style name="Toast" parent="ToastBase">
+        <item name="android:layout_width">400dp</item>
+    </style>
+
+</resources>
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-xlarge-land-v11/styles.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+    <style name="Widget.TopSitesListView" parent="Widget.BookmarksListView">
+        <item name="android:paddingTop">30dp</item>
+        <item name="android:paddingLeft">120dp</item>
+        <item name="android:paddingRight">120dp</item>
+        <item name="android:clipToPadding">false</item>
+        <item name="topDivider">false</item>
+    </style>
+
+    <style name="Widget.TopSitesGridView" parent="Widget.GridView">
+        <item name="android:paddingLeft">55dp</item>
+        <item name="android:paddingRight">55dp</item>
+        <item name="android:paddingBottom">30dp</item>
+        <item name="android:horizontalSpacing">56dp</item>
+        <item name="android:verticalSpacing">20dp</item>
+    </style>
+
+</resources>
new file mode 100644
--- /dev/null
+++ b/mobile/android/app/src/photon/res/values-xlarge-v11/styles.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+    <!--
+        Only overriden styles for Honeycomb/Ice cream sandwich XLARGE tablets are specified here.
+        Please refer to values/styles.xml for default styles.
+    -->
+
+    <style name="Widget.TopSitesListView" parent="Widget.BookmarksListView">
+        <item name="android:paddingTop">30dp</item>
+        <item name="android:paddingLeft">32dp</item>
+        <item name="android:paddingRight">32dp</item>
+        <item name="android:clipToPadding">false</item>
+        <item name="topDivider">false</item>
+    </style>
+
+</resources>
copy from mobile/android/app/src/main/res/values/styles.xml
copy to mobile/android/app/src/photon/res/values/styles.xml