hteumeuleu / email-bugs

Email quirks and bugs
538 stars 20 forks source link

[K-9 for android] CSS header styles for dark mode are ignored and overwritten #129

Open SpecOps12 opened 1 year ago

SpecOps12 commented 1 year ago

When opening an email in K-9 on android in dark mode, the header css for dark mode is ignored and instead it puts the inline stylebackground: black !important; in each html tag and overwrites it.

Example from my email:

<tr style="background: black !important; color: rgb(243, 243, 243) !important; border-collapse: collapse; margin: 0px;">
    <td colspan="3" align="left" style="background: black !important; color: rgb(243, 243, 243) !important; border-collapse: collapse; margin: 0px;">
      <a class="button btnOutlineFill btnOutline DarkmodeWhiteText" href="###" style="background: black !important; color: rgb(29, 33, 36); font-size: 16px; border: 2px solid rgb(29, 33, 36); text-decoration: none; border-radius: 50px; display: inline-block; font-family: XING-Sans, Helvetica, Arial, sans-serif; font-weight: bold; line-height: 36px;">
        <span style="background: black !important; color: rgb(204, 255, 51) !important; padding: 8px 16px; font-size: 16px; font-weight: bold; line-height: 36px;">edit contacts</span>
      </a>
    </td>
  </tr>

There is already an open issue for that the false dark mode styling in their repo https://github.com/thundernest/k-9/issues/4198