From 33339a00dfaa641d7b5667a4eab3d16eb869779a Mon Sep 17 00:00:00 2001 From: Itay Cohen Date: Mon, 3 Dec 2018 13:45:49 +0200 Subject: [PATCH] improve selection colors (#976) --- src/widgets/DisassemblerGraphView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/widgets/DisassemblerGraphView.cpp b/src/widgets/DisassemblerGraphView.cpp index 8bb0dafe..625c1b48 100644 --- a/src/widgets/DisassemblerGraphView.cpp +++ b/src/widgets/DisassemblerGraphView.cpp @@ -510,8 +510,11 @@ void DisassemblerGraphView::drawBlock(QPainter &p, GraphView::GraphBlock &block) highlightWidth = block.width - widthBefore - (10 + 4 * charWidth); } + QColor selectionColor = disassemblySelectionColor.blue() > 160 ? QColor(179, 119, 214, 50) : + QColor(52, 58, 71, 255); + p.fillRect(QRect(block.x + charWidth * 3 + widthBefore, y, highlightWidth, - charHeight), disassemblySelectionColor.lighter(250)); + charHeight), selectionColor); } y += int(instr.text.lines.size()) * charHeight;