Skip to content

Commit

Permalink
Fix capture comments styling of links
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Jul 26, 2023
1 parent 1033adc commit db6dada
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qrenderdoc/Windows/CommentView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit db6dada

Please sign in to comment.