Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2018 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 | <resources> |
Santiago Etchebehere | 3e09611 | 2019-05-28 14:38:21 -0700 | [diff] [blame] | 18 | |
| 19 | <!-- Main themes --> |
Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 20 | <style name="CustomizationTheme" parent="@android:style/Theme.DeviceDefault.Settings"> |
| 21 | <item name="colorPrimary">?android:colorPrimary</item> |
| 22 | |
Santiago Etchebehere | 631bfe3 | 2019-02-06 18:12:01 -0800 | [diff] [blame] | 23 | <item name="android:navigationBarColor">?android:colorPrimaryDark</item> |
Santiago Etchebehere | f0e2dad | 2019-05-03 18:29:59 -0700 | [diff] [blame] | 24 | <item name="android:navigationBarDividerColor">@android:color/transparent</item> |
Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 25 | |
| 26 | <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> |
Santiago Etchebehere | 418a40e | 2019-03-25 14:28:37 -0700 | [diff] [blame] | 27 | <item name="dialogPreferredPadding">24dp</item> |
| 28 | <item name="colorControlHighlight">@color/ripple_material_dark</item> |
Santiago Etchebehere | 9474b9c | 2019-04-17 17:54:11 -0300 | [diff] [blame] | 29 | |
| 30 | <item name="actionButtonStyle">?android:actionButtonStyle</item> |
| 31 | <item name="actionMenuTextColor">?android:actionMenuTextColor</item> |
Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 32 | </style> |
Santiago Etchebehere | 3e09611 | 2019-05-28 14:38:21 -0700 | [diff] [blame] | 33 | |
Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 34 | <style name="CustomizationTheme.NoActionBar"> |
Kunhung Li | 202f407 | 2021-04-26 20:07:03 +0800 | [diff] [blame] | 35 | <item name="android:statusBarColor">@android:color/transparent</item> |
Chihhang Chuang | fb54684 | 2021-04-15 09:42:00 +0800 | [diff] [blame] | 36 | <item name="android:navigationBarColor">@android:color/transparent</item> |
Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 37 | <item name="android:windowActionBar">false</item> |
| 38 | <item name="android:windowNoTitle">true</item> |
Santiago Etchebehere | b5fed02 | 2019-02-21 16:59:23 -0800 | [diff] [blame] | 39 | <item name="android:fitsSystemWindows">false</item> |
| 40 | <item name="android:windowDrawsSystemBarBackgrounds">true</item> |
Santiago Etchebehere | 8e8b474 | 2020-03-11 19:51:52 -0700 | [diff] [blame] | 41 | |
Santiago Etchebehere | 8e8b474 | 2020-03-11 19:51:52 -0700 | [diff] [blame] | 42 | <item name="android:windowContentOverlay">@null</item> |
| 43 | <item name="android:windowDisablePreview">true</item> |
zonghuayang | d58f05f | 2021-12-20 12:42:01 +0800 | [diff] [blame] | 44 | <item name="snackbarStyle">@style/SnackbarMargin</item> |
| 45 | |
| 46 | <item name="borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item> |
| 47 | <item name="colorAccent">@color/accent_color</item> |
| 48 | <item name="colorSurface">@color/design_default_color_surface</item> |
| 49 | <item name="colorOnSurface">@color/design_default_color_on_surface</item> |
abdullahirum | 3e973ea | 2023-04-07 22:42:12 +0000 | [diff] [blame] | 50 | <item name="android:textAllCaps">false</item> |
Johannes Gallmann | 6d1bafd | 2023-06-26 16:19:34 +0200 | [diff] [blame] | 51 | <item name="motionDurationLong1">500</item> |
zonghuayang | d58f05f | 2021-12-20 12:42:01 +0800 | [diff] [blame] | 52 | </style> |
| 53 | |
| 54 | <!-- Snackbar margin --> |
| 55 | <style name="SnackbarMargin" parent="Widget.MaterialComponents.Snackbar"> |
| 56 | <item name="android:layout_margin">48dp</item> |
Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 57 | </style> |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 58 | |
Santiago Etchebehere | 3e09611 | 2019-05-28 14:38:21 -0700 | [diff] [blame] | 59 | <!-- Bottom nav --> |
Santiago Etchebehere | f18580d | 2019-01-10 10:24:42 -0800 | [diff] [blame] | 60 | <style name="BottomNavStyle"> |
Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 61 | <item name="itemIconTint">@color/bottom_nav_item_color</item> |
| 62 | <item name="itemTextColor">@color/bottom_nav_item_color</item> |
Santiago Etchebehere | 6507b7a | 2019-06-24 15:05:32 -0700 | [diff] [blame] | 63 | <item name="itemTextAppearanceActive">@style/BottomNavTextAppearanceActive</item> |
Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 64 | <item name="itemTextAppearanceInactive">@style/BottomNavTextAppearance</item> |
Amin Shaikh | 89eef63 | 2019-04-19 17:32:43 -0400 | [diff] [blame] | 65 | <item name="itemBackground">?android:attr/selectableItemBackgroundBorderless</item> |
Pierre-Louis | c2d2f2a | 2021-04-09 22:33:17 +0200 | [diff] [blame] | 66 | <item name="android:background">?android:colorBackground</item> |
Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 67 | </style> |
| 68 | |
Santiago Etchebehere | 58e1b52 | 2019-12-05 10:25:13 -0800 | [diff] [blame] | 69 | <style name="BottomNavTextAppearance" parent="TitleTextAppearance"> |
Beth Thibodeau | 3e000c4 | 2019-03-11 11:37:41 -0400 | [diff] [blame] | 70 | <item name="android:textSize">@dimen/bottom_navbar_font_text_size</item> |
Santiago Etchebehere | f23466e | 2018-12-10 14:56:55 -0800 | [diff] [blame] | 71 | </style> |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 72 | |
Santiago Etchebehere | 6507b7a | 2019-06-24 15:05:32 -0700 | [diff] [blame] | 73 | <style name="BottomNavTextAppearanceActive" parent="BottomNavTextAppearance"> |
| 74 | <item name="android:textStyle">bold</item> |
| 75 | </style> |
| 76 | |
Santiago Etchebehere | 3e09611 | 2019-05-28 14:38:21 -0700 | [diff] [blame] | 77 | <!-- Common components and widgets --> |
abdullahirum | c6ff6f3 | 2023-09-12 16:03:25 +0000 | [diff] [blame] | 78 | <style name="TitleTextAppearance" parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title"> |
| 79 | <item name="android:textSize">14sp</item> |
| 80 | </style> |
Santiago Etchebehere | 10e79f1 | 2018-12-19 15:53:42 -0800 | [diff] [blame] | 81 | |
| 82 | <style name="ActionPrimaryButton" parent="android:Widget.DeviceDefault.Button.Colored"/> |
Santiago Etchebehere | 273f655 | 2019-01-04 17:33:45 -0800 | [diff] [blame] | 83 | |
Amin Shaikh | 535db3e | 2019-04-19 09:51:41 -0400 | [diff] [blame] | 84 | <style name="ActionSecondaryButton" parent="android:Widget.DeviceDefault.Button.Borderless.Colored"/> |
| 85 | |
Santiago Etchebehere | 58e1b52 | 2019-12-05 10:25:13 -0800 | [diff] [blame] | 86 | <style name="CardTitleTextAppearance" parent="TitleTextAppearance"> |
Santiago Etchebehere | 988f99d | 2018-12-20 17:13:12 -0800 | [diff] [blame] | 87 | <item name="android:textStyle">bold</item> |
| 88 | <item name="android:textSize">@dimen/card_title_text_size</item> |
| 89 | </style> |
| 90 | |
Santiago Etchebehere | 58e1b52 | 2019-12-05 10:25:13 -0800 | [diff] [blame] | 91 | <style name="FontCardTitleStyle" parent="TitleTextAppearance"> |
Santiago Etchebehere | 988f99d | 2018-12-20 17:13:12 -0800 | [diff] [blame] | 92 | <item name="android:textAlignment">center</item> |
Wesley.CW Wang | 8038c10 | 2020-07-23 18:14:37 +0800 | [diff] [blame] | 93 | <item name="android:textSize">28dp</item> |
Santiago Etchebehere | 988f99d | 2018-12-20 17:13:12 -0800 | [diff] [blame] | 94 | </style> |
| 95 | |
| 96 | <style name="FontCardBodyTextStyle"> |
Santiago Etchebehere | 0831fa8 | 2019-04-26 15:53:52 -0700 | [diff] [blame] | 97 | <item name="android:layout_width">wrap_content</item> |
| 98 | <item name="android:maxWidth">@dimen/font_preview_body_width</item> |
Santiago Etchebehere | 988f99d | 2018-12-20 17:13:12 -0800 | [diff] [blame] | 99 | <item name="android:textAlignment">center</item> |
Wesley.CW Wang | 8038c10 | 2020-07-23 18:14:37 +0800 | [diff] [blame] | 100 | <item name="android:textSize">20dp</item> |
Santiago Etchebehere | 988f99d | 2018-12-20 17:13:12 -0800 | [diff] [blame] | 101 | <item name="android:textAppearance">@android:style/TextAppearance.DeviceDefault</item> |
| 102 | </style> |
| 103 | |
Santiago Etchebehere | 3e09611 | 2019-05-28 14:38:21 -0700 | [diff] [blame] | 104 | <!-- Custom theme editor --> |
Santiago Etchebehere | 7ff4c59 | 2019-05-10 10:21:09 -0700 | [diff] [blame] | 105 | |
| 106 | <style name="CustomThemeNameEditText" parent="@android:style/Widget.DeviceDefault.EditText"> |
| 107 | <item name="android:background">@drawable/edittext_background</item> |
| 108 | <item name="android:paddingTop">16dp</item> |
| 109 | <item name="android:paddingBottom">16dp</item> |
| 110 | <item name="android:paddingStart">12dp</item> |
| 111 | <item name="android:paddingEnd">12dp</item> |
Chuck Liao | 031d8dd | 2020-07-07 21:11:34 +0800 | [diff] [blame] | 112 | <item name="android:textAlignment">viewStart</item> |
Santiago Etchebehere | 7ff4c59 | 2019-05-10 10:21:09 -0700 | [diff] [blame] | 113 | <item name="android:textColor">@color/edittext_text_color</item> |
| 114 | <item name="android:inputType">text</item> |
| 115 | <item name="android:maxLength">100</item> |
| 116 | </style> |
Chihhang Chuang | b7dc51d | 2021-05-25 20:57:43 +0800 | [diff] [blame] | 117 | |
Chihhang Chuang | 91a8fe9 | 2021-05-29 16:49:54 +0800 | [diff] [blame] | 118 | <style name="SectionTitleTextStyle"> |
| 119 | <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item> |
Catherine Liang | f089abc | 2023-08-17 18:20:56 +0000 | [diff] [blame] | 120 | <item name="android:textColor">@color/system_on_surface</item> |
Chihhang Chuang | b7dc51d | 2021-05-25 20:57:43 +0800 | [diff] [blame] | 121 | <item name="android:textDirection">locale</item> |
| 122 | <item name="android:textSize">20sp</item> |
Catherine Liang | 6843f6e | 2025-01-14 21:19:54 +0000 | [diff] [blame] | 123 | <item name="android:lineHeight">24sp</item> |
Chihhang Chuang | b7dc51d | 2021-05-25 20:57:43 +0800 | [diff] [blame] | 124 | </style> |
| 125 | |
| 126 | <style name="SectionSubtitleTextStyle" parent="SectionTitleTextStyle"> |
Chihhang Chuang | 91a8fe9 | 2021-05-29 16:49:54 +0800 | [diff] [blame] | 127 | <item name="android:fontFamily">@*android:string/config_bodyFontFamily</item> |
Catherine Liang | f089abc | 2023-08-17 18:20:56 +0000 | [diff] [blame] | 128 | <item name="android:textColor">@color/system_on_surface_variant</item> |
Chihhang Chuang | b7dc51d | 2021-05-25 20:57:43 +0800 | [diff] [blame] | 129 | <item name="android:textSize">14sp</item> |
abdullahirum | 336e11e | 2023-06-06 21:42:43 +0000 | [diff] [blame] | 130 | <item name="android:lineHeight">16sp</item> |
Chihhang Chuang | b7dc51d | 2021-05-25 20:57:43 +0800 | [diff] [blame] | 131 | </style> |
| 132 | |
George Lin | 9331030 | 2024-06-18 19:45:28 +0000 | [diff] [blame] | 133 | <style name="CustomizationOptionEntryTitleTextStyle"> |
| 134 | <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item> |
| 135 | <item name="android:textColor">@color/system_on_surface</item> |
| 136 | <item name="android:textSize">20sp</item> |
| 137 | </style> |
| 138 | |
| 139 | <style name="CustomizationOptionEntrySubtitleTextStyle"> |
| 140 | <item name="android:fontFamily">@*android:string/config_bodyFontFamily</item> |
| 141 | <item name="android:textColor">@color/system_on_surface_variant</item> |
| 142 | <item name="android:textSize">14sp</item> |
| 143 | </style> |
| 144 | |
Chuck Liao | dec7880 | 2021-07-02 15:25:47 +0800 | [diff] [blame] | 145 | <style name="BetaTagTextStyle" parent="SectionTitleTextStyle"> |
| 146 | <item name="android:textSize">12sp</item> |
| 147 | <item name="android:lineHeight">15dp</item> |
| 148 | <item name="android:letterSpacing">0.02</item> |
| 149 | <item name="android:background">@drawable/beta_tag_background</item> |
| 150 | <item name="android:gravity">center</item> |
| 151 | </style> |
| 152 | |
Santiago Etchebehere | 988f99d | 2018-12-20 17:13:12 -0800 | [diff] [blame] | 153 | </resources> |