Mercurial > hg > svgui
changeset 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 | dd95abfe736c |
children | c0549bf12973 |
files | view/AlignmentView.cpp |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
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));