mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-15 02:36:12 -04:00
fix(monitor): Restore tint on product icons to prevent invisibility on light backgrounds
Without tint, white PNG product icons (AirPods photos) are invisible on light notification backgrounds. Restore src_in tint with notification_icon_tint (a reliable day/night color resource) in both the PodInfoItemIcon.Notification style (covers small layouts) and the big layout product ImageViews that do not use that style.
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
android:id="@+id/pod_left_icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:tint="@color/notification_icon_tint"
|
||||
android:tintMode="src_in"
|
||||
android:src="@drawable/device_airpods_gen1_left" />
|
||||
|
||||
<ProgressBar
|
||||
@@ -86,6 +88,8 @@
|
||||
android:id="@+id/pod_case_icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:tint="@color/notification_icon_tint"
|
||||
android:tintMode="src_in"
|
||||
android:src="@drawable/device_airpods_gen1_case" />
|
||||
|
||||
<ProgressBar
|
||||
@@ -138,6 +142,8 @@
|
||||
android:id="@+id/pod_right_icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:tint="@color/notification_icon_tint"
|
||||
android:tintMode="src_in"
|
||||
android:src="@drawable/device_airpods_gen1_right" />
|
||||
|
||||
<ProgressBar
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
android:id="@+id/headphones_icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:tint="@color/notification_icon_tint"
|
||||
android:tintMode="src_in"
|
||||
android:src="@drawable/twotone_headphones_24" />
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
<style name="PodInfoItemIcon.Notification" parent="TextAppearance.Compat.Notification.Title">
|
||||
<item name="android:layout_height">20dp</item>
|
||||
<item name="android:layout_width">20dp</item>
|
||||
<item name="android:tintMode">src_in</item>
|
||||
<item name="android:tint">@color/notification_icon_tint</item>
|
||||
</style>
|
||||
|
||||
<style name="PodInfoItemIcon.Notification.Large" parent="PodInfoItemIcon.Notification">
|
||||
|
||||
Reference in New Issue
Block a user