Commit ff1eb3a9 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Initial palette change for search toolview

parent 888aae54
......@@ -175,6 +175,18 @@ Results::Results(QWidget *parent)
treeView->setItemDelegate(new SPHtmlDelegate(treeView));
treeView->setModel(&matchModel);
auto e = KTextEditor::Editor::instance();
auto bg = QColor::fromRgba(e->theme().editorColor(KSyntaxHighlighting::Theme::BackgroundColor));
auto fg = QColor::fromRgba(e->theme().textColor(KSyntaxHighlighting::Theme::Normal));
auto hl = QColor::fromRgba(e->theme().editorColor(KSyntaxHighlighting::Theme::CurrentLine));
auto pal = treeView->palette();
pal.setColor(QPalette::Base, bg);
pal.setColor(QPalette::Highlight, hl);
pal.setColor(QPalette::Text, fg);
pal.setColor(QPalette::HighlightedText, fg);
treeView->setPalette(pal);
}
K_PLUGIN_FACTORY_WITH_JSON(KatePluginSearchFactory, "katesearch.json", registerPlugin<KatePluginSearch>();)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment