shorter gradient

This commit is contained in:
jonathanlurie 2025-05-26 15:22:03 +02:00
parent 5a121ceb95
commit a44563fd4d
3 changed files with 8 additions and 8 deletions

View File

@ -112,7 +112,7 @@ QString QgsProcessingOutputHtml::valueAsFormattedString( const QVariant &value,
QColor QgsProcessingOutputHtml::getColor() const
{
return QColor( 120, 100, 255 ); /* lavender blue */
return QColor( 255, 131, 23 ); /* orange */
}
QgsProcessingOutputNumber::QgsProcessingOutputNumber( const QString &name, const QString &description )
@ -148,7 +148,7 @@ QgsProcessingOutputString::QgsProcessingOutputString( const QString &name, const
QColor QgsProcessingOutputString::getColor() const
{
return QColor( 120, 100, 255 ); /* lavender blue */
return QColor( 255, 131, 23 ); /* orange */
}
QgsProcessingOutputBoolean::QgsProcessingOutputBoolean( const QString &name, const QString &description )

View File

@ -1832,7 +1832,7 @@ class CORE_EXPORT QgsProcessingParameterCrs : public QgsProcessingParameterDefin
/**
* A color to represent a crs parameter
*/
QColor getColor() const override { return QColor( 120, 100, 255 ); /* lavender blue */ };
QColor getColor() const override { return QColor( 255, 131, 23 ); /* orange */ };
/**
* Get a user friendly string representation of the provided parameter value.
@ -2989,7 +2989,7 @@ class CORE_EXPORT QgsProcessingParameterString : public QgsProcessingParameterDe
/**
* A color to represent a string parameter
*/
QColor getColor() const override { return QColor( 120, 100, 255 ); /* lavender blue */ };
QColor getColor() const override { return QColor( 255, 131, 23 ); /* orange */ };
/**
* Returns the type name for the parameter class.
@ -3085,7 +3085,7 @@ class CORE_EXPORT QgsProcessingParameterExpression : public QgsProcessingParamet
/**
* A color to represent an expression parameter
*/
QColor getColor() const override { return QColor( 120, 100, 255 ); /* lavender blue */ };
QColor getColor() const override { return QColor( 255, 131, 23 ); /* orange */ };
/**
* Returns the type name for the parameter class.
@ -4362,7 +4362,7 @@ class CORE_EXPORT QgsProcessingParameterDateTime : public QgsProcessingParameter
/**
* A color to represent a datetime parameter
*/
QColor getColor() const override { return QColor( 120, 100, 255 ); /* lavender blue */ };
QColor getColor() const override { return QColor( 255, 131, 23 ); /* orange */ };
/**
* Returns the type name for the parameter class.

View File

@ -125,8 +125,8 @@ void QgsModelArrowItem::paint( QPainter *painter, const QStyleOptionGraphicsItem
color.setAlpha( 255 );
QLinearGradient gradient;
QPointF startPoint = path().pointAtPercent( 0.0 );
QPointF endPoint = path().pointAtPercent( 1.0 );
QPointF startPoint = path().pointAtPercent( 0.3 );
QPointF endPoint = path().pointAtPercent( 0.7 );
gradient.setStart( startPoint );
gradient.setFinalStop( endPoint );
gradient.setColorAt( 0, color );