Home | History | Annotate | Download | only in values
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2014 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 <resources xmlns:android="http://schemas.android.com/apk/res/android">
     17     <attr name="wifi_signal_color" format="reference" />
     18     <attr name="wps_color" format="reference" />
     19 
     20     <style name="SettingsStyle.TextAppearanceMedium" parent="@android:style/TextAppearance.Holo.Medium">
     21         <item name="android:textSize">14sp</item>
     22         <item name="android:fontFamily">sans-serif-light</item>
     23     </style>
     24 
     25     <style name="SettingsStyle.TextAppearanceLarge" parent="@android:style/TextAppearance.Holo.Large">
     26         <item name="android:textSize">34sp</item>
     27         <item name="android:fontFamily">sans-serif-light</item>
     28     </style>
     29 
     30     <style name="SettingsWindowAnimationStyle" parent="@android:style/Animation.Activity">
     31         <item name="android:fragmentOpenEnterAnimation">@anim/setup_fragment_open_in</item>
     32         <item name="android:fragmentOpenExitAnimation">@anim/setup_fragment_open_out</item>
     33         <item name="android:fragmentCloseEnterAnimation">@anim/setup_fragment_close_in</item>
     34         <item name="android:fragmentCloseExitAnimation">@anim/setup_fragment_close_out</item>
     35     </style>
     36 
     37     <!-- Default Settings theme -->
     38     <style name="Theme.Settings" parent="@style/Theme.Leanback">
     39         <item name="android:windowBackground">@color/settings_background</item>
     40         <item name="android:colorBackgroundCacheHint">@null</item>
     41         <item name="android:windowShowWallpaper">true</item>
     42         <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
     43         <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Leanback</item>
     44         <item name="wifi_signal">@drawable/wifi_signal</item>
     45         <item name="wifi_signal_color">?android:attr/colorAccent</item>
     46         <item name="wps_color">@color/normal</item>
     47     </style>
     48 
     49     <style name="Theme.Setup" parent="@style/Theme.Settings">
     50         <item name="wifi_signal_color">@color/list_item_icon</item>
     51         <item name="wps_color">@color/list_item_icon</item>
     52     </style>
     53 
     54     <style name="Theme.Settings.Transparent">
     55         <item name="android:windowBackground">@android:color/transparent</item>
     56         <item name="android:windowIsTranslucent">true</item>
     57         <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
     58         <item name="android:backgroundDimEnabled">true</item>
     59         <item name="android:backgroundDimAmount">0.8</item>
     60     </style>
     61 
     62     <!-- FormWizard version of Theme.Settings -->
     63     <style name="Theme.Leanback.FormWizard.Solid" parent="@android:style/Theme.Leanback.FormWizard">
     64         <item name="android:windowBackground">@color/settings_background</item>
     65         <item name="android:colorBackgroundCacheHint">@null</item>
     66         <item name="android:windowShowWallpaper">true</item>
     67         <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
     68     </style>
     69 
     70     <!-- Transparent version of FormWizard, shown during Setup -->
     71     <style name="Theme.Leanback.FormWizard.Transparent" parent="@android:style/Theme.Leanback.FormWizard">
     72         <item name="android:windowBackground">@android:color/transparent</item>
     73         <item name="android:windowIsTranslucent">true</item>
     74         <item name="android:windowShowWallpaper">true</item>
     75         <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
     76         <item name="wps_color">@color/list_item_icon</item>
     77     </style>
     78 
     79     <style name="Theme.Settings.BluetoothPairing" parent="@style/SettingsStyle.TextAppearanceMedium">
     80         <item name="android:textSize">@dimen/text_size_description</item>
     81     </style>
     82 
     83     <style name="HintText">
     84         <item name="android:fontFamily">sans-serif-thin</item>
     85         <item name="android:textColor">@color/add_accessory_hint_text_color</item>
     86         <item name="android:textSize">16sp</item>
     87     </style>
     88 
     89     <style name="ContentFragment">
     90         <item name="android:layout_width">match_parent</item>
     91         <item name="android:layout_height">match_parent</item>
     92     </style>
     93 
     94     <style name="pin_dialog_animation" parent="@android:style/Animation.Activity">
     95         <item name="android:windowEnterAnimation">@anim/pin_dialog_enter</item>
     96         <item name="android:windowExitAnimation">@anim/pin_dialog_exit</item>
     97     </style>
     98 
     99     <style name="Canvas" />
    100 
    101     <style name="Canvas.Text" />
    102 
    103     <style name="Canvas.Text.Dialog" />
    104 
    105     <style name="Canvas.Text.Dialog.Content" />
    106 
    107     <style name="Canvas.Text.Dialog.Content.Title">
    108         <item name="android:fontFamily">sans-serif-light</item>
    109         <item name="android:paddingBottom">@dimen/content_fragment_title_text_bottom_padding</item>
    110         <item name="android:paddingTop">@dimen/content_fragment_title_text_top_padding</item>
    111         <item name="android:textColor">@color/content_title_text_color</item>
    112         <item name="android:textSize">@dimen/content_fragment_title_text_size</item>
    113     </style>
    114 
    115     <style name="Canvas.Text.Dialog.Content.Breadcrumb">
    116         <item name="android:fontFamily">sans-serif-condensed</item>
    117         <item name="android:textColor">@color/content_breadcrumb_text_color</item>
    118         <item name="android:textSize">@dimen/content_fragment_breadcrumb_text_size</item>
    119     </style>
    120 
    121     <style name="Canvas.Text.Dialog.Content.Description">
    122         <item name="android:fontFamily">sans-serif</item>
    123         <item name="android:gravity">end</item>
    124         <item name="android:textColor">@color/content_description_text_color</item>
    125         <item name="android:textSize">@dimen/content_fragment_description_text_size</item>
    126         <item name="android:lineSpacingExtra">3dp</item>
    127     </style>
    128 
    129     <style name="Canvas.Text.Dialog.List" />
    130 
    131     <style name="Canvas.Image.Dialog.List.Checkmark">
    132         <item name="android:scaleType">center</item>
    133         <item name="android:src">@drawable/list_item_checkmark</item>
    134         <item name="android:visibility">invisible</item>
    135     </style>
    136 
    137     <style name="Canvas.Text.Dialog.List.Title">
    138         <item name="android:fontFamily">sans-serif-condensed</item>
    139         <item name="android:alpha">@dimen/list_item_unselected_text_alpha</item>
    140         <item name="android:textSize">@dimen/list_item_title_font_size</item>
    141         <item name="android:textColor">@color/list_item_unselected_text_color</item>
    142     </style>
    143 
    144     <style name="Canvas.Text.Dialog.List.Description">
    145         <item name="android:fontFamily">sans-serif-condensed</item>
    146         <item name="android:alpha">@dimen/list_item_unselected_text_alpha</item>
    147         <item name="android:textSize">@dimen/list_item_description_font_size</item>
    148         <item name="android:textColor">@color/list_item_unselected_text_color</item>
    149         <item name="android:visibility">gone</item>
    150     </style>
    151 
    152     <style name="Canvas.Image" />
    153 
    154     <style name="Canvas.Image.Dialog" />
    155 
    156     <style name="Canvas.Image.Dialog.Content" />
    157 
    158     <style name="Canvas.Image.Dialog.Content.Icon">
    159         <item name="android:maxHeight">@dimen/content_fragment_max_icon_height</item>
    160         <item name="android:scaleType">center</item>
    161         <item name="android:src">@drawable/content_fragment_default_icon</item>
    162     </style>
    163 
    164     <style name="Canvas.Image.Dialog.List" />
    165 
    166     <style name="Canvas.Image.Dialog.List.Icon">
    167         <item name="android:scaleType">center</item>
    168         <item name="android:visibility">gone</item>
    169     </style>
    170 
    171     <style name="SyncSwitchPreference" parent="LeanbackPreference">
    172         <item name="android:widgetLayout">@layout/preference_widget_sync_toggle</item>
    173     </style>
    174 
    175     <style name="Setup" />
    176 
    177     <style name="Setup.Description" />
    178 
    179     <style name="Setup.Action" />
    180 
    181     <style name="Setup.Description.Title">
    182         <item name="android:fontFamily">sans-serif-light</item>
    183         <item name="android:textColor">?android:attr/textColorPrimary</item>
    184         <item name="android:textSize">36sp</item>
    185     </style>
    186 
    187     <style name="Setup.Description.Description">
    188         <item name="android:fontFamily">sans-serif</item>
    189         <item name="android:textSize">@dimen/setup_description_text_size</item>
    190         <item name="android:textColor">?android:attr/textColorPrimary</item>
    191     </style>
    192 
    193     <style name="Setup.Action.ListItem">
    194         <item name="android:fontFamily">sans-serif-condensed</item>
    195         <item name="android:textColor">@color/list_item</item>
    196         <item name="android:textSize">@dimen/setup_list_item_text_size</item>
    197     </style>
    198 
    199     <style name="Setup.Action.TextInput">
    200         <item name="android:fontFamily">sans-serif-condensed</item>
    201         <item name="android:textColor">@color/list_item</item>
    202         <item name="android:textSize">@dimen/setup_list_item_text_size</item>
    203     </style>
    204 
    205     <style name="Setup.Action.TextInput">
    206         <item name="android:fontFamily">sans-serif-condensed</item>
    207         <item name="android:background">@drawable/setup_text_input_underline</item>
    208         <item name="android:textCursorDrawable">@drawable/setup_text_input_cursor</item>
    209         <item name="android:textColor">@color/setup_list_item_focused</item>
    210         <item name="android:textSize">@dimen/setup_list_item_text_size</item>
    211     </style>
    212 
    213     <style name="Setup.ProgressTitle">
    214         <item name="android:fontFamily">sans-serif-light</item>
    215         <item name="android:textColor">@color/activity_progress_text</item>
    216         <item name="android:textSize">@dimen/activity_progress_title_text_size</item>
    217     </style>
    218 
    219 </resources>
    220