useCustomPrefsStyle true

This commit is contained in:
gdlbo
2023-03-18 11:37:43 +03:00
parent 125c2d3d69
commit bc5a401e0e
2 changed files with 3 additions and 3 deletions
@@ -37,7 +37,7 @@ public class SwitchHook {
public static void setSwitchCompatColors(SwitchCompat switchCompat, Context ctx) {
if (Preferences.getBoolValue("useCustomPrefsStyle", false)) {
if (Preferences.getBoolValue("useCustomPrefsStyle", true)) {
switchCompat.setThumbDrawable(setTintList(getCustomThumb(), new ColorStateList(createColorStateList(), getSwitchColors(ctx))));
switchCompat.setTrackDrawable(setTintList(getCustomTrack(), new ColorStateList(createColorStateList(), getTrackColors())));
} else {
@@ -47,7 +47,7 @@ public class SwitchHook {
}
public static void setSwitchColors(Switch drawableCompat, Context ctx) {
if (Preferences.getBoolValue("useCustomPrefsStyle", false)) {
if (Preferences.getBoolValue("useCustomPrefsStyle", true)) {
drawableCompat.setThumbDrawable(setTintList(getCustomThumb(), new ColorStateList(createColorStateList(), getSwitchColors(ctx))));
drawableCompat.setTrackDrawable(setTintList(getCustomTrack(), new ColorStateList(createColorStateList(), getTrackColors())));
} else {
+1 -1
View File
@@ -39,7 +39,7 @@
android:key="useNewSettings"
android:title="@string/useNewSettings_title"/>
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="false"
android:defaultValue="true"
android:key="useCustomPrefsStyle"
android:title="useCustomPrefsStyle"/>
<com.vtosters.lite.ui.MaterialSwitchPreference