<table><tr><td style="">tristanp created this revision.<br />Herald added a project: KDevelop.<br />Herald added a subscriber: kdevelop-devel.<br />tristanp requested review of this revision.
</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/D22158">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Previously the navigation context (tool displaying information about<br />
code) was using fix white color theme. This was nice for people using<br />
light themes but for dark themes it looked like a lighhouse in the night.</p>

<p>The solution proposed is to use colors from the common theme for<br />
background but also for text and code displayed in the tool panel.<br />
These colors are supposed to be contrasted enought and readable.</p>

<p>Modifications are limited to AbstractNavigationContext and sub classes.<br />
AbstractNavigationContext hold a ColorizerTheme containing colors<br />
named as before (m_typeHighlight, m_positionHighlight, ...), this theme<br />
is retrieved from AbstractNavigationContext::theme() and every usage<br />
of xxxHiglight(string) is replaced by theme().m_xxxHiglight(string).</p>

<p>Theme initialisation is proceeded into AbstractNavigationContext constructor<br />
with a KColorScheme.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>declaration_helper_color_theme</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22158">https://phabricator.kde.org/D22158</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/language/duchain/navigation/abstractdeclarationnavigationcontext.cpp<br />
kdevplatform/language/duchain/navigation/abstractincludenavigationcontext.cpp<br />
kdevplatform/language/duchain/navigation/abstractnavigationcontext.cpp<br />
kdevplatform/language/duchain/navigation/abstractnavigationcontext.h<br />
kdevplatform/language/duchain/navigation/abstractnavigationwidget.cpp<br />
kdevplatform/language/duchain/navigation/problemnavigationcontext.cpp<br />
kdevplatform/language/duchain/navigation/usesnavigationcontext.cpp<br />
plugins/clang/duchain/macronavigationcontext.cpp<br />
plugins/qmljs/duchain/navigation/declarationnavigationcontext.cpp</div></div></div><br /><div><strong>To: </strong>tristanp<br /><strong>Cc: </strong>kdevelop-devel, hmitonneau, christiant, glebaccon, domson, antismap, iodelay, alexeymin, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>