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

Commit ba346f9d authored by Alan Viverette's avatar Alan Viverette
Browse files

Unify touch feedback drawable and reveal drawable

BUG: 13030730
Change-Id: I65a50a00bd76b80bb242b1573b89e443e2e143fe
parent 724cc1f0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -825,6 +825,7 @@ package android {
    field public static final int persistent = 16842765; // 0x101000d
    field public static final int persistentDrawingCache = 16842990; // 0x10100ee
    field public static final deprecated int phoneNumber = 16843111; // 0x1010167
    field public static final int pinned = 16843776; // 0x1010400
    field public static final int pivotX = 16843189; // 0x10101b5
    field public static final int pivotY = 16843190; // 0x10101b6
    field public static final int popupAnimationStyle = 16843465; // 0x10102c9
@@ -2196,6 +2197,8 @@ package android {
    field public static final int Widget_Quantum_Button_Borderless = 16974393; // 0x1030239
    field public static final int Widget_Quantum_Button_Borderless_Small = 16974394; // 0x103023a
    field public static final int Widget_Quantum_Button_Inset = 16974395; // 0x103023b
    field public static final int Widget_Quantum_Button_Paper = 16974503; // 0x10302a7
    field public static final int Widget_Quantum_Button_Paper_Color = 16974504; // 0x10302a8
    field public static final int Widget_Quantum_Button_Small = 16974396; // 0x103023c
    field public static final int Widget_Quantum_Button_Toggle = 16974397; // 0x103023d
    field public static final int Widget_Quantum_CalendarView = 16974398; // 0x103023e
@@ -2232,6 +2235,8 @@ package android {
    field public static final int Widget_Quantum_Light_Button = 16974452; // 0x1030274
    field public static final int Widget_Quantum_Light_Button_Borderless_Small = 16974453; // 0x1030275
    field public static final int Widget_Quantum_Light_Button_Inset = 16974454; // 0x1030276
    field public static final int Widget_Quantum_Light_Button_Paper = 16974505; // 0x10302a9
    field public static final int Widget_Quantum_Light_Button_Paper_Color = 16974506; // 0x10302aa
    field public static final int Widget_Quantum_Light_Button_Small = 16974455; // 0x1030277
    field public static final int Widget_Quantum_Light_Button_Toggle = 16974456; // 0x1030278
    field public static final int Widget_Quantum_Light_CalendarView = 16974457; // 0x1030279
+3 −7
Original line number Diff line number Diff line
@@ -14,10 +14,6 @@
     limitations under the License.
-->

<reveal xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@color/transparent" />
    <item>
        <nine-patch android:src="@drawable/btn_qntm_alpha"
            android:tint="@color/btn_default_pressed_quantum_dark" />
    </item>
</reveal>
<touch-feedback xmlns:android="http://schemas.android.com/apk/res/android"
    android:tint="@color/btn_default_pressed_quantum_dark"
    android:mask="@drawable/btn_qntm_alpha" />
+3 −7
Original line number Diff line number Diff line
@@ -14,10 +14,6 @@
     limitations under the License.
-->

<reveal xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@color/transparent" />
    <item>
        <nine-patch android:src="@drawable/btn_qntm_alpha"
            android:tint="@color/btn_default_pressed_quantum_light" />
    </item>
</reveal>
<touch-feedback xmlns:android="http://schemas.android.com/apk/res/android"
    android:tint="@color/btn_default_pressed_quantum_light"
    android:mask="@drawable/btn_qntm_alpha" />
+13 −18
Original line number Diff line number Diff line
@@ -14,21 +14,16 @@
     limitations under the License.
-->

<reveal xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
<touch-feedback xmlns:android="http://schemas.android.com/apk/res/android"
    android:tint="@color/theme_color_300">
    <selector>
        <item android:state_enabled="false">
            <nine-patch android:src="@drawable/btn_qntm_alpha"
                    android:tint="@color/btn_default_normal_quantum_light" />
                android:tint="@color/btn_default_normal_quantum_dark" />
        </item>
        <item>
            <nine-patch android:src="@drawable/btn_qntm_alpha"
                android:tint="@color/theme_color_500" />
        </item>
    </selector>
    </item>
    <item>
        <nine-patch android:src="@drawable/btn_qntm_alpha"
            android:tint="@color/theme_color_300" />
    </item>
</reveal>
</touch-feedback>
+13 −18
Original line number Diff line number Diff line
@@ -14,8 +14,8 @@
     limitations under the License.
-->

<reveal xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
<touch-feedback xmlns:android="http://schemas.android.com/apk/res/android"
    android:tint="@color/theme_color_700">
    <selector>
        <item android:state_enabled="false">
            <nine-patch android:src="@drawable/btn_qntm_alpha"
@@ -26,9 +26,4 @@
                android:tint="@color/theme_color_500" />
        </item>
    </selector>
    </item>
    <item>
        <nine-patch android:src="@drawable/btn_qntm_alpha"
            android:tint="@color/theme_color_700" />
    </item>
</reveal>
</touch-feedback>
Loading