K-9: Notification font color does not contrast

Created on 15 Nov 2016  路  7Comments  路  Source: k9mail/k-9

Not a real issue because UI normally has white backgrounds on devices that aren't rooted and modified.

Expected behavior

Tell us what should happen
Font color should contrast with UI notification color on devices that have changed the system UI's background color through means of a theme manager or mod (Xposed or theme flash through recovery)

Actual behavior

Tell us what happens instead
In android's UI with a black background (not in k9), K9 notifications show the subject line font color that doesn't contrast with notification background color whereas the message contents does that just fine. The subject line remains in black font and cannot be read due to both colors of Android UI and subject line being the same.

Steps to reproduce

  1. Install an Xposed module (notifyclean by defim) that can change color of UI. Or use Substratum with a dark theme installed.
  2. Set notifications to a black background. On Substratum, set the system UI and Android system to be applied with a dark theme.
  3. Have k9 mail display notification

Environment

K-9 Mail version:
5.113 f-droid build
Android version:
6.0.1
Account type (IMAP, POP3, WebDAV/Exchange):
IMAP personal

bug needs info

All 7 comments

tmp_29217-screenshot_20161114-213450-1860298259

This is in v21/styles.xml

If someone from @TeamSubstratum knows the right thing to set it to so it's black on normal devices and something sensible on Substratum I'd be happy to test the standard case.

Currently it's

<item name="android:textColor">?android:textColorPrimaryInverse</item>

I'm not suggesting we change the theme. I'm suggesting we find a better constant to use to set the textColor. I thought Substratum would know that. But if the theme editors know that's fine too. It should be the colour that notification titles are set to.

Still happening on many dark themes.

This is now an issue on Galaxy S10 which has night mode on Android 9. While night mode is enabled you're unable to read the text of the k9 notification.

Same on Note 9

The problem (at least for me, S9+) happens only when I have multiple notifications, and only when collapsed:

  • Multiple notifications, collapsed

multiple-collapsed

  • Multiple notifications, exploded

multiple-exploded

  • Single notifications, collapsed

single-collapsed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eleith picture eleith  路  3Comments

robsmith11 picture robsmith11  路  3Comments

Immortalin picture Immortalin  路  3Comments

jrtberlin picture jrtberlin  路  3Comments

D0ve picture D0ve  路  3Comments