Fix: apply correctly the text colors of the chosen scheme

Authored by nibags on Mar 28 2019, 10:09 PM.

Description

Fix: apply correctly the text colors of the chosen scheme

Summary:
BUG: 398758

Since the implementation of KSyntaxHighlighting in KF5.50, KTextEditor always uses the "Normal" scheme for text colors.

Previously, the colors were set according to KSyntaxHighlighting::Repository::LightTheme, which corresponds to the "Normal" scheme. Now use KateRendererConfig::global() to get the name of the current selected scheme.

Before:

After:

Reviewers: KTextEditor, Kate, cullmann, mwolff

Reviewed By: KTextEditor, Kate, cullmann

Subscribers: mwolff, cullmann, dhaumann, kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D19876

Details

Committed
nibagsApr 3 2019, 7:21 AM
Reviewer
KTextEditor
Differential Revision
D19876: Fix: apply correctly the text colors of the chosen scheme
Parents
R39:03e5bd0cabb7: Fix minor typo
Branches
Unknown
Tags
Unknown