improve selection colors (#976)

This commit is contained in:
Itay Cohen 2018-12-03 13:45:49 +02:00 committed by GitHub
parent 870907e669
commit 33339a00df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;