Skip to content

Commit

Permalink
Parsing colors is slow
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 190ee53 commit e379f94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgsgeometryvalidationdock.cpp
Expand Up @@ -60,7 +60,7 @@ QgsGeometryValidationDock::QgsGeometryValidationDock( const QString &title, QgsM
mFeatureRubberband->setWidth( scaleFactor );
mFeatureRubberband->setStrokeColor( QColor( 100, 255, 100, 100 ) );

mErrorRubberband->setColor( QColor( "#ffee58ff" ) );
mErrorRubberband->setColor( QColor( 255, 238, 88, 255 ) );
mErrorRubberband->setWidth( scaleFactor );

mErrorLocationRubberband->setIcon( QgsRubberBand::ICON_X );
Expand Down Expand Up @@ -332,8 +332,8 @@ void QgsGeometryValidationDock::showHighlight( const QModelIndex &current )
mErrorRubberband->update();
} );

errorAnimation->setStartValue( QColor( "#ffee58ff" ) );
errorAnimation->setEndValue( QColor( "#ffee5800" ) );
errorAnimation->setStartValue( QColor( 255, 238, 88, 255 ) );
errorAnimation->setEndValue( QColor( 255, 238, 88, 0 ) );

errorAnimation->setDuration( 2000 );
errorAnimation->start();
Expand Down

0 comments on commit e379f94

Please sign in to comment.