1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 22:12:58 +02:00

Make SelectionBar end/length radio buttons behave normally

They had lost the focus/voice-over functionality because I added code to draw them in the
theme colour.  Now I disable that code, IF recolouring is both set and active.  This will happen
for example, if Hi-Contrast is used with the Hi-Contrast system theme.
This commit is contained in:
James Crook
2017-04-26 15:35:57 +01:00
parent 2cc39d791f
commit 6bcbe417e9
3 changed files with 29 additions and 13 deletions

View File

@@ -282,6 +282,7 @@ void Theme::RegisterColours()
ThemeBase::ThemeBase(void)
{
bRecolourOnLoad = false;
bRecolouringIsActive = false;
}
ThemeBase::~ThemeBase(void)
@@ -321,6 +322,7 @@ void ThemeBase::LoadTheme( teThemeType Theme )
CreateImageCache();
#endif
}
bRecolouringIsActive = false;
if( bRecolourOnLoad )
RecolourTheme();
bRecolourOnLoad = false;
@@ -356,9 +358,10 @@ void ThemeBase::RecolourTheme()
+ abs( From.Green() - To.Green() )
+ abs( From.Blue() - To.Blue() );
// Don't recolour if difference is too big, or no difference.
// Don't recolour if difference is too big.
if( d > 120 )
return;
bRecolouringIsActive = true;
// A minor tint difference from standard does not need
// to be recouloured either. Includes case of d==0 which is nothing