diff src/colourset.cpp @ 395:a09d5ffe165c item_appearance_adjustments

Make colour selection for branches and authors more headache-inducing^W^Wcheerful
author Chris Cannam
date Tue, 24 May 2011 17:59:18 +0100
parents b9c153e00e84
children 533519ebc0cb
line wrap: on
line diff
--- 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;