Loading packages/SystemUI/res/values/colors.xml +3 −0 Original line number Diff line number Diff line Loading @@ -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 --> Loading packages/SystemUI/src/com/android/keyguard/NumPadButton.java +3 −4 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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)); } } packages/SystemUI/res-keyguard/values/styles.xml +2 −2 File changed.Contains only whitespace changes. Show changes Loading
packages/SystemUI/res/values/colors.xml +3 −0 Original line number Diff line number Diff line Loading @@ -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 --> Loading
packages/SystemUI/src/com/android/keyguard/NumPadButton.java +3 −4 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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)); } }
packages/SystemUI/res-keyguard/values/styles.xml +2 −2 File changed.Contains only whitespace changes. Show changes