Mercurial > hg > easyhg
diff src/colourset.cpp @ 400:07eaf4e6003a
Merge from branch "item_appearance_adjustments"
author | Chris Cannam |
---|---|
date | Wed, 25 May 2011 14:59:09 +0100 |
parents | a09d5ffe165c |
children | 533519ebc0cb |
line wrap: on
line diff
--- a/src/colourset.cpp Tue May 24 13:29:27 2011 +0100 +++ b/src/colourset.cpp Wed May 25 14:59:09 2011 +0100 @@ -38,9 +38,11 @@ QColor c; if (m_colours.empty()) { - c = QColor::fromHsv(0, 200, 100); + c = QColor::fromHsv(0, 200, 150); } else { - c = QColor::fromHsv((m_lastColour.hue() + 70) % 360, 200, 100); + int hue = m_lastColour.hue() - 130; + if (hue < 0) hue += 360; + c = QColor::fromHsv(hue, 200, 150); } m_colours[n] = c;