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

Commit 75af9013 authored by Aaron Liu's avatar Aaron Liu
Browse files

Bouncer: Change color of emergency button text

Change color of the text of thee mergency button to 'textColorOnAccent'.

Bug: 223224098
Test: Manual on device
Change-Id: I43e879473cfe75f87a85252c6730fcc0589b1897
parent c6c97b7b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -17,13 +17,14 @@
*/
-->

<resources xmlns:android="http://schemas.android.com/apk/res/android">
<resources xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
    <!-- Keyguard PIN pad styles -->
    <style name="Keyguard.TextView" parent="@android:style/Widget.DeviceDefault.TextView">
        <item name="android:textSize">@dimen/kg_status_line_font_size</item>
    </style>
    <style name="Keyguard.TextView.EmergencyButton" parent="Theme.SystemUI">
        <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
        <item name="android:textColor">?androidprv:attr/textColorOnAccent</item>
        <item name="android:textSize">14dp</item>
        <item name="android:background">@drawable/kg_emergency_button_background</item>
        <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ public class EmergencyButton extends Button {
     **/
    public void reloadColors() {
        int color = Utils.getColorAttrDefaultColor(getContext(),
                android.R.attr.textColorPrimaryInverse);
                com.android.internal.R.attr.textColorOnAccent);
        setTextColor(color);
        setBackground(getContext()
                .getDrawable(com.android.systemui.R.drawable.kg_emergency_button_background));