mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-14 16:46:28 +01:00
Sync with DarkAudacity
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <wx/settings.h> // for wxSystemSettings::GetColour and wxSystemSettings::GetMetric
|
||||
|
||||
#include "AColor.h"
|
||||
#include "AllThemeResources.h"
|
||||
#include "AudioIO.h"
|
||||
|
||||
#ifdef USE_MIDI
|
||||
@@ -175,8 +176,8 @@ MixerTrackCluster::MixerTrackCluster(wxWindow* parent,
|
||||
|
||||
SetName(mTrack->GetName());
|
||||
|
||||
this->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
||||
|
||||
//this->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
||||
this->SetBackgroundColour( theTheme.Colour( clrMedium ) );
|
||||
// Not sure why, but sizers weren't getting offset vertically,
|
||||
// probably because not using wxDefaultPosition,
|
||||
// so positions are calculated explicitly below, and sizers code was removed.
|
||||
@@ -190,6 +191,7 @@ MixerTrackCluster::MixerTrackCluster(wxWindow* parent,
|
||||
wxALIGN_CENTRE | wxST_NO_AUTORESIZE | wxSUNKEN_BORDER);
|
||||
//v Useful when different tracks are different colors, but not now.
|
||||
// mStaticText_TrackName->SetBackgroundColour(this->GetTrackColor());
|
||||
mStaticText_TrackName->SetForegroundColour(theTheme.Colour(clrTrackPanelText));
|
||||
|
||||
|
||||
// gain and velocity sliders at left (both in same place)
|
||||
@@ -895,11 +897,12 @@ MixerBoard::MixerBoard(AudacityProject* pProject,
|
||||
wxHSCROLL); // long style = wxHSCROLL | wxVSCROLL, const wxString& name = "scrolledWindow")
|
||||
|
||||
// Set background color to same as TrackPanel background.
|
||||
#ifdef EXPERIMENTAL_THEMING
|
||||
mScrolledWindow->SetBackgroundColour(this->GetParent()->GetBackgroundColour());
|
||||
#else
|
||||
mScrolledWindow->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW));
|
||||
#endif
|
||||
// #ifdef EXPERIMENTAL_THEMING
|
||||
// mScrolledWindow->SetBackgroundColour(this->GetParent()->GetBackgroundColour());
|
||||
// #else
|
||||
// mScrolledWindow->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW));
|
||||
// #endif
|
||||
mScrolledWindow->SetBackgroundColour( theTheme.Colour( clrMedium ) );
|
||||
|
||||
mScrolledWindow->SetScrollRate(10, 0); // no vertical scroll
|
||||
mScrolledWindow->SetVirtualSize(size);
|
||||
@@ -1296,6 +1299,7 @@ void MixerBoard::CreateMuteSoloImages()
|
||||
{
|
||||
// Much of this is taken from TrackLabel::DrawMuteSolo.
|
||||
wxMemoryDC dc;
|
||||
dc.SetTextForeground(theTheme.Colour(clrTrackPanelText));
|
||||
wxString str = _("Mute");
|
||||
int textWidth, textHeight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user