using a more interesting gradient
This commit is contained in:
parent
2392f458af
commit
877f4151bc
|
@ -63,7 +63,7 @@ namespace
|
||||||
{ { 0.5, QskRgb::MediumVioletRed }, { 0.5, QskRgb::Navy } };
|
{ { 0.5, QskRgb::MediumVioletRed }, { 0.5, QskRgb::Navy } };
|
||||||
|
|
||||||
QskGradient gradient( stops );
|
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 );
|
shapeItem->setGradient( gradient );
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ Qsk.Window
|
||||||
|
|
||||||
gradient:
|
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: [
|
stops: [
|
||||||
{ position: 0.5, color: "MediumVioletRed" },
|
{ position: 0.5, color: "MediumVioletRed" },
|
||||||
|
|
Loading…
Reference in New Issue