diff options
author | fbaron <fbaron@google.com> | 2023-05-11 08:46:46 -0700 |
---|---|---|
committer | fbaron <fbaron@google.com> | 2023-05-15 11:06:46 -0700 |
commit | 1406a0f6068572c272728ec15ea9b0149d93216f (patch) | |
tree | c18392273b07ac8906daa2799c13974079b4e864 /src | |
parent | 606c4bfc59955be2b669572a7b1d98c5e73d43ac (diff) | |
download | Launcher3-1406a0f6068572c272728ec15ea9b0149d93216f.tar.gz |
Update notification dot color
Bug: 268521231
Test: Verify that notification dot colors match the figma attached in the bug
Change-Id: Id0cbf9f2447819ae3e6e00e880eca1be3f189826
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/BubbleTextView.java | 4 | ||||
-rw-r--r-- | src/com/android/launcher3/folder/PreviewBackground.java | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 450a9f0069..f920d7507c 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -77,6 +77,7 @@ import com.android.launcher3.util.IntArray; import com.android.launcher3.util.MultiTranslateDelegate; import com.android.launcher3.util.SafeCloseable; import com.android.launcher3.util.ShortcutUtil; +import com.android.launcher3.util.Themes; import com.android.launcher3.views.ActivityContext; import com.android.launcher3.views.IconLabelDotView; @@ -387,8 +388,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, } FastBitmapDrawable iconDrawable = info.newIcon(getContext(), flags); mDotParams.appColor = iconDrawable.getIconColor(); - mDotParams.dotColor = getContext().getResources() - .getColor(android.R.color.system_accent3_200, getContext().getTheme()); + mDotParams.dotColor = Themes.getAttrColor(getContext(), R.attr.notificationDotColor); setIcon(iconDrawable); applyLabel(info); } diff --git a/src/com/android/launcher3/folder/PreviewBackground.java b/src/com/android/launcher3/folder/PreviewBackground.java index 2465745f47..406955c417 100644 --- a/src/com/android/launcher3/folder/PreviewBackground.java +++ b/src/com/android/launcher3/folder/PreviewBackground.java @@ -43,6 +43,7 @@ import android.view.View; import com.android.launcher3.CellLayout; import com.android.launcher3.DeviceProfile; import com.android.launcher3.R; +import com.android.launcher3.util.Themes; import com.android.launcher3.views.ActivityContext; /** @@ -150,7 +151,7 @@ public class PreviewBackground extends CellLayout.DelegatedCellDrawing { mInvalidateDelegate = invalidateDelegate; TypedArray ta = context.getTheme().obtainStyledAttributes(R.styleable.FolderIconPreview); - mDotColor = ta.getColor(R.styleable.FolderIconPreview_folderDotColor, 0); + mDotColor = Themes.getAttrColor(context, R.attr.notificationDotColor); mStrokeColor = ta.getColor(R.styleable.FolderIconPreview_folderIconBorderColor, 0); mBgColor = ta.getColor(R.styleable.FolderIconPreview_folderPreviewColor, 0); ta.recycle(); |