<table><tr><td style="">dhaumann added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23515">View Revision</a></tr></table><br /><div><div><p>I believe you still need the hasTextColorOverride etc. hasTextColor is different and matches from the meaning isBold etc.</p>
<p>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 <a href="http://blog.case.edu/bmb12/2007/03/06/kate_styles.png" class="remarkup-link" target="_blank" rel="noreferrer">http://blog.case.edu/bmb12/2007/03/06/kate_styles.png</a><br />
That is: the style overrides are part of a Theme and typically only exist for Themes where the user changed colors.</p>
<p>But: Since the port to KSyntaxHighlighting::Theme is still not done, this currently is not used (iirc ???) in KTextEditor...</p>
<p>To make it short: if you want to know whether the colors are hardcoded, you also need the additional hasXxOverride() functions.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23515">https://phabricator.kde.org/D23515</a></div></div><br /><div><strong>To: </strong>nibags, Framework: Syntax Highlighting, dhaumann, cullmann, vkrause<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>