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:
parent
3154b78b0f
commit
5474ff752d
@ -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
|
||||
|
@ -168,7 +168,7 @@ public:
|
||||
wxRect mRect;
|
||||
|
||||
private:
|
||||
wxColour mTickColour;
|
||||
static wxColour mTickColour;
|
||||
wxPen mPen;
|
||||
|
||||
int mMaxWidth, mMaxHeight;
|
||||
|
Loading…
x
Reference in New Issue
Block a user