Make color button swatches rectangular.

This commit is contained in:
Jim Evins
2016-05-17 23:55:07 -04:00
parent 669c1d02e7
commit 9feb56f5cf
+2 -1
View File
@@ -28,7 +28,7 @@
namespace
{
const int SWATCH_W = 24;
const int SWATCH_W = 64;
const int SWATCH_H = 24;
}
@@ -45,6 +45,7 @@ void ColorButton::init( const QString& defaultLabel, const QColor& defaultColor,
mColorNode = ColorNode( color );
setMinimumSize( QSize( 85, 34 ) );
setIconSize( QSize(SWATCH_W, SWATCH_H) );
setIcon( QIcon( ColorSwatch( SWATCH_W, SWATCH_H, color ) ) );
setText( "" );