mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Frequency selected part of spectrum is now yellowish. Was too dark previously.
This commit is contained in:
parent
13298001e4
commit
f8732c96dc
@ -613,6 +613,16 @@ void AColor::PreComputeGradient() {
|
||||
// not dimmed
|
||||
break;
|
||||
|
||||
case ColorGradientTimeAndFrequencySelected:
|
||||
if( !grayscale )
|
||||
{
|
||||
// flip the blue, makes spectrogram more yellow.
|
||||
b = 1.0f - 0.75f * b;
|
||||
break;
|
||||
}
|
||||
// else fall through to SAME grayscale colour as normal selection.
|
||||
// The white lines show it up clearly enough.
|
||||
|
||||
case ColorGradientTimeSelected:
|
||||
// partly dimmed
|
||||
r *= 0.75f;
|
||||
@ -620,12 +630,6 @@ void AColor::PreComputeGradient() {
|
||||
b *= 0.75f;
|
||||
break;
|
||||
|
||||
case ColorGradientTimeAndFrequencySelected:
|
||||
// fully dimmed
|
||||
r *= 0.5f;
|
||||
g *= 0.5f;
|
||||
b *= 0.5f;
|
||||
break;
|
||||
|
||||
// For now edge colour is just black (or white if grey-scale)
|
||||
// Later we might invert or something else funky.
|
||||
|
Loading…
x
Reference in New Issue
Block a user