fix(monitor): Fix notification color inconsistency in dark mode on One UI

Remove Theme.Material3.DynamicColors.DayNight from the notification
container style; it does not resolve correctly in the notification host
process, causing light-mode colors to appear in dark mode. Replace all
?attr/colorAccent and ?android:attr/textColorPrimary refs in RemoteViews
layouts with explicit day/night color resources (notification_icon_tint)
and TextAppearance.Compat.Notification.Title defaults. Change tintMode
from multiply to src_in for status glyphs; remove tint from product PNG
icons to prevent silhouette rendering.

Fixes #613
This commit is contained in:
darken
2026-06-14 17:52:45 +02:00
committed by Matthias Urhahn
parent 227a6b2a7b
commit 1e555cc712
8 changed files with 37 additions and 28 deletions
+2
View File
@@ -60,4 +60,6 @@
<color name="brand_primary">#3f7aff</color>
<color name="brand_secondary">#ffd83c</color>
<color name="brand_tertiary">#41eb8e</color>
<color name="notification_icon_tint">#757575</color>
</resources>
-5
View File
@@ -13,15 +13,11 @@
<style name="Notification.Container">
<!-- <item name="android:background">?android:attr/colorBackground</item>-->
<item name="android:theme">@style/Theme.Material3.DynamicColors.DayNight</item>
</style>
<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">multiply</item>
<item name="android:tint">?android:attr/colorAccent</item>
<item name="tint">?android:attr/colorAccent</item>
</style>
<style name="PodInfoItemIcon.Notification.Large" parent="PodInfoItemIcon.Notification">
@@ -32,7 +28,6 @@
<style name="PodInfoItemText.Notification" parent="TextAppearance.Compat.Notification.Title">
<item name="android:singleLine">true</item>
<item name="android:ellipsize">end</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
</style>
<style name="PodInfoItemIcon" parent="TextAppearance.Material3.BodyMedium">