diff options
Diffstat (limited to 'mobile/android/base/resources/values/themes.xml')
-rw-r--r-- | mobile/android/base/resources/values/themes.xml | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/mobile/android/base/resources/values/themes.xml b/mobile/android/base/resources/values/themes.xml new file mode 100644 index 000000000..f62a9d454 --- /dev/null +++ b/mobile/android/base/resources/values/themes.xml @@ -0,0 +1,123 @@ +<?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> + + <!-- + 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="windowNoTitle">true</item> + <item name="windowActionBar">false</item> + <item name="android:windowContentOverlay">@null</item> + </style> + + <style name="GeckoDialogBase" parent="@android:style/Theme.Dialog"> + <item name="android:windowNoTitle">true</item> + <item name="android:windowContentOverlay">@null</item> + </style> + + <style name="GeckoTitleDialogBase" parent="@android:style/Theme.Dialog" /> + + <style name="Gecko.Preferences"> + <item name="windowActionBar">true</item> + <item name="windowNoTitle">false</item> + <item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item> + <item name="actionBarStyle">@style/PreferencesActionBar</item> + </style> + + <!-- + Application Theme. All customizations that are not specific + to a particular API level can go here. + --> + <style name="Gecko" parent="GeckoBase"> + <!-- Default colors --> + <item name="android:textColorPrimary">@color/primary_text</item> + <item name="android:textColorSecondary">@color/secondary_text</item> + <item name="android:textColorTertiary">@color/tertiary_text</item> + + <!-- Default inverse colors --> + <item name="android:textColorPrimaryInverse">@color/primary_text</item> + <item name="android:textColorSecondaryInverse">@color/secondary_text</item> + <item name="android:textColorTertiaryInverse">@color/tertiary_text</item> + + <!-- Disabled colors --> + <item name="android:textColorPrimaryDisableOnly">@color/text_color_primary_disable_only</item> + + <!-- Hint colors --> + <item name="android:textColorHint">@color/text_color_hint</item> + <item name="android:textColorHintInverse">@color/text_color_hint_inverse</item> + + <!-- Highlight colors --> + <item name="android:textColorHighlight">@color/fennec_ui_orange</item> + <item name="android:textColorHighlightInverse">@color/text_color_highlight_inverse</item> + + <!-- Link colors --> + <item name="android:textColorLink">@color/text_color_link</item> + + <!-- TextAppearances --> + <item name="android:textAppearance">@style/TextAppearance</item> + <item name="android:textAppearanceInverse">@style/TextAppearance.Inverse</item> + <item name="android:textAppearanceLarge">@style/TextAppearance.Large</item> + <item name="android:textAppearanceMedium">@style/TextAppearance.Medium</item> + <item name="android:textAppearanceSmall">@style/TextAppearance.Small</item> + <item name="android:textAppearanceLargeInverse">@style/TextAppearance.Large.Inverse</item> + <item name="android:textAppearanceMediumInverse">@style/TextAppearance.Medium.Inverse</item> + <item name="android:textAppearanceSmallInverse">@style/TextAppearance.Small.Inverse</item> + + <item name="colorAccent">@color/action_orange</item> + + <item name="actionBarTheme">@style/GeckoActionBar</item> + </style> + + <style name="Gecko.Dialog" parent="GeckoDialogBase"/> + + <style name="Gecko.TitleDialog" parent="GeckoTitleDialogBase"/> + + <!-- + Activity based themes, dependent on API level. This theme is replaced + by GeckoAppBase from res/values-vXX/themes.xml on newer devices. + --> + <style name="GeckoAppBase" parent="Gecko"> + <item name="android:buttonStyle">@style/Widget.Button</item> + <item name="android:dropDownItemStyle">@style/Widget.DropDownItem</item> + <item name="android:editTextStyle">@style/Widget.EditText</item> + <item name="android:textViewStyle">@style/Widget.TextView</item> + <item name="menuItemDefaultStyle">@style/Widget.MenuItemDefault</item> + </style> + + <!-- All customizations that are NOT specific to a particular API-level can go here. --> + <style name="Gecko.App" parent="GeckoAppBase"> + <item name="android:gridViewStyle">@style/Widget.GridView</item> + <item name="android:spinnerStyle">@style/Widget.Spinner</item> + <item name="android:windowBackground">@android:color/white</item> + <item name="bookmarksListViewStyle">@style/Widget.BookmarksListView</item> + <item name="tabGridLayoutViewStyle">@style/Widget.TabsGridLayout</item> + <item name="geckoMenuListViewStyle">@style/Widget.GeckoMenuListView</item> + <item name="homeListViewStyle">@style/Widget.HomeListView</item> + <item name="menuItemActionBarStyle">@style/Widget.MenuItemActionBar</item> + <item name="menuItemActionModeStyle">@style/GeckoActionBar.Button</item> + <item name="topSitesGridItemViewStyle">@style/Widget.TopSitesGridItemView</item> + <item name="topSitesGridViewStyle">@style/Widget.TopSitesGridView</item> + <item name="topSitesThumbnailViewStyle">@style/Widget.TopSitesThumbnailView</item> + </style> + + <!-- Make an activity appear like an overlay. --> + <style name="OverlayActivity" parent="Gecko"> + <item name="android:windowBackground">@android:color/transparent</item> + <item name="android:windowNoTitle">true</item> + <item name="android:windowIsTranslucent">true</item> + <item name="android:backgroundDimEnabled">true</item> + + <!-- Set the app's title bar color in the recent app switcher. + + Note: We'd prefer not to show up in the recent app switcher (bug 1137928). --> + <item name="android:colorPrimary">@color/text_and_tabs_tray_grey</item> + <!-- We display the overlay on top of other Activities so show their status bar. --> + <item name="android:statusBarColor">@android:color/transparent</item> + </style> + +</resources> |