Home | History | Annotate | Download | only in values
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3     Copyright (C) 2015 The Android Open Source Project
      4 
      5     Licensed under the Apache License, Version 2.0 (the "License");
      6     you may not use this file except in compliance with the License.
      7     You may obtain a copy of the License at
      8 
      9          http://www.apache.org/licenses/LICENSE-2.0
     10 
     11     Unless required by applicable law or agreed to in writing, software
     12     distributed under the License is distributed on an "AS IS" BASIS,
     13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14     See the License for the specific language governing permissions and
     15     limitations under the License.
     16 -->
     17 
     18 <resources xmlns:tools="http://schemas.android.com/tools">
     19 
     20     <!-- General styles -->
     21 
     22     <style name="SuwThemeMaterial" parent="Theme.AppCompat.NoActionBar">
     23         <item name="android:indeterminateTint" tools:ignore="NewApi">@color/suw_progress_bar_color_dark</item>
     24         <!-- Specify the indeterminateTintMode to work around a bug in Lollipop -->
     25         <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item>
     26         <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item>
     27         <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item>
     28         <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/black</item>
     29         <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item>
     30         <item name="android:textColorLink">@color/suw_link_color_dark</item>
     31         <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
     32         <item name="android:windowDisablePreview">true</item>
     33         <item name="android:windowSoftInputMode">adjustResize</item>
     34 
     35         <item name="colorAccent">@color/suw_color_accent_dark</item>
     36         <item name="listPreferredItemPaddingLeft">?attr/suwMarginSides</item>
     37         <item name="listPreferredItemPaddingRight">?attr/suwMarginSides</item>
     38         <item name="suwCardBackground">@drawable/suw_card_bg_dark</item>
     39         <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description</item>
     40         <item name="suwListItemIconColor">@color/suw_list_item_icon_color_dark</item>
     41         <item name="suwMarginSides">@dimen/suw_layout_margin_sides</item>
     42         <item name="suwNavBarTheme">@style/SuwNavBarThemeDark</item>
     43         <item name="textAppearanceListItemSmall">@style/TextAppearance.SuwItemSummary</item>
     44     </style>
     45 
     46     <style name="SuwThemeMaterial.Light" parent="Theme.AppCompat.Light.NoActionBar">
     47         <item name="android:indeterminateTint" tools:ignore="NewApi">@color/suw_progress_bar_color_light</item>
     48         <!-- Specify the indeterminateTintMode to work around a bug in Lollipop -->
     49         <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item>
     50         <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item>
     51         <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item>
     52         <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/black</item>
     53         <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item>
     54         <item name="android:textColorLink">@color/suw_link_color_light</item>
     55         <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
     56         <item name="android:windowDisablePreview">true</item>
     57         <item name="android:windowSoftInputMode">adjustResize</item>
     58 
     59         <item name="colorAccent">@color/suw_color_accent_light</item>
     60         <item name="listPreferredItemPaddingLeft">?attr/suwMarginSides</item>
     61         <item name="listPreferredItemPaddingRight">?attr/suwMarginSides</item>
     62         <item name="suwCardBackground">@drawable/suw_card_bg_light</item>
     63         <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description</item>
     64         <item name="suwListItemIconColor">@color/suw_list_item_icon_color_light</item>
     65         <item name="suwMarginSides">@dimen/suw_layout_margin_sides</item>
     66         <item name="suwNavBarTheme">@style/SuwNavBarThemeLight</item>
     67         <item name="textAppearanceListItemSmall">@style/TextAppearance.SuwItemSummary</item>
     68     </style>
     69 
     70     <style name="SuwThemeGlif" parent="Theme.AppCompat.NoActionBar">
     71         <item name="android:indeterminateTint" tools:ignore="NewApi">?attr/colorControlActivated</item>
     72         <!-- Specify the indeterminateTintMode to work around a bug in Lollipop -->
     73         <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item>
     74         <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item>
     75         <item name="android:listPreferredItemPaddingEnd" tools:ignore="NewApi">?attr/suwMarginSides</item>
     76         <item name="android:listPreferredItemPaddingStart" tools:ignore="NewApi">?attr/suwMarginSides</item>
     77         <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item>
     78         <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/transparent</item>
     79         <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item>
     80         <item name="android:textColorLink">@color/suw_link_color_dark</item>
     81         <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
     82         <item name="android:windowDisablePreview">true</item>
     83         <item name="android:windowSoftInputMode">adjustResize</item>
     84 
     85         <item name="colorAccent">@color/suw_color_accent_glif_dark</item>
     86         <item name="colorPrimary">@color/suw_color_accent_glif_dark</item>
     87         <item name="listPreferredItemPaddingLeft">?attr/suwMarginSides</item>
     88         <item name="listPreferredItemPaddingRight">?attr/suwMarginSides</item>
     89         <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description.Glif</item>
     90         <item name="suwListItemIconColor">@color/suw_list_item_icon_color_dark</item>
     91         <item name="suwMarginSides">@dimen/suw_glif_margin_sides</item>
     92         <item name="textAppearanceListItem">@style/TextAppearance.SuwGlifItemTitle</item>
     93         <item name="textAppearanceListItemSmall">@style/TextAppearance.SuwGlifItemSummary</item>
     94     </style>
     95 
     96     <style name="SuwThemeGlif.Light" parent="Theme.AppCompat.Light.NoActionBar">
     97         <item name="android:indeterminateTint" tools:ignore="NewApi">?attr/colorControlActivated</item>
     98         <!-- Specify the indeterminateTintMode to work around a bug in Lollipop -->
     99         <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item>
    100         <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item>
    101         <item name="android:listPreferredItemPaddingEnd" tools:ignore="NewApi">?attr/suwMarginSides</item>
    102         <item name="android:listPreferredItemPaddingStart" tools:ignore="NewApi">?attr/suwMarginSides</item>
    103         <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item>
    104         <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/transparent</item>
    105         <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item>
    106         <item name="android:textColorLink">@color/suw_link_color_light</item>
    107         <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
    108         <item name="android:windowDisablePreview">true</item>
    109         <item name="android:windowSoftInputMode">adjustResize</item>
    110 
    111         <item name="colorAccent">@color/suw_color_accent_glif_light</item>
    112         <item name="colorPrimary">@color/suw_color_accent_glif_light</item>
    113         <item name="listPreferredItemPaddingLeft">?attr/suwMarginSides</item>
    114         <item name="listPreferredItemPaddingRight">?attr/suwMarginSides</item>
    115         <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description.Glif</item>
    116         <item name="suwListItemIconColor">@color/suw_list_item_icon_color_light</item>
    117         <item name="suwMarginSides">@dimen/suw_glif_margin_sides</item>
    118         <item name="textAppearanceListItem">@style/TextAppearance.SuwGlifItemTitle</item>
    119         <item name="textAppearanceListItemSmall">@style/TextAppearance.SuwGlifItemSummary</item>
    120     </style>
    121 
    122     <!-- Content styles -->
    123 
    124     <style name="TextAppearance.SuwDescription" parent="TextAppearance.AppCompat.Medium">
    125         <item name="android:textColor">?android:attr/textColorPrimary</item>
    126         <item name="android:textSize">@dimen/suw_description_text_size</item>
    127     </style>
    128 
    129     <!-- Items styles -->
    130 
    131     <style name="SuwItemContainer">
    132         <item name="android:minHeight">?android:attr/listPreferredItemHeight</item>
    133         <item name="android:paddingBottom">@dimen/suw_items_padding_vertical</item>
    134         <item name="android:paddingEnd" tools:ignore="NewApi">?attr/listPreferredItemPaddingRight</item>
    135         <item name="android:paddingLeft">?attr/listPreferredItemPaddingLeft</item>
    136         <item name="android:paddingRight">?attr/listPreferredItemPaddingRight</item>
    137         <item name="android:paddingStart" tools:ignore="NewApi">?attr/listPreferredItemPaddingLeft</item>
    138         <item name="android:paddingTop">@dimen/suw_items_padding_vertical</item>
    139     </style>
    140 
    141     <style name="SuwItemTitle">
    142         <item name="android:textAppearance">?attr/textAppearanceListItem</item>
    143     </style>
    144 
    145     <style name="SuwItemSummary">
    146         <item name="android:textAppearance">?attr/textAppearanceListItemSmall</item>
    147     </style>
    148 
    149     <!-- Button styles -->
    150 
    151     <style name="SuwButtonItem" />
    152 
    153     <style name="SuwButtonItem.Colored">
    154         <item name="android:buttonStyle">@style/Widget.AppCompat.Button</item>
    155         <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
    156         <item name="colorButtonNormal">?attr/colorAccent</item>
    157     </style>
    158 
    159     <!-- Card layout (for tablets) -->
    160 
    161     <style name="TextAppearance.SuwCardTitle" parent="@style/TextAppearance.AppCompat.Display1">
    162         <item name="android:textColor">@android:color/white</item>
    163     </style>
    164 
    165     <!-- GLIF Card layout (for tablets) -->
    166 
    167     <style name="SuwGlifCardBackground">
    168         <item name="android:background">?attr/colorPrimary</item>
    169     </style>
    170 
    171     <!-- Navigation bar styles -->
    172 
    173     <style name="SuwNavBarButtonStyle" parent="@android:style/Widget.Button">
    174         <item name="android:background">?attr/suwNavBarButtonBackground</item>
    175         <item name="android:drawablePadding">@dimen/suw_navbar_button_drawable_padding</item>
    176         <item name="android:fontFamily" tools:ignore="NewApi">sans-serif</item>
    177         <item name="android:minWidth">0dp</item>
    178         <item name="android:paddingLeft">@dimen/suw_navbar_button_padding_sides</item>
    179         <item name="android:paddingRight">@dimen/suw_navbar_button_padding_sides</item>
    180         <item name="android:textAllCaps" tools:ignore="NewApi">true</item>
    181         <item name="android:textColor">?attr/suwNavBarTextColor</item>
    182         <item name="android:textSize">@dimen/suw_navbar_text_size</item>
    183     </style>
    184 
    185     <style name="SuwNavBarThemeDark" parent="SuwNavBarTheme">
    186         <item name="suwNavBarBackgroundColor">@color/suw_navbar_bg_dark</item>
    187         <item name="suwNavBarButtonBackground">@drawable/suw_navbar_btn_bg_dark</item>
    188     </style>
    189 
    190     <style name="SuwNavBarThemeLight" parent="SuwNavBarTheme">
    191         <item name="suwNavBarBackgroundColor">@color/suw_navbar_bg_light</item>
    192         <item name="suwNavBarButtonBackground">@drawable/suw_navbar_btn_bg_light</item>
    193     </style>
    194 
    195 </resources>
    196