# HG changeset patch # User Chris Cannam # Date 1306256358 -3600 # Node ID a09d5ffe165c309f02ae84f30f92e37cb511579a # Parent 27757ce9c76cdc1a12230ac812aabe560970dfa5 Make colour selection for branches and authors more headache-inducing^W^Wcheerful diff -r 27757ce9c76c -r a09d5ffe165c src/colourset.cpp --- a/src/colourset.cpp Tue May 24 17:47:46 2011 +0100 +++ b/src/colourset.cpp Tue May 24 17:59:18 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;