OSDN Git Service

Add support for color extracted notification dots
authorTony Wickham <twickham@google.com>
Wed, 7 Jun 2017 21:32:23 +0000 (14:32 -0700)
committerTony Wickham <twickham@google.com>
Thu, 8 Jun 2017 21:08:47 +0000 (21:08 +0000)
commit7092db02410562026da17a7b38f48025cc847de2
treef1c0c5a50594ce890109bdb25dd0346dee9cbf6d
parent85b64c7da0f1134fdbae954acbc2925c1433566a
Add support for color extracted notification dots

Changing the badge_color in colors.xml to transparent
will cause them to be color extracted.

When an extracted color is used in the IconPalette, we
desaturate the background. Otherwise we respect the
exact color specified in colors.xml.

Change-Id: Ie82d0c5335fa5f24d4cc47766e4c1719c4916f8b
res/values/colors.xml
src/com/android/launcher3/BubbleTextView.java
src/com/android/launcher3/FastBitmapDrawable.java
src/com/android/launcher3/badge/BadgeRenderer.java
src/com/android/launcher3/folder/FolderIcon.java
src/com/android/launcher3/graphics/IconPalette.java
src/com/android/launcher3/popup/PopupContainerWithArrow.java