| 538 | } |
| 539 | |
| 540 | void AColor::Init() |
| 541 | { |
| 542 | if (inited) |
| 543 | return; |
| 544 | |
| 545 | wxColour light = theTheme.Colour( clrLight ); |
| 546 | // wxSystemSettings::GetColour(wxSYS_COLOUR_3DHIGHLIGHT); |
| 547 | wxColour med = theTheme.Colour( clrMedium ); |
| 548 | // wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE); |
| 549 | wxColour dark = theTheme.Colour( clrDark ); |
| 550 | // wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW); |
| 551 | |
| 552 | wxColour lightSelected = theTheme.Colour( clrLightSelected ); |
| 553 | wxColour medSelected = theTheme.Colour( clrMediumSelected ); |
| 554 | wxColour darkSelected = theTheme.Colour( clrDarkSelected ); |
| 555 | |
| 556 | |
| 557 | clippingPen.SetColour(0xCC, 0x11, 0x00); |
| 558 | |
| 559 | theTheme.SetPenColour( envelopePen, clrEnvelope ); |
| 560 | theTheme.SetPenColour( WideEnvelopePen, clrEnvelope ); |
| 561 | theTheme.SetBrushColour( envelopeBrush, clrEnvelope ); |
| 562 | |
| 563 | WideEnvelopePen.SetWidth( 3 ); |
| 564 | |
| 565 | theTheme.SetBrushColour( labelTextNormalBrush, clrLabelTextNormalBrush ); |
| 566 | theTheme.SetBrushColour( labelTextEditBrush, clrLabelTextEditBrush ); |
| 567 | theTheme.SetBrushColour( labelUnselectedBrush, clrLabelUnselectedBrush ); |
| 568 | theTheme.SetBrushColour( labelSelectedBrush, clrLabelSelectedBrush ); |
| 569 | theTheme.SetBrushColour( labelSyncLockSelBrush, clrSyncLockSel ); |
| 570 | theTheme.SetPenColour( labelSyncLockSelPen, clrSyncLockSel ); |
| 571 | theTheme.SetPenColour( labelSurroundPen, clrLabelSurroundPen ); |
| 572 | |
| 573 | // These colors were modified to avoid using reserved colors red and green |
| 574 | // for the buttons. |
| 575 | theTheme.SetBrushColour( muteBrush[0], clrMuteButtonActive); |
| 576 | theTheme.SetBrushColour( muteBrush[1], clrMuteButtonVetoed); |
| 577 | theTheme.SetBrushColour( soloBrush, clrMuteButtonActive); |
| 578 | |
| 579 | cursorPen.SetColour( CursorColour() ); |
| 580 | theTheme.SetPenColour( indicatorPen[0], clrRecordingPen); |
| 581 | theTheme.SetPenColour( indicatorPen[1], clrPlaybackPen); |
| 582 | theTheme.SetBrushColour( indicatorBrush[0], clrRecordingBrush); |
| 583 | theTheme.SetBrushColour( indicatorBrush[1], clrPlaybackBrush); |
| 584 | |
| 585 | theTheme.SetBrushColour( playRegionBrush[0],clrRulerRecordingBrush); |
| 586 | |
| 587 | //Determine tooltip color |
| 588 | tooltipPen.SetColour( wxSystemSettingsNative::GetColour(wxSYS_COLOUR_INFOTEXT) ); |
| 589 | tooltipBrush.SetColour( wxSystemSettingsNative::GetColour(wxSYS_COLOUR_INFOBK) ); |
| 590 | |
| 591 | uglyPen.SetColour( wxColour{ 0, 255, 0 } ); // saturated green |
| 592 | uglyBrush.SetColour( wxColour{ 255, 0, 255 } ); // saturated magenta |
| 593 | |
| 594 | // A tiny gradient of yellow surrounding the current focused track |
| 595 | theTheme.SetPenColour( trackFocusPens[0], clrTrackFocus0); |
| 596 | theTheme.SetPenColour( trackFocusPens[1], clrTrackFocus1); |
| 597 | theTheme.SetPenColour( trackFocusPens[2], clrTrackFocus2); |
nothing calls this directly
no test coverage detected