mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-16 11:16:12 -04:00
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:
@@ -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>
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user