Increase size of error count badge to show up to 999 errors.

Fixes https://gitlab.com/kicad/code/kicad/issues/5535
This commit is contained in:
Jeff Young 2020-09-17 21:43:18 +01:00
parent e202dba386
commit 4d24c9d610
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ int KIUI::GetStdMargin()
}
#define BADGE_SIZE 20
#define BADGE_SIZE 24
#define BADGE_FONT_SIZE 10
wxBitmap MakeBadge( SEVERITY aStyle, int aCount, wxWindow* aWindow, int aDepth )
@ -53,9 +53,9 @@ wxBitmap MakeBadge( SEVERITY aStyle, int aCount, wxWindow* aWindow, int aDepth )
backColour = aWindow->GetParent()->GetBackgroundColour();
// Each level inside staticBoxes is darkened by 210
// Each level inside staticBoxes is darkened by 215
for( int i = 1; i < aDepth; ++i )
backColour = backColour.MakeDisabled( 210 );
backColour = backColour.MakeDisabled( 215 );
brush.SetColour( backColour );
badgeDC.SetBackground( brush );