1
0
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:
James Crook
2017-05-01 11:46:12 +01:00
parent 623d0f29bf
commit 9d501f69d6
9 changed files with 66 additions and 31 deletions

View File

@@ -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 );
}