| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2017 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <resources> |
| |
| <!-- Main themes --> |
| <style name="WallpaperTheme" parent="@android:style/Theme.DeviceDefault.Settings"> |
| <item name="colorPrimary">?android:colorPrimary</item> |
| <item name="colorControlActivated">?attr/colorPrimary</item> |
| <item name="android:statusBarColor">?attr/colorPrimary</item> |
| <item name="android:navigationBarColor">@color/translucent_black</item> |
| <item name="android:navigationBarDividerColor">@android:color/transparent</item> |
| <item name="android:windowLightStatusBar">false</item> |
| |
| <item name="actionBarSize">?android:attr/actionBarSize</item> |
| <item name="homeAsUpIndicator">@drawable/material_ic_arrow_back_black_24</item> |
| |
| <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> |
| <item name="dialogPreferredPadding">24dp</item> |
| <item name="colorControlHighlight">@color/ripple_material_dark</item> |
| <item name="windowActionBar">false</item> |
| <item name="windowNoTitle">true</item> |
| <item name="toolbarNavigationButtonStyle">@android:style/Widget.Toolbar.Button.Navigation |
| </item> |
| |
| <item name="android:windowActionBar">false</item> |
| <item name="android:windowNoTitle">true</item> |
| <item name="android:fitsSystemWindows">false</item> |
| <item name="android:windowDrawsSystemBarBackgrounds">true</item> |
| </style> |
| |
| <style name="WallpaperTheme.NoBackground"> |
| <item name="android:windowBackground">@android:color/transparent</item> |
| <item name="android:windowContentOverlay">@null</item> |
| <item name="android:windowDisablePreview">true</item> |
| </style> |
| |
| <style name="WallpaperTheme.Preview" parent="@android:style/Theme.DeviceDefault.Settings"> |
| <item name="android:colorPrimary">@color/material_white_100</item> |
| <item name="colorPrimary">@color/material_white_100</item> |
| <item name="colorControlActivated">?attr/colorPrimary</item> |
| <item name="android:windowBackground">@android:color/transparent</item> |
| <item name="android:windowContentOverlay">@null</item> |
| <item name="android:windowDisablePreview">true</item> |
| |
| <!-- Set no title and no action bar because we use a toolbar instead. --> |
| <item name="windowActionBar">false</item> |
| <item name="windowNoTitle">true</item> |
| <item name="android:windowActionBar">false</item> |
| <item name="android:windowNoTitle">true</item> |
| |
| <item name="actionBarSize">?android:attr/actionBarSize</item> |
| <item name="homeAsUpIndicator">@drawable/material_ic_arrow_back_black_24</item> |
| |
| <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> |
| <item name="dialogPreferredPadding">24dp</item> |
| <item name="colorControlHighlight">@color/ripple_material_dark</item> |
| <item name="toolbarNavigationButtonStyle">@android:style/Widget.Toolbar.Button.Navigation |
| </item> |
| |
| <!-- Set status bar and navigation buttons to be translucent. --> |
| <item name="android:colorPrimaryDark">@color/translucent_black</item> |
| <item name="android:statusBarColor">@android:color/transparent</item> |
| <item name="android:navigationBarColor">@android:color/transparent</item> |
| |
| <!-- Apply borderless button style for the right ripple effect. --> |
| <item name="borderlessButtonStyle">@android:style/Widget.DeviceDefault.Button.Borderless |
| </item> |
| |
| <item name="android:actionBarItemBackground"> |
| ?android:attr/selectableItemBackgroundBorderless |
| </item> |
| </style> |
| |
| <!-- Dialog themes --> |
| <style name="LightDialogTheme" parent="@android:style/Theme.DeviceDefault.Dialog.NoActionBar"> |
| <item name="android:layout">@layout/abc_alert_dialog_material</item> |
| <item name="windowActionBar">false</item> |
| <item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item> |
| <item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item> |
| <item name="android:dialogCornerRadius">24dp</item> |
| </style> |
| |
| <style name="ResetDialogTheme" parent="LightDialogTheme"> |
| <item name="android:colorBackground">@color/system_surface_bright</item> |
| </style> |
| |
| <style name="ProgressDialogThemePreL" parent="@style/Theme.AppCompat.Light.Dialog.Alert"> |
| <item name="android:windowBackground">@android:color/transparent</item> |
| </style> |
| |
| <!-- Text appearance --> |
| <style name="TitleTextAppearance" parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title"/> |
| |
| <style name="SubtitleTextAppearance" parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Subtitle"/> |
| |
| <style name="SeparatedTabsTextAppearance" parent="TitleTextAppearance"> |
| <item name="android:textStyle" /> |
| <item name="textAllCaps">false</item> |
| <item name="android:textSize">14sp</item> |
| <item name="android:letterSpacing">0.02</item> |
| </style> |
| |
| <style name="CategorySectionTitleTextAppearance" parent="TitleTextAppearance"> |
| <item name="android:color">@color/system_on_surface</item> |
| <item name="android:textStyle" /> |
| <item name="textAllCaps">false</item> |
| <item name="android:textSize">16sp</item> |
| <item name="android:textFontWeight">500</item> |
| </style> |
| |
| <!-- Individual components / Widgets --> |
| <style name="OutlinedButtonStyle" parent="@android:style/Widget.DeviceDefault.Button"> |
| <item name="android:background">@drawable/btn_transparent</item> |
| <item name="android:textColor">?android:attr/colorAccent</item> |
| </style> |
| |
| <style name="ExploreButtonStyle" parent="OutlinedButtonStyle"> |
| <item name="android:insetLeft">0dp</item> |
| <item name="android:insetRight">0dp</item> |
| <item name="android:minWidth">0dp</item> |
| <item name="android:minHeight">22sp</item> |
| <item name="android:textSize">16sp</item> |
| </style> |
| |
| <!-- Preview attribution pane styles --> |
| <style name="WallpaperPicker.BottomPaneStyle" parent="@android:style/Theme.DeviceDefault.Settings"/> |
| |
| <style name="WallpaperPicker.FloatingPaneStyle" |
| parent="@android:style/Theme.DeviceDefault.Settings" /> |
| |
| <!-- Preview customization pane styles --> |
| <style name="WallpaperPicker.CustomizationPaneStyle" parent="@android:style/Theme.DeviceDefault.Settings"> |
| <item name="tabTextAppearance">@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps</item> |
| <item name="tabIndicatorColor">?android:attr/textColorPrimary</item> |
| <item name="tabGravity">fill</item> |
| <item name="tabMaxWidth">0dp</item> |
| </style> |
| |
| <style name="WallpaperPicker.Preview.TextAppearance.NoAllCaps" |
| parent="@android:style/TextAppearance.DeviceDefault.Widget.TabWidget"> |
| <item name="android:textAllCaps">false</item> |
| </style> |
| |
| <!-- Set wallpaper destination item --> |
| <!-- Studio can't directly reference ?androidprv:attr/textColorOnAccent here, |
| so we set the text color on the dialog items instead. --> |
| <style name="set_wallpaper_destination_item"> |
| <item name="android:fontFamily">@*android:string/config_bodyFontFamilyMedium</item> |
| <item name="android:minHeight">@dimen/set_wallpaper_dialog_item_min_height</item> |
| <item name="android:minWidth">@dimen/set_wallpaper_dialog_item_min_width</item> |
| <item name="android:textAlignment">center</item> |
| <item name="android:textSize">@dimen/abc_text_size_small_material</item> |
| <item name="android:letterSpacing">0.02</item> |
| <item name="android:gravity">center</item> |
| <item name="android:background">@drawable/dialog_option_background</item> |
| </style> |
| |
| <!-- Desktop UI - category tabs layout --> |
| <style name="CategoryTabLayout" parent="Widget.Design.TabLayout"> |
| <item name="tabIndicatorColor">@color/material_white_100</item> |
| <item name="tabIndicatorHeight">2dp</item> |
| <item name="tabTextAppearance">@style/CategoryTabTextAppearance</item> |
| </style> |
| |
| <style name="CategoryTabTextAppearance" parent="TextAppearance.Design.Tab"> |
| <item name="android:textColor">@color/white_67_alpha</item> |
| <item name="android:textSize">@dimen/category_tab_text_size</item> |
| <item name="textAllCaps">false</item> |
| </style> |
| |
| <!-- Preview cards --> |
| <style name="PreviewCard" parent="CardView"> |
| <item name="cardCornerRadius">?android:dialogCornerRadius</item> |
| <item name="android:clipChildren">true</item> |
| <item name="contentPadding">@dimen/preview_card_padding</item> |
| <item name="cardElevation">0dp</item> |
| </style> |
| |
| <style name="FullContentPreviewCard" parent="PreviewCard"> |
| <item name="contentPadding">0dp</item> |
| </style> |
| |
| <!-- Bottom action item --> |
| <style name="BottomActionItemStyle"> |
| <item name="android:paddingHorizontal">@dimen/bottom_action_button_padding_horizontal</item> |
| </style> |
| |
| <!-- Option tiles --> |
| <style name="OptionTitleTextAppearance" parent="TitleTextAppearance"> |
| <item name="android:textColor">@color/option_title_color</item> |
| <item name="android:textAlignment">center</item> |
| <item name="android:textSize">@dimen/option_title_font_text_size</item> |
| <item name="android:lineHeight">@dimen/option_title_line_height</item> |
| </style> |
| |
| <!-- Labeled tiles --> |
| <style name="GridLabelTextAppearance" parent="TitleTextAppearance"> |
| <item name="android:textColor">@color/text_color_light</item> |
| <item name="android:textAlignment">center</item> |
| <item name="android:textSize">@dimen/grid_label_font_text_size</item> |
| <item name="android:lineHeight">@dimen/grid_label_line_height</item> |
| <item name="android:textAllCaps">false</item> |
| </style> |
| |
| <!-- Preview header --> |
| <style name="PreviewHeaderStyle"> |
| <item name="android:paddingBottom">?android:attr/actionBarSize</item> |
| </style> |
| |
| <!-- Screen preview layout --> |
| <style name="ScreenPreviewLayoutStyle"> |
| <item name="android:layout_marginTop">?android:attr/actionBarSize</item> |
| </style> |
| |
| <!-- CollapsingToolbarTitle --> |
| <style name="CollapsingToolbar.Collapsed" |
| parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title"> |
| <item name="android:fontFamily">google-sans</item> |
| <item name="android:textSize">20sp</item> |
| <item name="android:textColor">@color/settingslib_text_color_primary_device_default</item> |
| </style> |
| |
| <style name="CollapsingToolbar.Expanded" parent="CollapsingToolbarTitle.Collapsed"> |
| <item name="android:fontFamily">google-sans</item> |
| <item name="android:textSize">36sp</item> |
| <item name="android:textColor">@color/settingslib_text_color_primary_device_default</item> |
| </style> |
| |
| <style name="DialogButton"> |
| <item name="android:gravity">center</item> |
| <item name="android:textAppearance">@android:style/TextAppearance.DeviceDefault.Small</item> |
| <item name="android:textFontWeight">500</item> |
| <item name="android:paddingVertical">8dp</item> |
| <item name="android:paddingHorizontal">16dp</item> |
| </style> |
| |
| <style name="DialogButton.Primary"> |
| <item name="android:textColor">@color/system_on_primary</item> |
| <item name="android:background">@drawable/primary_dialog_button_background</item> |
| </style> |
| |
| <style name="DialogButton.Secondary"> |
| <item name="android:textColor">@color/system_on_surface</item> |
| <item name="android:background">@drawable/secondary_dialog_button_background</item> |
| </style> |
| |
| <!-- SetWallpaperPreviewDialog --> |
| <style name="SetWallpaperPreviewDialogTheme" parent="@android:style/Theme.DeviceDefault.Dialog.NoActionBar.MinWidth"> |
| <item name="android:buttonBarPositiveButtonStyle">@style/SetWallpaperDialog.Button</item> |
| <item name="android:buttonBarNegativeButtonStyle">@style/SetWallpaperDialog.Button.OutlinedButton</item> |
| <item name="android:buttonBarNeutralButtonStyle">@style/SetWallpaperDialog.Button.TextButton</item> |
| </style> |
| |
| <style name="SetWallpaperDialog"/> |
| <style name="SetWallpaperDialog.Button"> |
| <item name="android:textColor">@color/system_on_primary</item> |
| <item name="android:background">@drawable/set_wallpaper_dialog_button</item> |
| </style> |
| |
| <style name="SetWallpaperDialog.Button.OutlinedButton"> |
| <item name="android:textColor">@color/system_on_surface</item> |
| <item name="android:background">@drawable/set_wallpaper_dialog_outlined_button</item> |
| </style> |
| |
| <style name="SetWallpaperDialog.Button.TextButton"> |
| <item name="android:textColor">@color/system_secondary</item> |
| <item name="android:background">@drawable/set_wallpaper_dialog_text_button</item> |
| </style> |
| |
| <style name="TextAppearance.SetWallpaperDialog.Title" parent="@android:style/TextAppearance.DeviceDefault.Large"> |
| <item name="android:textColor">@color/system_on_surface</item> |
| <item name="android:textSize">24sp</item> |
| <item name="android:lineHeight">32sp</item> |
| <item name="android:gravity">center</item> |
| <item name="android:textAlignment">center</item> |
| </style> |
| </resources> |