IBM / mac-ibm-notifications

macOS agent used to display custom notifications and alerts to the end user.
Apache License 2.0
297 stars 49 forks source link

[BUG] HTML table text displayed in black when macOS is in dark mode #211

Closed joclutz closed 3 months ago

joclutz commented 6 months ago

Describe the bug When using HTML in a popup message, the text inside a table is displayed in black, no matter if macOS is running in light or dark mode. This makes tables hardly readable in dark mode. However, text inside the HTML body or plain text will switch colours accordingly.

To Reproduce Use the following switches/arguments to reproduce the behaviour: -type "popup" -accessory_view_type html -accessory_view_payload "<html><body>Body text 1<table><tr><td>table text A1</td><td>table text B1</td></tr><tr><td>table text A2</td><td>table text B2</td></tr></table>Body text 2</body></html>"

Expected behaviour Text inside a HTML table should switch colours accordingly as well. At least in version 2.9.1 this was working correctly.

Screenshots Screenshot in dark mode (v. 3.1.0):

image

Screenshot in light mode (v. 3.1.0):

image

Screenshot in dark mode (v. 2.9.1):

image

Screenshot in light mode (v. 2.9.1):

image

Desktop: