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.
Created attachment 141760 [details] Info panel for text file while using light theme
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.