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:
@@ -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"
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user