Bug 442771 - White text on white background on text files preview while using a dark theme makes previews useless.
Summary: White text on white background on text files preview while using a dark theme...
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: information (other bugs)
Version First Reported In: 19.12.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-21 10:09 UTC by angus
Modified: 2021-09-21 22:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Info panel for text file: whte text on white background! (109.32 KB, image/png)
2021-09-21 10:09 UTC, angus
Details
Info panel for text file while using light theme (124.45 KB, image/png)
2021-09-21 10:12 UTC, angus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description angus 2021-09-21 10:09:37 UTC
Created attachment 141759 [details]
Info panel for text file: whte text on white background!

SUMMARY
You know that dark themes display normal text as white on a dark background.
Dolphin information panel display text file previews always with white background: when normal text is white, it shows previews as WHITE on WHITE,as you can see on the screen shot.

STEPS TO REPRODUCE
1. Apply a dark theme in System-Settings->Appearance->Colors (i.e. Breeze Dark)
2. Open the Information Panel for a text file of size > 0


OBSERVED RESULT
A complete white page is shown instead of showing the content of the text file, you cannot read any text (see the screenshot).

EXPECTED RESULT
Text should be rendered with a different color than background OR a different background should be used other than white.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KUbuntu 20.04/Kde Plasma 5.18.5
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
1)
You can personalize text color by modifying "view text" property (System-settings->Appearance->Colors). It works as a workaround. However this change standard text color for all the KDE environment and not just the information panel view for text files!
2) 
Text in bash scripts or text files with other extensions (.inc) display correctly even when using dark themes! Only .txt files show this problem.
Comment 1 angus 2021-09-21 10:12:00 UTC
Created attachment 141760 [details]
Info panel for text file while using light theme
Comment 2 Nate Graham 2021-09-21 22:37:17 UTC
Fixed in a later version. You are using a version of Dolphin that is almost two years old; I would recommend upgrading if possible, or using a distro that provides newer versions of KDE software if not.