Summary: | Default font color for text file thumbnails is "View Text" but this can be set as white by system theme and the white background of the thumbnail never changes. | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | ocalhoun <7485697> |
Component: | view-engine: icons mode | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | REPORTED --- | ||
Severity: | minor | CC: | 7485697, kfm-devel |
Priority: | NOR | ||
Version: | 19.12.3 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
ocalhoun
2021-11-29 02:59:37 UTC
I've found the code responsible for this! https://invent.kde.org/network/kio-extras/-/blob/master/thumbnail/textcreator.cpp line 131: QColor bgColor = QColor ( 245, 245, 245 ); // light-grey background This is where the background color is hard-coded. The font color is probably coming from one of these two lines: line 142: textDocument.setDefaultFont(font); line 147 textDocument.setDefaultTextOption(textOption); Since this seems to be an issue with the KIO repository, I'll see if I can make a but report there instead ... or maybe even a pull request. You can close this if you want to, unless you feel like trying to fix this bug from your end. |