blob: c8ce13b30a025f81b6f24ca7857cdde890267185 [file] [log] [blame]
Santiago Etchebeheref23466e2018-12-10 14:56:55 -08001<?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 Etchebehere3e096112019-05-28 14:38:21 -070018
19 <!-- Main themes -->
Santiago Etchebeheref23466e2018-12-10 14:56:55 -080020 <style name="CustomizationTheme" parent="@android:style/Theme.DeviceDefault.Settings">
21 <item name="colorPrimary">?android:colorPrimary</item>
22
Santiago Etchebehere631bfe32019-02-06 18:12:01 -080023 <item name="android:navigationBarColor">?android:colorPrimaryDark</item>
Santiago Etchebeheref0e2dad2019-05-03 18:29:59 -070024 <item name="android:navigationBarDividerColor">@android:color/transparent</item>
Santiago Etchebeheref23466e2018-12-10 14:56:55 -080025
26 <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
Santiago Etchebehere418a40e2019-03-25 14:28:37 -070027 <item name="dialogPreferredPadding">24dp</item>
28 <item name="colorControlHighlight">@color/ripple_material_dark</item>
Santiago Etchebehere9474b9c2019-04-17 17:54:11 -030029
30 <item name="actionButtonStyle">?android:actionButtonStyle</item>
31 <item name="actionMenuTextColor">?android:actionMenuTextColor</item>
Santiago Etchebeheref23466e2018-12-10 14:56:55 -080032 </style>
Santiago Etchebehere3e096112019-05-28 14:38:21 -070033
Santiago Etchebeheref23466e2018-12-10 14:56:55 -080034 <style name="CustomizationTheme.NoActionBar">
Chihhang Chuangfb546842021-04-15 09:42:00 +080035 <item name="android:navigationBarColor">@android:color/transparent</item>
Santiago Etchebeheref23466e2018-12-10 14:56:55 -080036 <item name="android:windowActionBar">false</item>
37 <item name="android:windowNoTitle">true</item>
Santiago Etchebehereb5fed022019-02-21 16:59:23 -080038 <item name="android:fitsSystemWindows">false</item>
39 <item name="android:windowDrawsSystemBarBackgrounds">true</item>
Santiago Etchebehere8e8b4742020-03-11 19:51:52 -070040
Santiago Etchebehere8e8b4742020-03-11 19:51:52 -070041 <item name="android:windowContentOverlay">@null</item>
42 <item name="android:windowDisablePreview">true</item>
Santiago Etchebeheref23466e2018-12-10 14:56:55 -080043 </style>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080044
Santiago Etchebehere3e096112019-05-28 14:38:21 -070045 <!-- Bottom nav -->
Santiago Etchebeheref18580d2019-01-10 10:24:42 -080046 <style name="BottomNavStyle">
Santiago Etchebeheref23466e2018-12-10 14:56:55 -080047 <item name="itemIconTint">@color/bottom_nav_item_color</item>
48 <item name="itemTextColor">@color/bottom_nav_item_color</item>
Santiago Etchebehere6507b7a2019-06-24 15:05:32 -070049 <item name="itemTextAppearanceActive">@style/BottomNavTextAppearanceActive</item>
Santiago Etchebeheref23466e2018-12-10 14:56:55 -080050 <item name="itemTextAppearanceInactive">@style/BottomNavTextAppearance</item>
Amin Shaikh89eef632019-04-19 17:32:43 -040051 <item name="itemBackground">?android:attr/selectableItemBackgroundBorderless</item>
Pierre-Louisc2d2f2a2021-04-09 22:33:17 +020052 <item name="android:background">?android:colorBackground</item>
Santiago Etchebeheref23466e2018-12-10 14:56:55 -080053 </style>
54
Santiago Etchebehere58e1b522019-12-05 10:25:13 -080055 <style name="BottomNavTextAppearance" parent="TitleTextAppearance">
Beth Thibodeau3e000c42019-03-11 11:37:41 -040056 <item name="android:textSize">@dimen/bottom_navbar_font_text_size</item>
Santiago Etchebeheref23466e2018-12-10 14:56:55 -080057 </style>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080058
Santiago Etchebehere6507b7a2019-06-24 15:05:32 -070059 <style name="BottomNavTextAppearanceActive" parent="BottomNavTextAppearance">
60 <item name="android:textStyle">bold</item>
61 </style>
62
Santiago Etchebehere3e096112019-05-28 14:38:21 -070063 <!-- Common components and widgets -->
Santiago Etchebehere58e1b522019-12-05 10:25:13 -080064 <style name="TitleTextAppearance" parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title"/>
Santiago Etchebehere10e79f12018-12-19 15:53:42 -080065
66 <style name="ActionPrimaryButton" parent="android:Widget.DeviceDefault.Button.Colored"/>
Santiago Etchebehere273f6552019-01-04 17:33:45 -080067
Amin Shaikh535db3e2019-04-19 09:51:41 -040068 <style name="ActionSecondaryButton" parent="android:Widget.DeviceDefault.Button.Borderless.Colored"/>
69
Santiago Etchebehere58e1b522019-12-05 10:25:13 -080070 <style name="CardTitleTextAppearance" parent="TitleTextAppearance">
Santiago Etchebehere988f99d2018-12-20 17:13:12 -080071 <item name="android:textStyle">bold</item>
72 <item name="android:textSize">@dimen/card_title_text_size</item>
73 </style>
74
Santiago Etchebehere58e1b522019-12-05 10:25:13 -080075 <style name="FontCardTitleStyle" parent="TitleTextAppearance">
Santiago Etchebehere988f99d2018-12-20 17:13:12 -080076 <item name="android:textAlignment">center</item>
Wesley.CW Wang8038c102020-07-23 18:14:37 +080077 <item name="android:textSize">28dp</item>
Santiago Etchebehere988f99d2018-12-20 17:13:12 -080078 </style>
79
80 <style name="FontCardBodyTextStyle">
Santiago Etchebehere0831fa82019-04-26 15:53:52 -070081 <item name="android:layout_width">wrap_content</item>
82 <item name="android:maxWidth">@dimen/font_preview_body_width</item>
Santiago Etchebehere988f99d2018-12-20 17:13:12 -080083 <item name="android:textAlignment">center</item>
Wesley.CW Wang8038c102020-07-23 18:14:37 +080084 <item name="android:textSize">20dp</item>
Santiago Etchebehere988f99d2018-12-20 17:13:12 -080085 <item name="android:textAppearance">@android:style/TextAppearance.DeviceDefault</item>
86 </style>
87
Santiago Etchebehere3e096112019-05-28 14:38:21 -070088 <!-- Custom theme editor -->
Santiago Etchebehere7ff4c592019-05-10 10:21:09 -070089
90 <style name="CustomThemeNameEditText" parent="@android:style/Widget.DeviceDefault.EditText">
91 <item name="android:background">@drawable/edittext_background</item>
92 <item name="android:paddingTop">16dp</item>
93 <item name="android:paddingBottom">16dp</item>
94 <item name="android:paddingStart">12dp</item>
95 <item name="android:paddingEnd">12dp</item>
Chuck Liao031d8dd2020-07-07 21:11:34 +080096 <item name="android:textAlignment">viewStart</item>
Santiago Etchebehere7ff4c592019-05-10 10:21:09 -070097 <item name="android:textColor">@color/edittext_text_color</item>
98 <item name="android:inputType">text</item>
99 <item name="android:maxLength">100</item>
100 </style>
Santiago Etchebehere988f99d2018-12-20 17:13:12 -0800101</resources>