Commit 92750179 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Diff: set alpha on selection color

So that we can see red/green bg with selection
parent 4a9aae40
......@@ -34,6 +34,11 @@ DiffEditor::DiffEditor(DiffParams::Flags f, QWidget *parent)
auto pal = palette();
pal.setColor(QPalette::Base, bg);
pal.setColor(QPalette::Text, fg);
// set a small alpha to be able to see the red/green bg
// with selection
if (fg.alpha() == 255) {
pal.setColor(QPalette::Highlight, sel);
pal.setColor(QPalette::HighlightedText, fg);
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