| 84 | } |
| 85 | |
| 86 | void 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); |
no test coverage detected