From cc7c659d6eaa5c3ead27766d4f444d8955e67502 Mon Sep 17 00:00:00 2001 From: akleja Date: Wed, 4 Aug 2021 17:43:04 +0200 Subject: [PATCH] Allow small color differences Makes the theme respond better to system colors Signed-off-by: akleja --- src/Theme.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Theme.cpp b/src/Theme.cpp index 4a43206ce..07d2f0da1 100644 --- a/src/Theme.cpp +++ b/src/Theme.cpp @@ -353,18 +353,12 @@ void ThemeBase::RecolourTheme() #else wxColour To = wxSystemSettings::GetColour( wxSYS_COLOUR_3DFACE ); #endif - // only recolour if recolouring is slight. - int d = ColourDistance( From, To ); // Don't recolour if difference is too big. + int d = ColourDistance( From, To ); if( d > 120 ) return; - // A minor tint difference from standard does not need - // to be recouloured either. Includes case of d==0 which is nothing - // needs to be done. - if( d < 40 ) - return; Colour( clrMedium ) = To; RecolourBitmap( bmpUpButtonLarge, From, To );