From d8441ab38571ee0e3fb1026a32bf668f5d520fc2 Mon Sep 17 00:00:00 2001 From: avi Date: Thu, 17 Sep 2026 13:48:43 -0500 Subject: [PATCH] Notification text follows system theme (fix white-on-white in light mode) The custom RemoteViews layouts hard-set @color/shonar_widget_text (white) for the dark navy card, but SystemUI paints the notification card with the SYSTEM theme: in light mode the card is pale lavender and the title, file name, and timer rendered white-on-white. Add @color/notif_text = ink by default, #E6EDF3 in values-night, and use it in notification_recording, notification_recording_small, and notification_confirm_delete. The widget keeps its own white text (it paints its own navy background). On-device (Pixel 8 Pro, night=no): recording card text is dark-on-light; zero white text pixels in the card region (was washed-out white before). --- .../app/src/main/res/layout/notification_confirm_delete.xml | 4 ++-- android/app/src/main/res/layout/notification_recording.xml | 6 +++--- .../src/main/res/layout/notification_recording_small.xml | 6 +++--- android/app/src/main/res/values-night/colors.xml | 5 +++++ android/app/src/main/res/values/colors.xml | 4 ++++ 5 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 android/app/src/main/res/values-night/colors.xml diff --git a/android/app/src/main/res/layout/notification_confirm_delete.xml b/android/app/src/main/res/layout/notification_confirm_delete.xml index d1b4025..32ad921 100644 --- a/android/app/src/main/res/layout/notification_confirm_delete.xml +++ b/android/app/src/main/res/layout/notification_confirm_delete.xml @@ -26,7 +26,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Shonar" - android:textColor="@color/shonar_widget_text" + android:textColor="@color/notif_text" android:textSize="15sp" android:textStyle="bold" /> @@ -34,7 +34,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Delete current recording?" - android:textColor="@color/shonar_widget_text" + android:textColor="@color/notif_text" android:textSize="14sp" /> @@ -44,7 +44,7 @@ android:layout_height="wrap_content" android:singleLine="true" android:text="Shonar" - android:textColor="@color/shonar_widget_text" + android:textColor="@color/notif_text" android:textSize="14sp" /> @@ -55,7 +55,7 @@ android:layout_marginStart="8dp" android:singleLine="true" android:text="00:00" - android:textColor="@color/shonar_widget_text" + android:textColor="@color/notif_text" android:textSize="28sp" android:textStyle="bold" /> diff --git a/android/app/src/main/res/layout/notification_recording_small.xml b/android/app/src/main/res/layout/notification_recording_small.xml index afb6de6..af08b84 100644 --- a/android/app/src/main/res/layout/notification_recording_small.xml +++ b/android/app/src/main/res/layout/notification_recording_small.xml @@ -33,7 +33,7 @@ android:layout_height="wrap_content" android:singleLine="true" android:text="Recording" - android:textColor="@color/shonar_widget_text" + android:textColor="@color/notif_text" android:textSize="14sp" android:textStyle="bold" /> @@ -44,7 +44,7 @@ android:ellipsize="end" android:singleLine="true" android:text="Shonar" - android:textColor="@color/shonar_widget_text" + android:textColor="@color/notif_text" android:textSize="12sp" /> @@ -55,7 +55,7 @@ android:layout_marginStart="8dp" android:singleLine="true" android:text="00:00" - android:textColor="@color/shonar_widget_text" + android:textColor="@color/notif_text" android:textSize="16sp" android:textStyle="bold" /> diff --git a/android/app/src/main/res/values-night/colors.xml b/android/app/src/main/res/values-night/colors.xml new file mode 100644 index 0000000..dd19b1d --- /dev/null +++ b/android/app/src/main/res/values-night/colors.xml @@ -0,0 +1,5 @@ + + + #E6EDF3 + diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml index 9b82bb0..ca19d6d 100644 --- a/android/app/src/main/res/values/colors.xml +++ b/android/app/src/main/res/values/colors.xml @@ -5,6 +5,10 @@ #E6121C2E #4FD1C5 #E6EDF3 + + #10141A #9FB3C8 #FF5252