summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/GradientTextClock.java
AgeCommit message (Collapse)Author
2020-11-17Add support for LS Clock to use > 1 Paint objectBeverly
Updated TextInterpolator and TextAnimator to support a Paint object for each line of text. Now we can interpolate between the colors when animating. Clock colors are now based on the theme (for now, wallpaper text color). ie: first line (of vertical clock) is one color, second line is another color. Also adjusted Keyguard clock logic to animate on doze changes instead of animating incrementally on setDarkAmount. Test: atest TextInterpolatorTest TextAnimatorTest Bug: 170228350 Change-Id: Ia62f2de48534be2007afc5a95eac46b3c44ec880
2020-11-12Add TextInterpolator for plain textSeigo Nonaka
Bug: 172305675 Test: atest TextInterpolatorTest Test: atest FontInterpolatorTest Test: atest KeyguardClockSwitchTest Test: atest TextAnimatorTest Change-Id: I704b8f403a05480749589d22b1414e57fe1c3938
2020-10-21Use AOD/LS SystemUI clock-specific fontBeverly
Use a custom variable width font on AOD/LS. Use weight 200 on AOD and weight 400 on LS. The animation currently re-layouts throughout the animation, and eventually should animate using new TextAPIs. To toggle on the new lockscreen: adb shell settings put global show_new_lockscreen 1 Test: manual Bug: 170228350 Change-Id: I62072a3e4a045f10606f8c7ed3f5214107e1670d
2020-10-19Add gradient clock to AOD/LS behind LS flagBeverly
Also updates "new lockscreen" smart space layout. Currently TimeBasedColorsClockController will change the TextClock's colors based on hardcoded times. To toggle on the new lockscreen: adb shell settings put global show_new_lockscreen 1 Test: atest KeyguardSliceViewTest Test: manual Bug: 170228350 Change-Id: Ib72b45aad34fe4483538a9094154d6c473910612