comparison 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
comparison
equal deleted inserted replaced
1313:be935f9b2ae6 1314:769d7890203b
509 } else if (s == maxSignificance && !light) { 509 } else if (s == maxSignificance && !light) {
510 mostSignificantHasDarkBackground = true; 510 mostSignificantHasDarkBackground = true;
511 } 511 }
512 } 512 }
513 513
514 if (int(maxSignificance) >= int(Layer::ColourAndBackgroundSignificant)) { 514 if (int(maxSignificance) >= int(Layer::ColourDistinguishes)) {
515 return !mostSignificantHasDarkBackground; 515 return !mostSignificantHasDarkBackground;
516 } else { 516 } else {
517 return !darkPalette; 517 return !darkPalette;
518 } 518 }
519 } 519 }