mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Add preference for Record being to new track.
This commit is contained in:
@@ -231,6 +231,7 @@ void Theme::EnsureInitialised()
|
||||
#endif
|
||||
|
||||
LoadPreferredTheme();
|
||||
|
||||
}
|
||||
|
||||
bool ThemeBase::LoadPreferredTheme()
|
||||
@@ -323,6 +324,9 @@ void ThemeBase::LoadTheme( teThemeType Theme )
|
||||
#endif
|
||||
}
|
||||
|
||||
RotateImageInto( bmpRecordBeside, bmpRecordBelow, false );
|
||||
RotateImageInto( bmpRecordBesideDisabled, bmpRecordBelowDisabled, false );
|
||||
|
||||
if( bRecolourOnLoad )
|
||||
RecolourTheme();
|
||||
|
||||
@@ -1220,4 +1224,9 @@ void ThemeBase::ReplaceImage( int iIndex, wxImage * pImage )
|
||||
Bitmap( iIndex ) = wxBitmap( *pImage );
|
||||
}
|
||||
|
||||
|
||||
void ThemeBase::RotateImageInto( int iTo, int iFrom, bool bClockwise )
|
||||
{
|
||||
wxImage img(theTheme.Bitmap( iFrom ).ConvertToImage() );
|
||||
wxImage img2 = img.Rotate90( bClockwise );
|
||||
ReplaceImage( iTo, &img2 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user