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

Commit bcda3c2a authored by Amit Kumar's avatar Amit Kumar Committed by Nihar Thakkar
Browse files

Define switch color in colors_material.xml

Change-Id: I56853b5829cfa1ba471d298c918a240efcf0438e


(cherry picked from commit a47a4f3d)
parent 2eb3b568
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -16,9 +16,9 @@

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_enabled="false"
          android:color="#C8CED0"
          android:alpha="0.75" />
          android:color="@color/e_switch_disable"
          android:alpha="?attr/disabledAlpha" />
    <item android:state_checked="true"
          android:color="#ff38D874" />
    <item android:color="#C8CED0" />
          android:color="@color/e_switch_enable" />
    <item android:color="@color/e_switch_disable" />
</selector>
+6 −0
Original line number Diff line number Diff line
@@ -52,6 +52,12 @@
    <color name="switch_thumb_disabled_material_dark">#ff616161</color>
    <color name="switch_thumb_disabled_material_light">#ffbdbdbd</color>

    <!-- Switch track color specific to /e/ -->
    <eat-comment/>

    <color name="e_switch_enable">#ff38D874</color>
    <color name="e_switch_disable">#ffC8CED0</color>

    <!-- Text & foreground colors -->
    <eat-comment />