[dolphin] [Bug 446222] 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.

ocalhoun bugzilla_noreply at kde.org
Mon Nov 29 07:18:14 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=446222

--- Comment #1 from ocalhoun <7485697 at gmail.com> ---
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list