D23515: Format class: add functions to know if XML files set style attributes
noreply at phabricator.kde.org
Fri Aug 30 19:30:45 BST 2019
dhaumann added a comment.
I believe you still need the hasTextColorOverride etc. hasTextColor is different and matches from the meaning isBold etc.
Background: The styleOverrides are yet another concept: if the user changes a color of a highlighting in the Highlighting Text Styles tab, then the style override is active. See http://blog.case.edu/bmb12/2007/03/06/kate_styles.png
That is: the style overrides are part of a Theme and typically only exist for Themes where the user changed colors.
But: Since the port to KSyntaxHighlighting::Theme is still not done, this currently is not used (iirc ???) in KTextEditor...
To make it short: if you want to know whether the colors are hardcoded, you also need the additional hasXxOverride() functions.
R216 Syntax Highlighting
To: nibags, #framework_syntax_highlighting, dhaumann, cullmann, vkrause
Cc: kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KWrite-Devel