Commit 11ed6456 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

lsp gotosymboldialog: select first row + fix highlight color

For highlight color, editor color is used now. This fixes the look with
light color scheme and dark editor theme.
Signed-off-by: Waqar Ahmed's avatarWaqar Ahmed <>
parent 31f0e286
Pipeline #70091 passed with stage
in 6 minutes and 6 seconds
......@@ -198,8 +198,10 @@ void GotoSymbolHUDDialog::setPaletteToEditorColors()
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::TextSelection));
pal.setColor(QPalette::Base, bg);
pal.setColor(QPalette::Text, fg);
pal.setColor(QPalette::Highlight, hl);
......@@ -271,6 +273,7 @@ void GotoSymbolHUDDialog::slotTextChanged(const QString &text)
item->setData(QVariant::fromValue(GotoSymbolItem{sym.url, sym.range.start(), sym.kind}), SymbolInfoRole);
m_treeView.setCurrentIndex(model->index(0, 0));
server->workspaceSymbol(text, this, hh);
Supports Markdown
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