D19432: [text thumbnailer] Use KSyntaxHighlighting for text rendering

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Thu Feb 28 23:33:41 GMT 2019


kossebau added inline comments.

INLINE COMMENTS

> cfeck wrote in textcreator.cpp:169
> KSyntaxHighlighting::Theme also provides a background color. Can that be used instead of the hardcoded 245? I cannot remember reason why I disabled (or never enabled) the QPalette code; I suggest to remove it.

Good idea. Hm, `highlightingTheme.backgroundColor(KSyntaxHighlighting::Theme::Normal)` returns black for me, and there is a comment for `Theme::backgroundColor(TextStyle) const` saying
"0 is returned for styles that do not specify a background color, use the default background color in that case. "
No clue yet what is meant by "default background color". Not sure I want to use the `Theme::editorColor(EditorColorRole role) const` with `BackgroundColor`?

REPOSITORY
  R320 KIO Extras

REVISION DETAIL
  https://phabricator.kde.org/D19432

To: kossebau, broulik
Cc: cfeck, kde-frameworks-devel, kfm-devel, alexde, feverfew, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190228/a5351e19/attachment.html>


More information about the Kde-frameworks-devel mailing list