Magic numbers for view height.

This commit is contained in:
Teo Mrnjavac 2015-12-11 17:38:31 +01:00
parent df9cec14f7
commit 517f958616

View File

@ -33,7 +33,8 @@
#include <QPainter>
static const int VIEW_HEIGHT = CalamaresUtils::defaultFontHeight() + 8;
static const int VIEW_HEIGHT = qMax( CalamaresUtils::defaultFontHeight() + 8, // wins out with big fonts
(int)( CalamaresUtils::defaultFontHeight() * 0.6 ) + 22 ); // wins out with small fonts
static const int CORNER_RADIUS = 3;
static const int EXTENDED_PARTITION_MARGIN = qMax( 4, VIEW_HEIGHT / 6 );