From 7727ad23b252cc78f1eb942628e3639668e64536 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Fri, 22 Jan 2016 14:38:46 -0500 Subject: [PATCH] Inline settings color changes. Bug: 26486314 Change-Id: I8c842081e544b05c6d88e99361426052c216d8f7 --- core/res/res/drawable/ic_notification_alert.xml | 8 ++++---- core/res/res/drawable/ic_notification_block.xml | 2 +- packages/SystemUI/res/layout/notification_guts.xml | 6 ++++-- packages/SystemUI/res/values/colors.xml | 4 +++- .../src/com/android/systemui/statusbar/NotificationGuts.java | 5 +++++ 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/core/res/res/drawable/ic_notification_alert.xml b/core/res/res/drawable/ic_notification_alert.xml index d17dfc1ec8cf..c8514acde2ac 100644 --- a/core/res/res/drawable/ic_notification_alert.xml +++ b/core/res/res/drawable/ic_notification_alert.xml @@ -20,14 +20,14 @@ Copyright (C) 2016 The Android Open Source Project android:viewportHeight="24.0"> + android:fillColor="#FFFFFFFF"/> + android:fillColor="#FFFFFFFF"/> + android:fillColor="#FFFFFFFF"/> + android:fillColor="#FFFFFFFF"/> diff --git a/core/res/res/drawable/ic_notification_block.xml b/core/res/res/drawable/ic_notification_block.xml index 276907401d5a..572e97b6badc 100644 --- a/core/res/res/drawable/ic_notification_block.xml +++ b/core/res/res/drawable/ic_notification_block.xml @@ -20,6 +20,6 @@ Copyright (C) 2016 The Android Open Source Project android:viewportHeight="24.0"> diff --git a/packages/SystemUI/res/layout/notification_guts.xml b/packages/SystemUI/res/layout/notification_guts.xml index 03451b43b5e2..e550d9c02396 100644 --- a/packages/SystemUI/res/layout/notification_guts.xml +++ b/packages/SystemUI/res/layout/notification_guts.xml @@ -99,7 +99,8 @@ android:src="@*android:drawable/ic_notification_block" android:layout_gravity="center_vertical|start" android:layout_width="24dp" - android:layout_height="24dp" /> + android:layout_height="24dp" + android:tint="@color/notification_guts_icon_tint"/> + android:layout_height="24dp" + android:tint="@color/notification_guts_icon_tint" /> diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index e7fd29580424..b2190ec10998 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -100,9 +100,11 @@ @color/system_accent_color - @*android:color/material_grey_50 + #eeeeee @*android:color/material_deep_teal_500 #858383 + #8a000000 + #4d000000 #ffffff diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationGuts.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationGuts.java index 52326e3fc78a..e4cd7d9f5276 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationGuts.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationGuts.java @@ -29,6 +29,7 @@ import android.service.notification.NotificationListenerService; import android.service.notification.StatusBarNotification; import android.util.AttributeSet; import android.view.View; +import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RadioButton; import android.widget.SeekBar; @@ -133,6 +134,10 @@ public class NotificationGuts extends LinearLayout { } catch (PackageManager.NameNotFoundException e) { // unlikely. } + if (systemApp) { + ((ImageView) row.findViewById(R.id.low_importance)).getDrawable().setTint( + mContext.getColor(R.color.notification_guts_disabled_icon_tint)); + } final int minProgress = systemApp ? NotificationListenerService.Ranking.IMPORTANCE_LOW : NotificationListenerService.Ranking.IMPORTANCE_NONE; -- 2.11.0