From 877f4151bce631be3eedcc58aaed0476a85deba5 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 22 Dec 2022 20:43:19 +0100 Subject: [PATCH] using a more interesting gradient --- playground/shapes/Window.cpp | 2 +- playground/shapes/shapes.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/shapes/Window.cpp b/playground/shapes/Window.cpp index da30217e..3fa17b6d 100644 --- a/playground/shapes/Window.cpp +++ b/playground/shapes/Window.cpp @@ -63,7 +63,7 @@ namespace { { 0.5, QskRgb::MediumVioletRed }, { 0.5, QskRgb::Navy } }; QskGradient gradient( stops ); - gradient.setLinearDirection( 0.5, 0.0, 0.5, 0.5 ); + gradient.setLinearDirection( 0.3, 0.7, 0.75, 0.3 ); shapeItem->setGradient( gradient ); } diff --git a/playground/shapes/shapes.qml b/playground/shapes/shapes.qml index aa029e1b..c609a157 100644 --- a/playground/shapes/shapes.qml +++ b/playground/shapes/shapes.qml @@ -60,7 +60,7 @@ Qsk.Window gradient: ({ - linear: { x1: 0.5, y1: 0, x2: 0.5, y2: 0.5 }, + linear: { x1: 0.3, y1: 0.7, x2: 0.75, y2: 0.3 }, stops: [ { position: 0.5, color: "MediumVioletRed" },