Changeset View
Changeset View
Standalone View
Standalone View
src/search/katesearchbar.cpp
Show First 20 Lines • Show All 1551 Lines • ▼ Show 20 Line(s) | 1532 | { | |||
---|---|---|---|---|---|
1552 | } | 1552 | } | ||
1553 | qDeleteAll(m_hlRanges); | 1553 | qDeleteAll(m_hlRanges); | ||
1554 | m_hlRanges.clear(); | 1554 | m_hlRanges.clear(); | ||
1555 | return true; | 1555 | return true; | ||
1556 | } | 1556 | } | ||
1557 | 1557 | | |||
1558 | void KateSearchBar::updateHighlightColors() | 1558 | void KateSearchBar::updateHighlightColors() | ||
1559 | { | 1559 | { | ||
1560 | const QColor foregroundColor = m_view->defaultStyleAttribute(KTextEditor::dsNormal)->foreground().color(); | 1560 | const QColor foregroundColor = m_view->defaultStyleAttribute(KTextEditor::dsNormal)->selectedForeground().color(); | ||
1561 | const QColor &searchColor = m_view->renderer()->config()->searchHighlightColor(); | 1561 | const QColor &searchColor = m_view->renderer()->config()->searchHighlightColor(); | ||
1562 | const QColor &replaceColor = m_view->renderer()->config()->replaceHighlightColor(); | 1562 | const QColor &replaceColor = m_view->renderer()->config()->replaceHighlightColor(); | ||
1563 | 1563 | | |||
1564 | // init match attribute | 1564 | // init match attribute | ||
1565 | highlightMatchAttribute->setForeground(foregroundColor); | 1565 | highlightMatchAttribute->setForeground(foregroundColor); | ||
1566 | highlightMatchAttribute->setBackground(searchColor); | 1566 | highlightMatchAttribute->setBackground(searchColor); | ||
1567 | highlightMatchAttribute->dynamicAttribute(Attribute::ActivateMouseIn)->setBackground(searchColor); | 1567 | highlightMatchAttribute->dynamicAttribute(Attribute::ActivateMouseIn)->setBackground(searchColor); | ||
1568 | highlightMatchAttribute->dynamicAttribute(Attribute::ActivateMouseIn)->setForeground(foregroundColor); | 1568 | highlightMatchAttribute->dynamicAttribute(Attribute::ActivateMouseIn)->setForeground(foregroundColor); | ||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |