Files
APKDownloader/app/src/main/res/layout/preference_material_switch.xml
Aayush Gupta e92c26dd56 SwitchPreference: Better thumb tint on dark themes
Track color is taken from accent color which causes thumb tint to
look poor on dark themes. Simply use white on both themes.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2023-09-04 19:11:45 +05:30

12 lines
625 B
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Derived from https://github.com/androidx/androidx/blob/8cb282cc/preference/preference/res/layout/preference_widget_switch_compat.xml -->
<com.google.android.material.materialswitch.MaterialSwitch xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/switchWidget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null"
android:clickable="false"
android:focusable="false"
app:thumbTint="@color/preference_material_switch_color" />