mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix height of color icon on color buttons in windows
This commit is contained in:
parent
a7a1bee5cc
commit
35e3eac73b
@ -554,7 +554,7 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
|
||||
this );
|
||||
//make sure height of icon looks good under different platforms
|
||||
#ifdef Q_WS_WIN
|
||||
mIconSize = QSize( buttonSize.width() - 10, height() - 14 );
|
||||
mIconSize = QSize( buttonSize.width() - 10, height() - 6 );
|
||||
#else
|
||||
mIconSize = QSize( buttonSize.width() - 10, height() - 12 );
|
||||
#endif
|
||||
@ -565,7 +565,7 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
|
||||
{
|
||||
//no menu
|
||||
#ifdef Q_WS_WIN
|
||||
currentIconSize = QSize( width() - 10, height() - 14 );
|
||||
currentIconSize = QSize( width() - 10, height() - 6 );
|
||||
#else
|
||||
currentIconSize = QSize( width() - 10, height() - 12 );
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user