Commit 23ab8c80 authored by 0xd9a's avatar 0xd9a
Browse files

Material 3 style switches in settings

parent 7876f643
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.materialswitch.MaterialSwitch xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/switchWidget"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />
+1 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@
        <item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">false</item>
        <item name="android:isLightTheme" tools:targetApi="q">false</item>
        <item name="alertDialogTheme">@style/AppThemeAlertDialog</item>
        <item name="preferenceTheme">@style/AppPreferenceThemeOverlay</item>
    </style>


+8 −0
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@
        <item name="android:isLightTheme" tools:targetApi="q">true</item>
        <item name="android:statusBarColor">?android:colorBackground</item>
        <item name="alertDialogTheme">@style/AppThemeAlertDialog</item>
        <item name="preferenceTheme">@style/AppPreferenceThemeOverlay</item>
    </style>

    <style name="Transparent" parent="AppThemeBar">
@@ -277,4 +278,11 @@
        <item name="cornerSize">6dp</item>
    </style>

    <style name="AppPreferenceThemeOverlay" parent="PreferenceThemeOverlay">
        <item name="switchPreferenceCompatStyle">@style/AppSwitchPreferenceCompatStyle</item>
    </style>

    <style name="AppSwitchPreferenceCompatStyle" parent="@style/Preference.SwitchPreferenceCompat.Material">
        <item name="widgetLayout">@layout/preference_switch_material</item>
    </style>
</resources>