1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright (C) 2023 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> 17 18 <!-- REGION TYPOGRAPHY --> 19 <!-- Preference summary large 400/16/24--> 20 <style name="TextAppearance.HealthConnect.SummaryLarge" parent="@style/TextAppearance.PreferenceSummary.SettingsLib"> 21 <item name="android:textFontWeight">400</item> 22 <item name="android:textSize">16sp</item> 23 <item name="android:lineHeight">24sp</item> 24 </style> 25 26 <!-- Preference summary label 500/14/20/0.25--> 27 <style name="TextAppearance.HealthConnect.Label" parent="@style/TextAppearance.PreferenceSummary.SettingsLib"> 28 <item name="android:textFontWeight">500</item> 29 <item name="android:textSize">14sp</item> 30 <item name="android:lineHeight">20sp</item> 31 <item name="android:letterSpacing">0.025</item> 32 </style> 33 34 <!-- Preference summary label 500/14/20--> 35 <style name="TextAppearance.HealthConnect.Label.Compact" parent="@style/TextAppearance.PreferenceSummary.SettingsLib"> 36 <item name="android:textFontWeight">500</item> 37 <item name="android:textSize">14sp</item> 38 <item name="android:lineHeight">20sp</item> 39 </style> 40 41 <!-- Preference title 400/18/24--> 42 <style name="TextAppearance.HealthConnect.Headline6" parent="@style/TextAppearance.PreferenceTitle.SettingsLib"> 43 <item name="android:textFontWeight">400</item> 44 <item name="android:textSize">18sp</item> 45 <item name="android:lineHeight">24sp</item> 46 </style> 47 48 <!-- Preference title headline 4 400/24/32--> 49 <style name="TextAppearance.HealthConnect.Headline4" parent="@style/TextAppearance.PreferenceTitle.SettingsLib"> 50 <item name="android:textFontWeight">400</item> 51 <item name="android:textSize">24sp</item> 52 <item name="android:lineHeight">32sp</item> 53 </style> 54 55 <!-- Preference title headline 3 400/28/36--> 56 <style name="TextAppearance.HealthConnect.Headline3" parent="@style/TextAppearance.PreferenceTitle.SettingsLib"> 57 <item name="android:textFontWeight">400</item> 58 <item name="android:textSize">28sp</item> 59 <item name="android:lineHeight">36sp</item> 60 </style> 61 62 <!-- Preference title headline 2 400/32/40--> 63 <style name="TextAppearance.HealthConnect.Headline2" parent="@style/TextAppearance.PreferenceTitle.SettingsLib"> 64 <item name="android:textFontWeight">400</item> 65 <item name="android:textSize">32sp</item> 66 <item name="android:lineHeight">40sp</item> 67 </style> 68 69 <!-- Preference title label small 500/12/15.02--> 70 <style name="TextAppearance.HealthConnect.Label.Small" parent="@style/TextAppearance.PreferenceTitle.SettingsLib"> 71 <item name="android:textFontWeight">500</item> 72 <item name="android:textSize">12sp</item> 73 <item name="android:lineHeight">15sp</item> 74 </style> 75 76 <!-- Preference title subheader 500/16/24/0.1--> 77 <style name="TextAppearance.HealthConnect.Subheader" parent="@style/TextAppearance.PreferenceTitle.SettingsLib"> 78 <item name="android:textFontWeight">500</item> 79 <item name="android:textSize">16sp</item> 80 <item name="android:lineHeight">24sp</item> 81 <item name="android:letterSpacing">0.01</item> 82 </style> 83 84 <style name="TextAppearance.HealthConnect.Subheader2" parent="@style/TextAppearance.PreferenceTitle.SettingsLib"> 85 <item name="android:textFontWeight">500</item> 86 <item name="android:textSize">14sp</item> 87 <item name="android:lineHeight">20sp</item> 88 <item name="android:letterSpacing">0.025</item> 89 </style> 90 91 <style name="TextAppearance.HealthConnect.Subheader3" parent="@style/TextAppearance.PreferenceTitle.SettingsLib"> 92 <item name="android:textFontWeight">400</item> 93 <item name="android:textSize">14sp</item> 94 <item name="android:lineHeight">24sp</item> 95 <item name="android:letterSpacing">0.02</item> 96 </style> 97 98 <style name="TextAppearance.HealthConnect.RouteRequest" parent="@style/TextAppearance.PreferenceTitle.SettingsLib"> 99 <item name="android:textFontWeight">500</item> 100 <item name="android:textSize">12sp</item> 101 <item name="android:lineHeight">15sp</item> 102 </style> 103 104 <style name="TextAppearance.HealthConnect.CategoryTitle" parent="@style/TextAppearance.CategoryTitle.SettingsLib"> 105 <item name="android:textFontWeight">500</item> 106 <item name="android:textSize">14sp</item> 107 <item name="android:lineHeight">20sp</item> 108 </style> 109 110 111 <style name="TextAppearance.HealthConnect.ErrorMessage" parent="@style/TextAppearance.CategoryTitle.SettingsLib"> 112 <item name="android:textFontWeight">500</item> 113 <item name="android:textSize">16sp</item> 114 <item name="android:lineHeight">16sp</item> 115 <item name="android:textColor">@android:color/holo_red_dark</item> 116 </style> 117 <!-- END REGION --> 118 119 <!-- REGION BUTTONS --> 120 <style name="Widget.HealthConnect.DialogButton.Full" parent="@style/Widget.AppCompat.Button"> 121 <item name="android:background">@drawable/button_background_filled</item> 122 <item name="android:textColor">?android:attr/textColorPrimaryInverse</item> 123 <item name="android:layout_height">wrap_content</item> 124 <item name="android:paddingVertical">@dimen/spacing_small</item> 125 <item name="android:paddingHorizontal">@dimen/spacing_normal</item> 126 <item name="android:minHeight">0dp</item> 127 <item name="android:minWidth">0dp</item> 128 <item name="android:stateListAnimator">@null</item> 129 <item name="textAllCaps">false</item> 130 <item name="android:textAppearance">?attr/textAppearanceLabel</item> 131 </style> 132 133 <style name="Widget.HealthConnect.DialogButton.Outline" parent="@style/Widget.AppCompat.Button"> 134 <item name="android:background">@drawable/button_background_outlined</item> 135 <item name="android:textColor">?android:attr/textColorPrimary</item> 136 <item name="android:stateListAnimator">@null</item> 137 <item name="android:layout_marginEnd">@dimen/spacing_small</item> 138 <item name="android:layout_height">wrap_content</item> 139 <item name="android:paddingVertical">@dimen/spacing_small</item> 140 <item name="android:paddingHorizontal">@dimen/spacing_normal</item> 141 <item name="android:minHeight">0dp</item> 142 <item name="android:minWidth">0dp</item> 143 <item name="textAllCaps">false</item> 144 <item name="android:textAppearance">?attr/textAppearanceLabel</item> 145 </style> 146 147 <style name="Widget.HealthConnect.Button" parent="@style/Widget.AppCompat.Button"> 148 <item name="android:background">@drawable/button_background_filled</item> 149 <item name="android:textColor">?android:attr/textColorPrimaryInverse</item> 150 <item name="android:textAppearance">?attr/textAppearanceLabel</item> 151 <item name="textAllCaps">false</item> 152 <item name="android:stateListAnimator">@null</item> 153 </style> 154 155 <style name="Widget.HealthConnect.Button.Borderless" parent="@style/Widget.AppCompat.Button.Borderless"> 156 <item name="textAllCaps">false</item> 157 <item name="android:textAppearance">?attr/textAppearanceLabel</item> 158 <item name="android:textColor">?android:attr/colorAccent</item> 159 <item name="android:background">@drawable/borderless_button_ripple</item> 160 </style> 161 162 <style name="PermissionGrantButtonListMaterial3"> 163 <item name="android:layout_width">match_parent</item> 164 <item name="android:layout_height">wrap_content</item> 165 <item name="android:orientation">vertical</item> 166 <item name="android:gravity">center</item> 167 </style> 168 169 <style name="PermissionGrantButtonTop" 170 parent="@android:style/Widget.DeviceDefault.Button.Borderless.Colored"> 171 <item name="android:layout_width">match_parent</item> 172 <item name="android:layout_height">56dp</item> 173 <item name="android:layout_marginTop">2dp</item> 174 <item name="android:layout_marginBottom">2dp</item> 175 <item name="android:background">@drawable/grant_permissions_buttons_top</item> 176 <item name="android:textColor">@android:color/system_neutral1_900</item> 177 <item name="android:textAppearance">?attr/textAppearanceLabel</item> 178 </style> 179 180 <style name="PermissionGrantButtonMid" 181 parent="@android:style/Widget.DeviceDefault.Button.Borderless.Colored"> 182 <item name="android:layout_width">match_parent</item> 183 <item name="android:layout_height">56dp</item> 184 <item name="android:layout_marginTop">2dp</item> 185 <item name="android:layout_marginBottom">2dp</item> 186 <item name="android:background">@drawable/grant_permissions_buttons_mid</item> 187 <item name="android:textColor">@android:color/system_neutral1_900</item> 188 <item name="android:textAppearance">?attr/textAppearanceLabel</item> 189 </style> 190 191 <style name="PermissionGrantButtonBottom" 192 parent="@android:style/Widget.DeviceDefault.Button.Borderless.Colored"> 193 <item name="android:layout_width">match_parent</item> 194 <item name="android:layout_height">56dp</item> 195 <item name="android:layout_marginTop">2dp</item> 196 <item name="android:layout_marginBottom">2dp</item> 197 <item name="android:textAppearance">?attr/textAppearanceLabel</item> 198 <item name="android:textColor">@android:color/system_neutral1_900</item> 199 <item name="android:background">@drawable/grant_permissions_buttons_bottom</item> 200 </style> 201 202 <!-- END REGION --> 203 204 <!-- REGION EDITTEXT --> 205 <style name="Widget.HealthConnect.EditText.Password" parent="Widget.AppCompat.EditText"> 206 <item name="android:maxHeight">56dp</item> 207 <item name="android:paddingVertical">@dimen/spacing_large</item> 208 <item name="android:paddingHorizontal">0dp</item> 209 <item name="android:layout_marginHorizontal">0dp</item> 210 <item name="android:singleLine">true</item> 211 <item name="android:gravity">center_vertical</item> 212 <item name="android:layout_gravity">center_vertical</item> 213 <item name="android:textAppearance">?android:textAppearanceMedium</item> 214 </style> 215 <!-- END REGION --> 216 217 <!-- REGION DIALOG --> 218 <style name="Theme.HealthConnect.Dialog.Alert" parent="@style/Theme.AlertDialog.SettingsLib"> 219 <item name="textAllCaps">false</item> 220 <item name="buttonBarPositiveButtonStyle">@style/Widget.HealthConnect.DialogButton.Full 221 </item> 222 <item name="buttonBarNegativeButtonStyle">@style/Widget.HealthConnect.DialogButton.Outline 223 </item> 224 <item name="buttonBarStyle">@style/Widget.HealthConnect.Dialog.ButtonBar</item> 225 </style> 226 227 <style name="Widget.HealthConnect.Dialog.ButtonBar" parent="@style/Widget.AppCompat.ButtonBar.AlertDialog"> 228 <item name="android:paddingLeft">@dimen/spacing_large</item> 229 <item name="android:paddingRight">@dimen/spacing_large</item> 230 <item name="android:paddingBottom">@dimen/spacing_large</item> 231 <item name="android:clipToPadding">false</item> 232 <!-- TODO (b/274319654): Do not set minHeight manually --> 233 <item name="android:minHeight">@dimen/spacing_page_title</item> 234 </style> 235 <!-- END REGION --> 236 237 <style name="Widget.HealthConnect.CheckBox" parent="@style/Widget.AppCompat.CompoundButton.CheckBox"> 238 <item name="android:textAppearance">?attr/textAppearanceSummary</item> 239 <item name="android:textColor">?android:textColorPrimary</item> 240 <item name="android:paddingStart">@dimen/spacing_normal</item> 241 <item name="android:minHeight">?android:attr/listPreferredItemHeight</item> 242 <item name="android:button">@drawable/checkbox_button</item> 243 </style> 244 245 <style name="Widget.HealthConnect.CalendarSpinner" parent="android:style/Widget.Material.Spinner"> 246 <item name="android:background">@drawable/settingslib_spinner_background</item> 247 <item name="android:popupBackground">@drawable/settingslib_spinner_dropdown_background 248 </item> 249 <item name="android:paddingStart">@dimen/spacing_normal</item> 250 <item name="android:paddingEnd">@dimen/spacing_xlarge</item> 251 <item name="android:textColor">@color/settingslib_spinner_title_color</item> 252 <item name="android:textAppearance">?attr/textAppearanceLabel</item> 253 </style> 254 255 <style name="Widget.HealthConnect.RadioButton.Chip" parent="@style/Widget.AppCompat.CompoundButton.RadioButton"> 256 <item name="android:background">@drawable/filter_chip_background</item> 257 <item name="android:minHeight">@dimen/spacing_xlarge</item> 258 <item name="android:paddingVertical">@dimen/spacing_xsmall</item> 259 <item name="android:scrollbars">none</item> 260 <item name="android:paddingStart">@dimen/spacing_small</item> 261 <item name="android:paddingEnd">@dimen/spacing_normal</item> 262 <item name="android:textAppearance">?attr/textAppearanceLabel</item> 263 <item name="android:maxLines">1</item> 264 <item name="android:textColor">@color/filter_chip_selected_text_color</item> 265 <item name="android:layout_marginStart">@dimen/spacing_small</item> 266 <item name="android:foreground">@drawable/filter_chip_button_ripple</item> 267 </style> 268 269 <style name="Widget.HealthConnect.TabLayout" parent="@style/Widget.Material3.TabLayout"> 270 <item name="android:background">@android:color/transparent</item> 271 <item name="tabMaxWidth">0dp</item> 272 <item name="tabGravity">fill</item> 273 <item name="tabMode">fixed</item> 274 <item name="tabIndicatorHeight">0dp</item> 275 <item name="tabSelectedTextColor">?android:attr/textColorPrimary</item> 276 <item name="tabTextColor">?android:attr/textColorSecondary</item> 277 <item name="tabBackground">@drawable/tab_background</item> 278 <item name="tabTextAppearance">?attr/textAppearanceSubheader</item> 279 </style> 280</resources> 281