comparison 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
comparison
equal deleted inserted replaced
880:dd95abfe736c 881:6a590241d8ad
109 if (m_above == 0 || m_below == 0 || !m_manager) return; 109 if (m_above == 0 || m_below == 0 || !m_manager) return;
110 110
111 bool darkPalette = false; 111 bool darkPalette = false;
112 if (m_manager) darkPalette = m_manager->getGlobalDarkBackground(); 112 if (m_manager) darkPalette = m_manager->getGlobalDarkBackground();
113 113
114 QColor fg = Qt::black, bg = Qt::white; 114 QColor fg, bg;
115 if (darkPalette) std::swap(fg, bg); 115 if (darkPalette) {
116 fg = Qt::gray;
117 bg = Qt::black;
118 } else {
119 fg = Qt::black;
120 bg = Qt::gray;
121 }
116 122
117 QPainter paint(this); 123 QPainter paint(this);
118 paint.setPen(QPen(fg, 2)); 124 paint.setPen(QPen(fg, 2));
119 paint.setBrush(Qt::NoBrush); 125 paint.setBrush(Qt::NoBrush);
120 paint.setRenderHint(QPainter::Antialiasing, true); 126 paint.setRenderHint(QPainter::Antialiasing, true);