diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /mobile/android/base/resources/values-v11 | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'mobile/android/base/resources/values-v11')
-rw-r--r-- | mobile/android/base/resources/values-v11/dimens.xml | 13 | ||||
-rw-r--r-- | mobile/android/base/resources/values-v11/styles.xml | 112 | ||||
-rw-r--r-- | mobile/android/base/resources/values-v11/themes.xml | 45 |
3 files changed, 170 insertions, 0 deletions
diff --git a/mobile/android/base/resources/values-v11/dimens.xml b/mobile/android/base/resources/values-v11/dimens.xml new file mode 100644 index 000000000..fbcb27bd1 --- /dev/null +++ b/mobile/android/base/resources/values-v11/dimens.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> + + <!-- This is chosen to be close to Android's listPreferredItemHeightSmall. + TODO: We should inherit these from the system. + http://androidxref.com/4.2.2_r1/xref/frameworks/base/core/res/res/values/themes.xml#1287 --> + <dimen name="menu_item_row_height">48dp</dimen> + +</resources> diff --git a/mobile/android/base/resources/values-v11/styles.xml b/mobile/android/base/resources/values-v11/styles.xml new file mode 100644 index 000000000..1550c18b8 --- /dev/null +++ b/mobile/android/base/resources/values-v11/styles.xml @@ -0,0 +1,112 @@ +<?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. --> + <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> diff --git a/mobile/android/base/resources/values-v11/themes.xml b/mobile/android/base/resources/values-v11/themes.xml new file mode 100644 index 000000000..af8145226 --- /dev/null +++ b/mobile/android/base/resources/values-v11/themes.xml @@ -0,0 +1,45 @@ +<?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"> + + <!-- + Base application theme. This could be overridden by GeckoBaseTheme + in other res/values-XXX/themes.xml. + --> + <style name="GeckoBase" parent="Theme.AppCompat.Light.DarkActionBar"> + <item name="android:windowContentOverlay">@null</item> + <item name="windowActionBar">false</item> + <item name="windowNoTitle">true</item> + </style> + + <style name="GeckoDialogBase" parent="@android:style/Theme.Holo.Light.Dialog"> + <item name="android:windowContentOverlay">@null</item> + <item name="android:windowActionBar">false</item> + <item name="android:windowNoTitle">true</item> + <item name="android:windowBackground">@android:color/transparent</item> + </style> + + <style name="GeckoTitleDialogBase" parent="@android:style/Theme.Holo.Light.Dialog" /> + + <!-- + Activity based themes for API 11+. This theme completely replaces + GeckoAppBase from res/values/themes.xml on API 11+ devices. + --> + <style name="GeckoAppBase" parent="Gecko"> + <item name="android:actionButtonStyle">@style/GeckoActionBar.Button</item> + <item name="android:actionModeCopyDrawable">@drawable/ab_copy</item> + <item name="android:actionModeCutDrawable">@drawable/ab_cut</item> + <item name="android:actionModePasteDrawable">@drawable/ab_paste</item> + <item name="android:listViewStyle">@style/Widget.ListView</item> + <item name="android:spinnerDropDownItemStyle">@style/Widget.DropDownItem.Spinner</item> + <item name="android:spinnerItemStyle">@style/Widget.TextView.SpinnerItem</item> + <item name="menuItemSwitcherLayoutStyle">@style/Widget.MenuItemSwitcherLayout</item> + <item name="menuItemDefaultStyle">@style/Widget.MenuItemDefault</item> + <item name="menuItemSecondaryActionBarStyle">@style/Widget.MenuItemSecondaryActionBar</item> + <item name="tabGridLayoutViewStyle">@style/Widget.TabsGridLayout</item> + </style> + +</resources> |