Use theme color for screenshot UI icons

Bug: 162377061
Fix: 162377061
Test: manual (tested in light/dark modes, ensured that smart
screenshot actions are not tinted)

Change-Id: I00b2cb91af1df057501d35394f1c6ab63990f8d5
This commit is contained in:
Miranda Kephart
2020-08-14 15:05:33 -04:00
parent 56dc3f4122
commit 90a8354a03
2 changed files with 4 additions and 3 deletions

View File

@@ -32,6 +32,7 @@
android:gravity="center">
<ImageView
android:id="@+id/screenshot_action_chip_icon"
android:tint="@*android:color/accent_device_default"
android:layout_width="@dimen/screenshot_action_chip_icon_size"
android:layout_height="@dimen/screenshot_action_chip_icon_size"
android:layout_marginStart="@dimen/screenshot_action_chip_padding_start"

View File

@@ -65,10 +65,10 @@ public class ScreenshotActionChip extends FrameLayout {
}
void setIcon(Icon icon, boolean tint) {
if (tint) {
icon.setTint(mIconColor);
}
mIcon.setImageIcon(icon);
if (!tint) {
mIcon.setImageTintList(null);
}
}
void setText(CharSequence text) {