mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
This will update everything in Launcher Home Settings except the At a Glance Dialog. That will be updated in a different CL. Also, the At A glance and Notifications settings landing pages are not owned by HomeSettings. These will be updated when the Settings app updates their fonts to Google Sans Flex, if that has not happened already. Bug: 393616497 Test: Verified via hard-coded colors and more obvious fonts that these updates actually change the correct text views. Flag: com.android.launcher3.gsf_res Change-Id: I74f66760f0fdb486681a2db55df578c9bf50ef47
93 lines
4.7 KiB
XML
93 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
/*
|
|
* Copyright (C) 2021 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 xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<style name="HomeSettings.Theme" parent="@android:style/Theme.DeviceDefault.Settings">
|
|
<item name="android:listPreferredItemPaddingEnd">16dp</item>
|
|
<item name="android:listPreferredItemPaddingStart">24dp</item>
|
|
<item name="android:navigationBarColor">@android:color/transparent</item>
|
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
|
<item name="android:switchStyle">@style/SwitchStyle</item>
|
|
<item name="android:textAppearanceListItem">@style/HomeSettings.PreferenceTitle</item>
|
|
<item name="android:windowActionBar">false</item>
|
|
<item name="android:windowNoTitle">true</item>
|
|
<item name="preferenceTheme">@style/HomeSettings.PreferenceTheme</item>
|
|
<item name="android:fontFamily" android:featureFlag="com.android.launcher3.gsf_res">google-sans-flex</item>
|
|
</style>
|
|
|
|
<style name="HomeSettings.PreferenceTheme" parent="@style/PreferenceThemeOverlay">
|
|
<item name="preferenceCategoryStyle">@style/HomeSettings.CategoryStyle</item>
|
|
<item name="preferenceCategoryTitleTextAppearance">@style/HomeSettings.CategoryTitle</item>
|
|
<item name="preferenceFragmentCompatStyle">@style/HomeSettings.FragmentCompatStyle</item>
|
|
<item name="preferenceScreenStyle">@style/HomeSettings.PreferenceScreenStyle</item>
|
|
<item name="preferenceStyle">@style/HomeSettings.PreferenceStyle</item>
|
|
<item name="switchPreferenceStyle">@style/HomeSettings.SwitchPreferenceStyle</item>
|
|
<item name="android:fontFamily">google-sans-text</item>
|
|
</style>
|
|
|
|
<style name="HomeSettings.CategoryStyle" parent="@style/Preference.Category.Material">
|
|
<item name="allowDividerAbove">@bool/home_settings_allow_divider</item>
|
|
<item name="allowDividerBelow">@bool/home_settings_allow_divider</item>
|
|
<item name="iconSpaceReserved">@bool/home_settings_icon_space_reserved</item>
|
|
</style>
|
|
|
|
<style name="HomeSettings.PreferenceStyle" parent="@style/Preference.Material">
|
|
<item name="iconSpaceReserved">@bool/home_settings_icon_space_reserved</item>
|
|
</style>
|
|
|
|
<style name="HomeSettings.PreferenceScreenStyle"
|
|
parent="@style/Preference.PreferenceScreen.Material">
|
|
<item name="iconSpaceReserved">@bool/home_settings_icon_space_reserved</item>
|
|
</style>
|
|
|
|
<style name="HomeSettings.SwitchPreferenceStyle"
|
|
parent="@style/Preference.SwitchPreference.Material">
|
|
<item name="iconSpaceReserved">@bool/home_settings_icon_space_reserved</item>
|
|
</style>
|
|
|
|
<style name="HomeSettings.PreferenceTitle"
|
|
parent="@android:style/TextAppearance.Material.Subhead">
|
|
<item name="android:fontFamily">google-sans</item>
|
|
<item name="android:textSize">20sp</item>
|
|
</style>
|
|
|
|
<style name="HomeSettings.CategoryTitle" parent="@android:style/TextAppearance.Material.Body2">
|
|
<item name="android:fontFamily">google-sans-text-medium</item>
|
|
</style>
|
|
|
|
<style name="HomeSettings.CollapsingToolbar" parent="@style/Theme.MaterialComponents.DayNight">
|
|
<item name="colorAccent">@color/home_settings_header_accent</item>
|
|
<item name="colorPrimary">@color/home_settings_header_expanded</item>
|
|
<item name="elevationOverlayColor">?attr/colorPrimary</item>
|
|
<item name="elevationOverlayEnabled">true</item>
|
|
</style>
|
|
|
|
<style name="HomeSettings.CollapsedToolbarTitle"
|
|
parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title">
|
|
<item name="android:fontFamily" android:featureFlag="!com.android.launcher3.gsf_res">google-sans</item>
|
|
<item name="android:fontFamily" android:featureFlag="com.android.launcher3.gsf_res">variable-title-large</item>
|
|
<item name="android:textSize">20sp</item>
|
|
</style>
|
|
|
|
<style name="HomeSettings.ExpandedToolbarTitle" parent="HomeSettings.CollapsedToolbarTitle">
|
|
<item name="android:fontFamily" android:featureFlag="com.android.launcher3.gsf_res">variable-display-small</item>
|
|
<item name="android:textSize">36sp</item>
|
|
</style>
|
|
</resources> |