From a44563fd4df675be968cb899b559ab6d58a54db6 Mon Sep 17 00:00:00 2001 From: jonathanlurie Date: Mon, 26 May 2025 15:22:03 +0200 Subject: [PATCH] shorter gradient --- src/core/processing/qgsprocessingoutputs.cpp | 4 ++-- src/core/processing/qgsprocessingparameters.h | 8 ++++---- src/gui/processing/models/qgsmodelarrowitem.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/processing/qgsprocessingoutputs.cpp b/src/core/processing/qgsprocessingoutputs.cpp index 3ac4cda3999..949763588c6 100644 --- a/src/core/processing/qgsprocessingoutputs.cpp +++ b/src/core/processing/qgsprocessingoutputs.cpp @@ -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 ) diff --git a/src/core/processing/qgsprocessingparameters.h b/src/core/processing/qgsprocessingparameters.h index dfa0e536656..0eeb4f65d45 100644 --- a/src/core/processing/qgsprocessingparameters.h +++ b/src/core/processing/qgsprocessingparameters.h @@ -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. diff --git a/src/gui/processing/models/qgsmodelarrowitem.cpp b/src/gui/processing/models/qgsmodelarrowitem.cpp index 8a96ae8cec2..69901edfa31 100644 --- a/src/gui/processing/models/qgsmodelarrowitem.cpp +++ b/src/gui/processing/models/qgsmodelarrowitem.cpp @@ -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 );