Merge "Apply colors extracted from wallpaper to clock faces."

This commit is contained in:
Lucas Dupin
2019-02-10 18:12:46 +00:00
committed by Android (Google) Code Review
11 changed files with 136 additions and 14 deletions

View File

@@ -54,10 +54,17 @@ public interface ClockPlugin extends Plugin {
*/
void setTextColor(int color);
/**
* Sets the color palette for the clock face.
* @param supportsDarkText Whether dark text can be displayed.
* @param colors Colors that should be used on the clock face, ordered from darker to lighter.
*/
default void setColorPalette(boolean supportsDarkText, int[] colors) {}
/**
* Notifies that time tick alarm from doze service fired.
*/
default void dozeTimeTick() { }
default void dozeTimeTick() {}
/**
* Set the amount (ratio) that the device has transitioned to doze.