mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-31 17:08:45 +01:00
Increase upper limits on slider widths in resizable toolbars.
Worth doing for users with wide screens, who want to use the toolbar at full screen width. Both toolbars can now expand to a little over 2000 pixels width. Note that the max sizes affect what is drawn. You can make the toolbars wider still, but the sliders inside them won't continue to lengthen.
This commit is contained in:
@@ -82,6 +82,7 @@ void MixerToolBar::Populate()
|
||||
wxDefaultPosition, wxSize(130, 25),
|
||||
ASlider::Options{}.Line( 0.1f ).Page( 2.0f ));
|
||||
Add(mInputSlider, 1, wxALIGN_CENTER);
|
||||
mInputSlider->SetSizeHints(wxSize(75, 25), wxSize(1000, 25));
|
||||
|
||||
// Playback icon and slider
|
||||
Add(safenew AStaticBitmap(this,
|
||||
@@ -91,9 +92,7 @@ void MixerToolBar::Populate()
|
||||
wxDefaultPosition, wxSize(130, 25),
|
||||
ASlider::Options{}.Line( 0.1f ).Page( 2.0f ));
|
||||
Add(mOutputSlider, 1, wxALIGN_CENTER);
|
||||
|
||||
mInputSlider->SetSizeHints( wxSize(75, 25), wxSize(500, 25));
|
||||
mOutputSlider->SetSizeHints(wxSize(75, 25), wxSize(500, 25));
|
||||
mOutputSlider->SetSizeHints(wxSize(75, 25), wxSize(1000, 25));
|
||||
|
||||
// this bit taken from SelectionBar::Populate()
|
||||
mInputSlider->Bind(wxEVT_SET_FOCUS,
|
||||
|
||||
@@ -204,7 +204,7 @@ void TranscriptionToolBar::Populate()
|
||||
.Line( 0.16667f )
|
||||
.Page( 0.16667f )
|
||||
);
|
||||
mPlaySpeedSlider->SetSizeHints(wxSize(100, 25), wxSize(1000, 25));
|
||||
mPlaySpeedSlider->SetSizeHints(wxSize(100, 25), wxSize(2000, 25));
|
||||
mPlaySpeedSlider->Set(mPlaySpeed / 100.0);
|
||||
mPlaySpeedSlider->SetLabel(_("Playback Speed"));
|
||||
Add( mPlaySpeedSlider, 1, wxALIGN_CENTER );
|
||||
|
||||
Reference in New Issue
Block a user