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

Commit c203d939 authored by Andrew Lee's avatar Andrew Lee
Browse files

Add styleable attribute for dialpad ripple touch tints.

- Add an attribute, which can be set in Dialer/InCall.
- Read this attribute in DialpadView, and if defined set this on the
ripple drawable which is applied to the dialpad key button. We aren't
able to instantiate a new instance of RippleDrawable right now, so
this is the slightly roundabout way of accomplishing this. This
drawable is then set as the background of the dialpad key buttons.

Bug: 15168708
Change-Id: I64d6e0957c0167827c6a6124a4855d46feb87452
parent e644bb1c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -15,4 +15,5 @@
-->

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
    android:tint="@color/dialpad_touch_tint" android:pinned="true"/>
 No newline at end of file
    android:tint="?android:attr/colorControlHighlight"
    android:pinned="true"/>
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -78,4 +78,7 @@
        <attr name="favorites_padding_bottom" format="dimension"/>
    </declare-styleable>

    <declare-styleable name="Dialpad">
        <attr name="dialpad_key_button_touch_tint" format="color"/>
    </declare-styleable>
</resources>
+0 −3
Original line number Diff line number Diff line
@@ -93,7 +93,4 @@
    <color name="dialpad_digits_text_color">#bf000000</color>
    <color name="dialpad_separator_line_color">#dadada</color>
    <color name="dialpad_icon_tint">#b3b3b3</color>

    <!-- 35% opacity, black. -->
    <color name="dialpad_touch_tint">#59000000</color>
</resources>