MCPcopy Create free account
hub / github.com/audacity/audacity / SetColours

Method SetColours

src/TrackArtist.cpp:86–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void TrackArtist::SetColours( int iColorIndex)
87{
88 theTheme.SetBrushColour( blankBrush, clrBlank );
89 theTheme.SetBrushColour( unselectedBrush, clrUnselected);
90 theTheme.SetBrushColour( selectedBrush, clrSelected);
91 theTheme.SetBrushColour( sampleBrush, clrSample);
92 theTheme.SetBrushColour( selsampleBrush, clrSelSample);
93 theTheme.SetBrushColour( dragsampleBrush, clrDragSample);
94 theTheme.SetBrushColour( blankSelectedBrush, clrBlankSelected);
95 theTheme.SetBrushColour( envelopeBackgroundBrush, clrEnvelopeBackground);
96 theTheme.SetBrushColour( clipAffordanceBackgroundBrush, clrBlank);
97 theTheme.SetBrushColour( clipAffordanceBackgroundSelBrush, clrBlankSelected);
98
99 theTheme.SetPenColour( blankPen, clrBlank);
100 theTheme.SetPenColour( unselectedPen, clrUnselected);
101 theTheme.SetPenColour( selectedPen, clrSelected);
102 theTheme.SetPenColour( muteSamplePen, clrMuteSample);
103 theTheme.SetPenColour( odProgressDonePen, clrProgressDone);
104 theTheme.SetPenColour( odProgressNotYetPen, clrProgressNotYet);
105 theTheme.SetPenColour( clippedPen, clrClipped);
106 theTheme.SetPenColour( muteClippedPen, clrMuteClipped);
107 theTheme.SetPenColour( blankSelectedPen,clrBlankSelected);
108
109 theTheme.SetPenColour( selsamplePen, clrSelSample);
110 theTheme.SetPenColour( muteRmsPen, clrMuteRms);
111
112 theTheme.SetPenColour( beatSepearatorPen[0], clrBeatSeparatorPen );
113 theTheme.SetPenColour( beatSepearatorPen[1], clrBeatSeparatorPen );
114 theTheme.SetPenColour( barSepearatorPen[0], clrBarSeparatorPen );
115 theTheme.SetPenColour( barSepearatorPen[1], clrBarSeparatorPen );
116 theTheme.SetBrushColour( beatStrongBrush[0], clrBeatFillStrongBrush );
117 theTheme.SetBrushColour( beatStrongBrush[1], clrBeatFillStrongBrush );
118 theTheme.SetBrushColour( beatWeakBrush[0], clrBeatFillWeakBrush );
119 theTheme.SetBrushColour( beatWeakBrush[1], clrBeatFillWeakBrush );
120 theTheme.SetBrushColour( beatStrongSelBrush[0], clrBeatFillStrongSelBrush );
121 theTheme.SetBrushColour( beatStrongSelBrush[1], clrBeatFillStrongSelBrush );
122 theTheme.SetBrushColour( beatWeakSelBrush[0], clrBeatFillWeakSelBrush );
123 theTheme.SetBrushColour( beatWeakSelBrush[1], clrBeatFillWeakSelBrush );
124
125 ChangeLightness(beatSepearatorPen[1], 90);
126 ChangeLightness(barSepearatorPen[1], 90);
127 ChangeLightness(beatStrongBrush[1], 90);
128 ChangeLightness(beatWeakBrush[1], 90);
129 ChangeLightness(beatStrongSelBrush[1], 90);
130 ChangeLightness(beatWeakSelBrush[1], 90);
131 ChangeLightness(clipAffordanceBackgroundBrush, 90 );
132 ChangeLightness(clipAffordanceBackgroundSelBrush, 90);
133
134 switch( iColorIndex %4 )
135 {
136 default:
137 case 0:
138 theTheme.SetPenColour( samplePen, clrSample);
139 theTheme.SetPenColour( rmsPen, clrRms);
140 break;
141 case 1: // RED
142 theTheme.SetPenColour( samplePen, clrSample2);
143 theTheme.SetPenColour( rmsPen, clrRms2);

Callers 1

DrawClipWaveformFunction · 0.80

Calls 3

ChangeLightnessFunction · 0.85
SetBrushColourMethod · 0.80
SetPenColourMethod · 0.80

Tested by

no test coverage detected