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

Commit e404f76e authored by Bill Lin's avatar Bill Lin
Browse files

Refactor color definition for customization

  1) Fix Ripple effect disappear
  2) Remove unused colors

Fix: 117138747
Test: atest DocumentsUITests
      manual test to check all visual

Change-Id: I047ab53063c03bbd30d7df42959e0d6535904d6a
parent e67f7d2a
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2017 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.
  -->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <corners android:radius="2dp" />
    <solid android:color="@color/primary" />
</shape>
 No newline at end of file
+8 −0
Original line number Diff line number Diff line
@@ -32,4 +32,12 @@
                android:drawable="@android:color/transparent"/>
        </selector>
    </item>

    <item>
        <selector>
            <item
                android:state_activated="true"
                android:drawable="@drawable/root_list_selector"/>
        </selector>
    </item>
</ripple>
 No newline at end of file
+11 −8
Original line number Diff line number Diff line
@@ -14,12 +14,15 @@
     limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <corners
        android:topLeftRadius="0dp"
        android:topRightRadius="0dp"
        android:bottomLeftRadius="0dp"
        android:bottomRightRadius="0dp"/>

  <item
    android:state_focused="true"
    android:state_pressed="false">
      <color android:color="@color/root_focus_color" />
  </item>

</selector>
 No newline at end of file
    <solid
        android:color="?android:attr/colorControlHighlight"/>
</shape>
 No newline at end of file
+0 −2
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@

<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <style name="ActionBarTheme" parent="@android:style/ThemeOverlay.Material.Dark.ActionBar">
        <item name="android:colorPrimaryDark">@color/g_light_grey</item>
        <item name="android:colorPrimary">@color/g_dark_grey</item>
        <item name="android:colorControlNormal">@color/g_light_grey</item>
        <item name="android:textColorHighlight">@color/text_highlight_dark</item>
        <item name="android:textColorPrimary">@color/g_light_grey</item>
+0 −1
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@
        <item name="android:statusBarColor">?android:attr/colorPrimary</item>
        <item name="android:navigationBarColor">?android:attr/colorPrimary</item>

        <item name="colorControlHighlight">@color/g_grey</item>
        <item name="materialCardViewStyle">@style/CardViewStyle</item>

        <item name="textHandleColor">@color/text_handle_dark</item>
Loading