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:
@@ -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
|
||||
|
Reference in New Issue
Block a user