Summary: | Formatting by KSyntaxHighlighting::SyntaxHighlighter of normal text seems to be dropped partially (Qt >=5.13.0/5.12.4) | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-syntax-highlighting | Reporter: | Friedrich W. H. Kossebau <kossebau> |
Component: | theme | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 3ndymion, bugseforuns, mrgeekley, sk.griffinix |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kio-extras/4ec12a850e258de49d2ed7103f82b468939164c1 | Version Fixed In: | |
Sentry Crash Report: |
Description
Friedrich W. H. Kossebau
2019-07-01 16:54:12 UTC
And I meant the "formatting in the generated HTML" rather as indicator, not the cause, given this is also just "rendered" from the actual data. Some more findings, without yet giving me a any clue (though also being a noop when it comes to QTextDocument & formatting): Adding to the thumbnailer qDebug() << textDocument.firstBlock().text() << textDocument.firstBlock().charFormat().foreground(); I get for the .txt file example above: "This is some example text." QBrush(QColor(ARGB 1, 0, 0, 0),NoBrush) Which rather looks like a formatting with which one should see the text rendered as black? Strange enough I see the same QBrush output also with files of some formats where the highlighting yields proper results (qml, dot, xml, patch, json, cpp, rs)... Hi. Sorry I took so long. I think the most I could do to help here is to confirm what you already know. It is indeed the color scheme that is related to this problem. I always use Breeze Dark, but when I switched back to normal Breeze with the bright colors, I opened up a new Dolphin window, & suddenly, the text file previews work perfectly fine again. Since I don't like looking into the sun, I put it back on Breeze Dark, & now, the text previews no longer work again. Could it possibly be a case of trying to render white text on a white background somehow??? I just realized... from looking at the screen close & at a different angle, I can see that the text preview actually is there. It is indeed nearly white text on a white background. I never realized that until just now. But I guess that's what you were saying in your explanation. My apologies, I had a bit of trouble understanding everything you wrote. *** Bug 411656 has been marked as a duplicate of this bug. *** Git commit 4ec12a850e258de49d2ed7103f82b468939164c1 by Ilia Kats. Committed on 11/12/2019 at 20:08. Pushed by iliakats into branch 'master'. fix preview of plain text files when using dark theme Related: bug 406821 Differential Revision: https://phabricator.kde.org/D25891 M +3 -1 thumbnail/textcreator.cpp https://commits.kde.org/kio-extras/4ec12a850e258de49d2ed7103f82b468939164c1 Still happening: https://bugs.kde.org/show_bug.cgi?id=406821 |