mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +02:00
Bug 2694 - Coloring of tracks in Mixer Board are awry
This commit is contained in:
parent
988e90ea54
commit
811065cff4
@ -1532,6 +1532,15 @@ void LWSlider::Refresh()
|
|||||||
mParent->Refresh(false);
|
mParent->Refresh(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LWSlider::Redraw()
|
||||||
|
{
|
||||||
|
mBitmap.reset();
|
||||||
|
mThumbBitmap.reset();
|
||||||
|
mThumbBitmapHilited.reset();
|
||||||
|
|
||||||
|
Refresh();
|
||||||
|
}
|
||||||
|
|
||||||
bool LWSlider::GetEnabled() const
|
bool LWSlider::GetEnabled() const
|
||||||
{
|
{
|
||||||
return mEnabled;
|
return mEnabled;
|
||||||
@ -1616,6 +1625,18 @@ ASlider::~ASlider()
|
|||||||
ReleaseMouse();
|
ReleaseMouse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ASlider::SetBackgroundColour(const wxColour& colour)
|
||||||
|
{
|
||||||
|
auto res = wxPanel::SetBackgroundColour(colour);
|
||||||
|
|
||||||
|
if (res && mLWSlider)
|
||||||
|
{
|
||||||
|
mLWSlider->Redraw();
|
||||||
|
}
|
||||||
|
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
void ASlider::OnSlider(wxCommandEvent &event)
|
void ASlider::OnSlider(wxCommandEvent &event)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -136,6 +136,7 @@ class LWSlider
|
|||||||
void OnMouseEvent(wxMouseEvent & event);
|
void OnMouseEvent(wxMouseEvent & event);
|
||||||
void OnKeyDown(wxKeyEvent & event);
|
void OnKeyDown(wxKeyEvent & event);
|
||||||
void Refresh();
|
void Refresh();
|
||||||
|
void Redraw();
|
||||||
|
|
||||||
bool ShowDialog();
|
bool ShowDialog();
|
||||||
bool ShowDialog(wxPoint pos);
|
bool ShowDialog(wxPoint pos);
|
||||||
@ -146,8 +147,6 @@ class LWSlider
|
|||||||
float GetMinValue() const;
|
float GetMinValue() const;
|
||||||
float GetMaxValue() const;
|
float GetMaxValue() const;
|
||||||
|
|
||||||
static void DeleteSharedTipPanel();
|
|
||||||
|
|
||||||
void SetParent(wxWindow *parent) { mParent = parent; }
|
void SetParent(wxWindow *parent) { mParent = parent; }
|
||||||
void SendUpdate(float newValue);
|
void SendUpdate(float newValue);
|
||||||
|
|
||||||
@ -272,6 +271,8 @@ class ASlider /* not final */ : public wxPanel
|
|||||||
|
|
||||||
void SetFocusFromKbd() override;
|
void SetFocusFromKbd() override;
|
||||||
|
|
||||||
|
bool SetBackgroundColour(const wxColour& colour) override;
|
||||||
|
|
||||||
void GetScroll(float & line, float & page);
|
void GetScroll(float & line, float & page);
|
||||||
void SetScroll(float line, float page);
|
void SetScroll(float line, float page);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user