overlay: SettingsTheme: make switch in light equal to dark
why is on track color accent1? this prevents using same accent color
in light and dark. So use accent2 as in dark
Change-Id: Ied8d54d12a2be6ae5841a37ebb480890904d8fff
diff --git a/overlay/common/frameworks/base/packages/SettingsLib/SettingsTheme/res/color-v31/settingslib_switch_track_on.xml b/overlay/common/frameworks/base/packages/SettingsLib/SettingsTheme/res/color-v31/settingslib_switch_track_on.xml
new file mode 100644
index 0000000..81ddf29
--- /dev/null
+++ b/overlay/common/frameworks/base/packages/SettingsLib/SettingsTheme/res/color-v31/settingslib_switch_track_on.xml
@@ -0,0 +1,20 @@
+<?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.
+ -->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:color="@android:color/system_accent2_500" android:lStar="51" />
+</selector>
\ No newline at end of file
diff --git a/overlay/common/frameworks/base/packages/SettingsLib/SettingsTheme/res/values-v31/colors.xml b/overlay/common/frameworks/base/packages/SettingsLib/SettingsTheme/res/values-v31/colors.xml
new file mode 100644
index 0000000..4bcf1d3
--- /dev/null
+++ b/overlay/common/frameworks/base/packages/SettingsLib/SettingsTheme/res/values-v31/colors.xml
@@ -0,0 +1,5 @@
+<resources>
+
+ <color name="settingslib_track_on_color">@color/settingslib_switch_track_on</color>
+
+</resources>