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

Commit 72c0ffd9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add a property for Numpad Button text color" into sc-v2-dev

parents 6b201d25 5815309d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -69,6 +69,9 @@
    <!-- Shadows under the clock, date and other keyguard text fields -->
    <color name="keyguard_shadow_color">#B2000000</color>

    <!-- Color for the images in keyguard number pad buttons   -->
    <color name="keyguard_keypad_image_color">@android:color/background_light</color>

    <!-- Color for rounded background for activated user in keyguard user switcher -->
    <color name="kg_user_switcher_activated_background_color">#26000000</color>
    <!-- Icon color for user avatars in keyguard user switcher -->
+3 −4
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ import android.view.MotionEvent;

import androidx.annotation.Nullable;

import com.android.settingslib.Utils;
import com.android.systemui.R;

/**
 * Similar to the {@link NumPadKey}, but displays an image.
@@ -92,8 +92,7 @@ public class NumPadButton extends AlphaOptimizedImageButton {
    public void reloadColors() {
        if (mAnimator != null) mAnimator.reloadColors(getContext());

        int textColor = Utils.getColorAttrDefaultColor(getContext(),
                android.R.attr.colorBackground);
        ((VectorDrawable) getDrawable()).setTintList(ColorStateList.valueOf(textColor));
        int imageColor = getContext().getColor(R.color.keyguard_keypad_image_color);
        ((VectorDrawable) getDrawable()).setTintList(ColorStateList.valueOf(imageColor));
    }
}
+2 −2

File changed.

Contains only whitespace changes.