1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 08:38:39 +02:00

Fix compilation of EXPERIMENTAL_THEMING

This commit is contained in:
Paul Licameli 2016-04-27 10:49:19 -04:00
parent 3154b78b0f
commit 5474ff752d
2 changed files with 4 additions and 3 deletions

View File

@ -96,6 +96,8 @@ using std::max;
#define kTopInset 4
wxColour Ruler::mTickColour{ 153, 153, 153 };
//
// Ruler
//
@ -120,7 +122,6 @@ Ruler::Ruler()
mBottom = -1;
mbTicksOnly = true;
mbTicksAtExtremes = false;
mTickColour = wxColour(153,153,153);
mPen.SetColour(mTickColour);
// Note: the font size is now adjusted automatically whenever
@ -1572,7 +1573,7 @@ void Ruler::Label::Draw(wxDC&dc, bool twoTone) const
#ifdef EXPERIMENTAL_THEMING
// TODO: handle color distinction
mDC->SetTextForeground(mTickColour);
dc.SetTextForeground(mTickColour);
#else
dc.SetTextForeground(altColor ? *wxBLUE : *wxBLACK);
#endif

View File

@ -168,7 +168,7 @@ public:
wxRect mRect;
private:
wxColour mTickColour;
static wxColour mTickColour;
wxPen mPen;
int mMaxWidth, mMaxHeight;