Home | History | Annotate | Download | only in values
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /**
      4  * Copyright (C) 2014 The Android Open Source Project
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *     http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 -->
     19 <resources>
     20 
     21     <style name="TextOrCheckBox">
     22         <item name="android:textColor">@color/text_black</item>
     23         <item name="android:textSize">@dimen/main_text_size</item>
     24         <item name="android:layout_width">match_parent</item>
     25         <item name="android:layout_height">wrap_content</item>
     26         <item name="android:lineSpacingMultiplier">1.2</item>
     27     </style>
     28 
     29     <style name="MainText" parent="TextOrCheckBox">
     30         <item name="android:paddingTop">@dimen/main_text_padding_between_text</item>
     31     </style>
     32 
     33     <style name="CheckBox" parent="TextOrCheckBox">
     34         <item name="android:layout_marginTop">@dimen/checkbox_margin_top</item>
     35         <!-- Space between the checkbox itself and the text -->
     36         <item name="android:paddingLeft">@dimen/checkbox_padding_left</item>
     37     </style>
     38 
     39     <style name="TransparentButton" parent="@android:style/Widget.Material.Button.Borderless.Colored">
     40         <item name="android:layout_width">wrap_content</item>
     41         <item name="android:layout_height">wrap_content</item>
     42         <item name="android:gravity">center</item>
     43         <item name="android:textSize">@dimen/button_text_size</item>
     44         <item name="android:fontFamily">sans-serif-medium</item>
     45         <item name="android:background">@color/transparent</item>
     46         <item name="android:textAllCaps">true</item>
     47     </style>
     48 
     49     <style name="MainTextContainer">
     50         <item name="android:layout_width">match_parent</item>
     51         <item name="android:layout_height">match_parent</item>
     52         <item name="android:paddingBottom">@dimen/main_text_padding_bottom</item>
     53         <item name="android:paddingLeft">@dimen/main_text_padding_left_right</item>
     54         <item name="android:paddingRight">@dimen/main_text_padding_left_right</item>
     55         <item name="android:paddingTop">@dimen/main_text_padding_top</item>
     56         <item name="android:textSize">@dimen/main_text_size</item>
     57         <item name="android:textColor">@color/text_black</item>
     58         <item name="android:lineSpacingMultiplier">1.2</item>
     59     </style>
     60 
     61     <style name="DialogFragmentTextContainer">
     62         <item name="android:layout_width">@dimen/dialog_fragment_width</item>
     63         <item name="android:layout_height">wrap_content</item>
     64         <item name="android:orientation">vertical</item>
     65         <item name="android:background">@color/white</item>
     66         <item name="android:paddingBottom">@dimen/dialog_text_padding_bottom</item>
     67         <item name="android:paddingTop">@dimen/dialog_text_padding_top</item>
     68         <item name="android:textSize">@dimen/main_text_size</item>
     69         <item name="android:layout_marginTop">@dimen/dialog_fragment_margin_top_bottom</item>
     70         <item name="android:layout_marginBottom">@dimen/dialog_fragment_margin_top_bottom</item>
     71     </style>
     72 
     73     <style name="DialogFragmentScrollView" parent="@android:style/Widget.Material.Light.ScrollView">
     74         <item name="android:layout_width">match_parent</item>
     75         <item name="android:paddingLeft">@dimen/dialog_text_padding_left_right</item>
     76         <item name="android:paddingRight">@dimen/dialog_text_padding_left_right</item>
     77         <item name="android:fadeScrollbars">false</item>
     78         <item name="android:scrollbarStyle">outsideOverlay</item>
     79     </style>
     80 
     81     <style name="ManagedProvisioningDialogTheme" parent="@android:style/Theme.Material.Light.Dialog">
     82         <item name="android:windowFullscreen">true</item>
     83         <item name="android:windowNoTitle">true</item>
     84         <item name="android:windowBackground">@color/transparent</item>
     85         <!-- Color for checked checkbox -->
     86         <item name="android:colorControlActivated">@color/orange</item>
     87         <!-- Color for enabled button -->
     88         <item name="android:colorAccent">@color/accent</item>
     89     </style>
     90 
     91     <style name="Provisioning2Theme" parent="SuwThemeGlifV3.Light">
     92         <item name="android:windowBackground">@color/white</item>
     93         <item name="android:colorBackground">@color/white</item>
     94         <item name="swiper_color">@color/teal2</item>
     95         <item name="suwMarginSides">@dimen/intro_margin</item>
     96     </style>
     97 
     98     <style name="Provisioning2Theme.Text">
     99         <item name="android:textColor">@color/black</item>
    100     </style>
    101 
    102     <style name="Provisioning2Theme.Text.Primary">
    103         <item name="android:textColor">@color/black_text_primary</item>
    104         <!--notice: line height 20sp (textSize + leading)-->
    105         <item name="android:textSize">16sp</item>
    106         <item name="android:lineSpacingExtra">4sp</item>
    107     </style>
    108 
    109     <style name="Provisioning2Theme.Text.Primary.Title">
    110         <item name="android:fontFamily">sans-serif-medium</item>
    111         <item name="android:textSize">@dimen/info_text_title_size</item>
    112     </style>
    113 
    114     <style name="InfoAnimationTitle" parent="SuwBaseHeaderTitle">
    115         <item name="android:layout_width">@dimen/info_view_width</item>
    116         <item name="android:layout_height">match_parent</item>
    117         <item name="android:breakStrategy">balanced</item>
    118         <item name="android:gravity">center</item>
    119         <item name="android:singleLine">false</item>
    120     </style>
    121 
    122     <style name="Provisioning2Theme.Text.Secondary">
    123         <item name="android:textColor">@color/black_text_secondary</item>
    124         <!--notice: line height 20sp (textSize + leading)-->
    125         <item name="android:textSize">14sp</item>
    126         <item name="android:lineSpacingExtra">6sp</item>
    127     </style>
    128 
    129     <style name="Provisioning2Theme.Text.Secondary.Small">
    130         <!--notice: line height 20sp (textSize + leading)-->
    131         <item name="android:textSize">12sp</item>
    132         <item name="android:lineSpacingExtra">8sp</item>
    133     </style>
    134 
    135     <style name="Provisioning2Theme.Button" parent="SuwGlifButton.Primary">
    136         <item name="android:paddingStart">@dimen/spacer_12</item>
    137         <item name="android:paddingEnd">@dimen/spacer_12</item>
    138         <item name="android:paddingTop">0dp</item>
    139         <item name="android:paddingBottom">0dp</item>
    140         <item name="android:minHeight">0dp</item>
    141         <item name="android:layout_gravity">center_horizontal</item>
    142         <item name="android:layout_width">wrap_content</item>
    143         <item name="android:layout_height">wrap_content</item>
    144         <item name="android:stateListAnimator">@null</item> <!-- removes button shadow -->
    145         <item name="android:background">@drawable/button_ripple</item>
    146     </style>
    147 
    148     <style name="Provisioning2Theme.Button.Blue">
    149         <item name="android:textColor">@color/white</item>
    150         <item name="android:backgroundTint">@color/blue</item>
    151     </style>
    152 
    153     <style name="Provisioning2Theme.Button.Gray">
    154         <item name="android:textColor">@color/gray_button_text</item>
    155         <item name="android:backgroundTint">@color/gray</item>
    156     </style>
    157 
    158     <style name="Provisioning2Theme.Button.Transparent">
    159         <item name="android:textColor">@color/blue</item>
    160         <item name="android:background">@null</item>
    161         <item name="android:textAllCaps">false</item>
    162     </style>
    163 
    164     <style name="Provisioning2Theme.Divider">
    165         <item name="android:layout_width">match_parent</item>
    166         <item name="android:layout_height">1dp</item>
    167         <item name="android:background">@color/gray_divider</item>
    168     </style>
    169 
    170     <style name="NonGlifTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
    171         <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
    172         <item name="actionBarTheme">@style/NonGlifToolbarTheme</item>
    173     </style>
    174 
    175     <style name="NonGlifToolbarTheme" parent="android:style/Theme.Material.Light.DarkActionBar">
    176         <item name="android:background">#F8F9FA</item>
    177         <item name="android:textColorPrimary">@*android:color/accent_device_default_light</item>
    178         <item name="android:textColorSecondary">@*android:color/accent_device_default_light</item>
    179         <item name="android:navigationIcon">@drawable/ic_arrow_back_24dp</item>
    180         <item name="android:navigationContentDescription">@*android:string/action_bar_up_description</item>
    181     </style>
    182 </resources>