From db6dadad6c7e29a2903bbf35caeaacf5a6341135 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 26 Jul 2023 14:38:26 +0100 Subject: [PATCH] Fix capture comments styling of links --- qrenderdoc/Windows/CommentView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/CommentView.cpp b/qrenderdoc/Windows/CommentView.cpp index 35097882f..af953097e 100644 --- a/qrenderdoc/Windows/CommentView.cpp +++ b/qrenderdoc/Windows/CommentView.cpp @@ -89,7 +89,10 @@ CommentView::CommentView(ICaptureContext &ctx, QWidget *parent) }); m_commentsEditor->styleSetHotSpot(link_style, true); - m_commentsEditor->styleSetFore(link_style, SCINTILLA_COLOUR(0, 0, 255)); + QColor back = palette().base().color(); + QColor fore = palette().link().color(); + m_commentsEditor->styleSetBack(link_style, SCINTILLA_COLOUR(back.red(), back.green(), back.blue())); + m_commentsEditor->styleSetFore(link_style, SCINTILLA_COLOUR(fore.red(), fore.green(), fore.blue())); QObject::connect( m_commentsEditor, &ScintillaEdit::hotSpotClick, [this](int position, int modifiers) {