1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-21 13:41:21 +01:00

Add some Right-To-Left language workarounds.

MixerBoard, LyricsWindow, Screenshot and most effects are now LTR in RTL locales.
Also added a pref so this can be overridden.  As RTL affects window creation, the language choice and this preference may only fully take effect after a restart of Audacity.
This commit is contained in:
James Crook
2018-08-10 15:35:06 +01:00
parent c95532012a
commit 7f96f85676
6 changed files with 21 additions and 0 deletions

View File

@@ -912,6 +912,7 @@ MixerBoard::MixerBoard(AudacityProject* pProject,
// mScrolledWindow->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW));
// #endif
mScrolledWindow->SetBackgroundColour( theTheme.Colour( clrMedium ) );
RTL_WORKAROUND(mScrolledWindow);
mScrolledWindow->SetScrollRate(10, 0); // no vertical scroll
mScrolledWindow->SetVirtualSize(size);