catppuccin / userstyles

🖌 Soothing pastel userstyles
MIT License
530 stars 156 forks source link

Proton: Some text inside message in not visible but present #828

Open Gandalf-the-Blue opened 7 months ago

Gandalf-the-Blue commented 7 months ago

Is there an existing issue outlining your problem?

What userstyles are you seeing the problem on?

lbl:proton

Describe your problem.

Some text inside messages is rendered in white colour, and the background is also white, so I cannot see the text.

Attach screenshots.

Screenshot from 2024-04-20 19-31-09

What browser(s) are you seeing the problem on?

LibreWolf 124.0.1-1

Any additional comments?

When selecting the text as in the screenshot, it is revelaed.

milkembers commented 6 months ago

i'm also having the same issue

Gandalf-the-Blue commented 6 months ago

I found a temporary solution by changing Proton's own theme to Snow.

lplawlor commented 5 months ago

I find that changing the theme within Proton itself doesn't solve the issue entirely. For example, here's screenshots of a plaintext test email I sent to myself (no styling), and a styled email from a Substack mailing list.

Using Proton's dark theme Carbon with Catppuccin applied via Stylus, the plaintext email is unreadable, whereas the Substack email reads just fine: image image

Changing Proton's theme to the default light theme Proton, the plaintext email becomes legible, and the substack email loses it's proper styling: image image

Gandalf-the-Blue commented 5 months ago

Yeah, my own previous "solution" worked for certain emails, but did not for a majority of them. I only discovered this later.

lplawlor commented 5 months ago

After a bit of fiddling, I've noticed that removing line 61 from the CSS fixes this issue, at least if you're on a dark theme in Catppuccin (Frappé, Macchiato or Mocha) and in Proton (Carbon, Monokai or Ebony):

-    color-scheme: if(@lookup = latte, light, dark);

image image

I'm sure this breaks something if you use another theme combination (particularly Latte), but it works for me on Mocha x Carbon.

computergnome99 commented 2 months ago

@lplawlor commenting out this line still appears to work with dark-mode only for me. Thanks!

Not sure what a good long-term solution is here.

I did notice that it breaks only when first opening a message in Proton Mail (likely because of how the iframe is loaded). After I switch to another message, and then switch back to the previously broken message, it works fine (even without the fix).

Not sure if this helps anyone come to a long-term fix or not, but, I'd say it's still broken as-is since it still requires the work-around to get properly displayed messages on initial load.