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).
This commit is contained in:
parent
645e466b2f
commit
d8441ab385
5 changed files with 17 additions and 8 deletions
|
|
@ -26,7 +26,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Shonar"
|
android:text="Shonar"
|
||||||
android:textColor="@color/shonar_widget_text"
|
android:textColor="@color/notif_text"
|
||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Delete current recording?"
|
android:text="Delete current recording?"
|
||||||
android:textColor="@color/shonar_widget_text"
|
android:textColor="@color/notif_text"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="Recording"
|
android:text="Recording"
|
||||||
android:textColor="@color/shonar_widget_text"
|
android:textColor="@color/notif_text"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="Shonar"
|
android:text="Shonar"
|
||||||
android:textColor="@color/shonar_widget_text"
|
android:textColor="@color/notif_text"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="00:00"
|
android:text="00:00"
|
||||||
android:textColor="@color/shonar_widget_text"
|
android:textColor="@color/notif_text"
|
||||||
android:textSize="28sp"
|
android:textSize="28sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="Recording"
|
android:text="Recording"
|
||||||
android:textColor="@color/shonar_widget_text"
|
android:textColor="@color/notif_text"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="Shonar"
|
android:text="Shonar"
|
||||||
android:textColor="@color/shonar_widget_text"
|
android:textColor="@color/notif_text"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="00:00"
|
android:text="00:00"
|
||||||
android:textColor="@color/shonar_widget_text"
|
android:textColor="@color/notif_text"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
||||||
5
android/app/src/main/res/values-night/colors.xml
Normal file
5
android/app/src/main/res/values-night/colors.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<resources>
|
||||||
|
<!-- Dark mode: SystemUI paints the notification card dark; restore the
|
||||||
|
light Shonar text color. -->
|
||||||
|
<color name="notif_text">#E6EDF3</color>
|
||||||
|
</resources>
|
||||||
|
|
@ -5,6 +5,10 @@
|
||||||
<color name="shonar_widget_bg">#E6121C2E</color>
|
<color name="shonar_widget_bg">#E6121C2E</color>
|
||||||
<color name="shonar_accent">#4FD1C5</color>
|
<color name="shonar_accent">#4FD1C5</color>
|
||||||
<color name="shonar_widget_text">#E6EDF3</color>
|
<color name="shonar_widget_text">#E6EDF3</color>
|
||||||
|
<!-- Notification card text: the card background is painted by SystemUI
|
||||||
|
with the SYSTEM theme, so this must follow night mode (the widget
|
||||||
|
color above stays white: the widget paints its own navy bg). -->
|
||||||
|
<color name="notif_text">#10141A</color>
|
||||||
<color name="shonar_widget_sub">#9FB3C8</color>
|
<color name="shonar_widget_sub">#9FB3C8</color>
|
||||||
<color name="shonar_rec_red">#FF5252</color>
|
<color name="shonar_rec_red">#FF5252</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue