Bug 434132

Summary: Text on HTML-"buttons" invisible
Product: [Applications] kmail2 Reporter: Attila <bugs.kde.attila>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: 5.15.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Text on button invisible
Text on button highlighted

Description Attila 2021-03-08 08:26:55 UTC
Created attachment 136478 [details]
Text on button invisible

SUMMARY
The text on "modern" buttons is invisible in almost every HTML-formatted e-mail. I have to higlight the text by mouse to be able to read the text on those buttons (see attachments).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Operating System: Fedora 33
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.10.16-200.fc33.x86_64
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4770T CPU @ 2.50GHz
Memory: 7.2 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 1 Attila 2021-03-08 08:27:50 UTC
Created attachment 136479 [details]
Text on button highlighted
Comment 2 Attila 2021-03-15 12:38:29 UTC
Additional information:

The "modern" button is a square with a color and a text inside. The text is a link (<a href="" style="color: #21314D">).
This and any other color is ignored by KMail and is always overwritten by "#2980B9". Is "#2980B9" the default color for links?
This is only affacted to HTML-Tag <a href=""></a>.
Hopefully it is not a big deal to fix it, is it?
Comment 3 Attila 2021-04-29 06:34:00 UTC
Can someone please take a look at this?
Comment 4 Attila 2021-10-18 07:28:42 UTC
The bug still exists on Fedora 34, KMail 5.16.2.
Can someone please take a look at this bug?
It is a bad user experience when E-Mails are not displayed correct and therefore the user can't read them.
Comment 5 Laurent Montel 2021-10-18 10:58:48 UTC
(In reply to Attila from comment #4)
> The bug still exists on Fedora 34, KMail 5.16.2.
> Can someone please take a look at this bug?
> It is a bad user experience when E-Mails are not displayed correct and
> therefore the user can't read them.

There is a checkbox in configure->appearence->color-> "do not change color from origin html" could you check it and verify if it fixes your problem ?
As there is not a testcase here I can't test it.
Comment 6 Attila 2021-10-18 20:08:01 UTC
Thank you for your quick reply. Indeed the checkbox "do not change color from origin html" wasn't ticked. That fixes the issue.

Shouldn't the checkbox be ticked by default to avoid incorrect display on the screen?
Comment 7 Laurent Montel 2021-10-19 06:01:49 UTC
(In reply to Attila from comment #6)
> Thank you for your quick reply. Indeed the checkbox "do not change color
> from origin html" wasn't ticked. That fixes the issue.
> 
> Shouldn't the checkbox be ticked by default to avoid incorrect display on
> the screen?

Not by default as for example all user which use only text email will want that we use kde color. (it's the default from origin).