Skip to content

Commit 35e3eac

Browse files
committedSep 17, 2014
Fix height of color icon on color buttons in windows
1 parent a7a1bee commit 35e3eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/qgscolorbuttonv2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
554554
this );
555555
//make sure height of icon looks good under different platforms
556556
#ifdef Q_WS_WIN
557-
mIconSize = QSize( buttonSize.width() - 10, height() - 14 );
557+
mIconSize = QSize( buttonSize.width() - 10, height() - 6 );
558558
#else
559559
mIconSize = QSize( buttonSize.width() - 10, height() - 12 );
560560
#endif
@@ -565,7 +565,7 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
565565
{
566566
//no menu
567567
#ifdef Q_WS_WIN
568-
currentIconSize = QSize( width() - 10, height() - 14 );
568+
currentIconSize = QSize( width() - 10, height() - 6 );
569569
#else
570570
currentIconSize = QSize( width() - 10, height() - 12 );
571571
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.