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>
12 lines
625 B
XML
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" />
|