diff view/AlignmentView.cpp @ 881:6a590241d8ad alignment_view

Grey lines in alignment view; chords for salient features
author Chris Cannam
date Fri, 21 Nov 2014 12:49:20 +0000
parents 99299949f965
children c0549bf12973
line wrap: on
line diff
--- a/view/AlignmentView.cpp	Fri Nov 21 11:48:21 2014 +0000
+++ b/view/AlignmentView.cpp	Fri Nov 21 12:49:20 2014 +0000
@@ -111,8 +111,14 @@
     bool darkPalette = false;
     if (m_manager) darkPalette = m_manager->getGlobalDarkBackground();
 
-    QColor fg = Qt::black, bg = Qt::white;
-    if (darkPalette) std::swap(fg, bg);
+    QColor fg, bg;
+    if (darkPalette) {
+        fg = Qt::gray;
+        bg = Qt::black;
+    } else {
+        fg = Qt::black;
+        bg = Qt::gray;
+    }
 
     QPainter paint(this);
     paint.setPen(QPen(fg, 2));