Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90a8354a authored by Miranda Kephart's avatar Miranda Kephart
Browse files

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
parent 56dc3f41
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"
+3 −3
Original line number Diff line number Diff line
@@ -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) {