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

Commit bef1e2d3 authored by Todd Lee's avatar Todd Lee Committed by Erik Wolsheimer
Browse files

Update device default colors for darker UI

- implement darker UI for improved glanceability
  (while still supporting OEM customization that would provide
   for more color depth/separation)
- fix watch-only resources for associated controls

Bugs: b/69522808
      b/64356423

Change-Id: Ic8475f310f31587087266b2367564811f19b99e4
(cherry picked from commit 97547d905bd40e10f6a5383e99c6821d71a8a91d)
(cherry picked from commit 684a6d328fc5b14cdcf1072cc585b8af1cfcae3e)
parent c110d259
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,9 +13,10 @@
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>

  <!-- referenced in colors/watch_btn_default.xml selector -->
  <color name="button_material_dark">#ff919699</color>

</resources>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_enabled="false"
          android:alpha="?attr/disabledAlpha"
          android:color="?attr/colorPrimaryDark"/>
    <item android:color="?attr/colorPrimaryDark"/>
</selector>
+2 −2
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@
     limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:color="?attr/colorButtonNormal" android:alpha="?attr/disabledAlpha"
    <item android:color="?attr/colorPrimary" android:alpha="?attr/disabledAlpha"
            android:state_enabled="false" />
    <item android:color="?attr/colorControlActivated" android:state_checked="true" />
    <item android:color="?attr/colorButtonNormal" />
    <item android:color="?attr/colorPrimary" />
</selector>
+3 −3
Original line number Diff line number Diff line
@@ -17,6 +17,6 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_enabled="false"
          android:alpha="?attr/disabledAlpha"
          android:color="?android:colorPrimary" />
    <item android:color="?android:colorPrimary" />
          android:color="?android:colorPrimaryDark" />
    <item android:color="?android:colorPrimaryDark" />
</selector>
+3 −3
Original line number Diff line number Diff line
@@ -21,11 +21,11 @@
    android:layout_height="40dp"
    android:switchMinWidth="40dp"
    android:layout_gravity="center"
    android:thumb="@drawable/watch_switch_thumb_material_anim"
    android:thumbTint="@color/watch_switch_thumb_color_material"
    android:thumb="@drawable/switch_thumb_watch_default_dark_anim"
    android:thumbTint="@color/switch_thumb_watch_default_dark"
    android:thumbTintMode="multiply"
    android:track="@drawable/watch_switch_track_mtrl"
    android:trackTint="@color/watch_switch_track_color_material"
    android:trackTint="@color/switch_track_watch_default_dark"
    android:focusable="false"
    android:clickable="false"
    android:background="@null" />
Loading