Mercurial > hg > svgui
diff view/View.cpp @ 1314:769d7890203b
Layers such as time-value layers with ColourDistinguishes property should use the dark background when a bright colour is selected. This is how it was always supposed to work, I think, but I broke it so long ago that this "fix" might itself come across as a surprising breaking change
author | Chris Cannam |
---|---|
date | Wed, 04 Jul 2018 15:33:47 +0100 |
parents | 61418c112281 |
children | 13d9b422f7fe 5ac1c323ac55 |
line wrap: on
line diff
--- a/view/View.cpp Thu Jun 28 14:48:35 2018 +0100 +++ b/view/View.cpp Wed Jul 04 15:33:47 2018 +0100 @@ -511,7 +511,7 @@ } } - if (int(maxSignificance) >= int(Layer::ColourAndBackgroundSignificant)) { + if (int(maxSignificance) >= int(Layer::ColourDistinguishes)) { return !mostSignificantHasDarkBackground; } else { return !darkPalette;