Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e395b98 authored by Edgar Wang's avatar Edgar Wang Committed by Android (Google) Code Review
Browse files

Merge "Update Switch color to improve accessibility" into sc-dev

parents b65f6796 f8aa2537
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
<?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
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- Disabled status of thumb -->
    <item android:state_enabled="false"
          android:color="@color/settingslib_thumb_off_color" />
          android:color="@color/settingslib_thumb_disabled_color" />
    <!-- Toggle off status of thumb -->
    <item android:state_checked="false"
          android:color="@color/settingslib_thumb_off_color" />
+19 −0
Original line number Diff line number Diff line
<?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_neutral2_500" android:lStar="45" />
</selector>
 No newline at end of file
+5 −2
Original line number Diff line number Diff line
@@ -16,11 +16,14 @@
  -->

<resources>
    <!-- Material next thumb disable color-->
    <color name="settingslib_thumb_disabled_color">@android:color/system_neutral1_700</color>

    <!-- Material next thumb off color-->
    <color name="settingslib_thumb_off_color">@android:color/system_neutral2_300</color>
    <color name="settingslib_thumb_off_color">@android:color/system_neutral1_400</color>

    <!-- Material next track on color-->
    <color name="settingslib_track_on_color">@android:color/system_accent2_700</color>
    <color name="settingslib_track_on_color">@color/settingslib_switch_track_on</color>

    <!-- Material next track off color-->
    <color name="settingslib_track_off_color">@android:color/system_neutral1_700</color>
+5 −2
Original line number Diff line number Diff line
@@ -22,14 +22,17 @@
    <!-- Material next state off color-->
    <color name="settingslib_state_off_color">@android:color/system_accent2_100</color>

    <!-- Material next thumb disable color-->
    <color name="settingslib_thumb_disabled_color">@android:color/system_neutral2_100</color>

    <!-- Material next thumb off color-->
    <color name="settingslib_thumb_off_color">@android:color/system_neutral2_100</color>
    <color name="settingslib_thumb_off_color">@android:color/system_neutral2_300</color>

    <!-- Material next track on color-->
    <color name="settingslib_track_on_color">@android:color/system_accent1_600</color>

    <!-- Material next track off color-->
    <color name="settingslib_track_off_color">@android:color/system_neutral2_600</color>
    <color name="settingslib_track_off_color">@color/settingslib_switch_track_off</color>

    <!-- Dialog accent color -->
    <color name="settingslib_dialog_accent">@android:color/system_accent1_600</color>