diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-02-07 13:11:17 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-02-09 10:16:22 -0800 |
commit | d5d5e22715c19c361d264693929c15c4325e80fa (patch) | |
tree | de664e7f61c2088de817483d57860a83a1f87228 /src/com/android/launcher3/PendingAppWidgetHostView.java | |
parent | db7b82960a54b85510aaeba2f543b37b4dc59fc8 (diff) | |
download | android_packages_apps_Trebuchet-d5d5e22715c19c361d264693929c15c4325e80fa.tar.gz android_packages_apps_Trebuchet-d5d5e22715c19c361d264693929c15c4325e80fa.tar.bz2 android_packages_apps_Trebuchet-d5d5e22715c19c361d264693929c15c4325e80fa.zip |
Updating widget tray theme
Using standard theme attributes rather than custom color codes, so
that it plays nice with system theme changes.
Bug: 34819119
Bug: 34897402
Bug: 21446746
Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
Diffstat (limited to 'src/com/android/launcher3/PendingAppWidgetHostView.java')
-rw-r--r-- | src/com/android/launcher3/PendingAppWidgetHostView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/PendingAppWidgetHostView.java b/src/com/android/launcher3/PendingAppWidgetHostView.java index 354cf2065..815fd101b 100644 --- a/src/com/android/launcher3/PendingAppWidgetHostView.java +++ b/src/com/android/launcher3/PendingAppWidgetHostView.java @@ -69,10 +69,10 @@ public class PendingAppWidgetHostView extends LauncherAppWidgetHostView mDisabledForSafeMode = disabledForSafeMode; mPaint = new TextPaint(); - mPaint.setColor(0xFFFFFFFF); + mPaint.setColor(Utilities.getAttrColor(getContext(), android.R.attr.textColorPrimary)); mPaint.setTextSize(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX, mLauncher.getDeviceProfile().iconTextSizePx, getResources().getDisplayMetrics())); - setBackgroundResource(R.drawable.quantum_panel_dark); + setBackgroundResource(R.drawable.round_rect_primary); setWillNotDraw(false); setElevation(getResources().getDimension(R.dimen.pending_widget_elevation)); |