summaryrefslogtreecommitdiffstats
path: root/examples/qmlsurface/qml/qmlsurface/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qmlsurface/qml/qmlsurface/main.qml')
-rw-r--r--examples/qmlsurface/qml/qmlsurface/main.qml11
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/qmlsurface/qml/qmlsurface/main.qml b/examples/qmlsurface/qml/qmlsurface/main.qml
index 7d83c1a0..758b0346 100644
--- a/examples/qmlsurface/qml/qmlsurface/main.qml
+++ b/examples/qmlsurface/qml/qmlsurface/main.qml
@@ -37,6 +37,12 @@ Item {
height: mainview.height
anchors.right: mainview.right;
+ Gradient {
+ id: surfaceGradient
+ GradientStop { position: 0.0; color: "darkslategray" }
+ GradientStop { position: 1.0; color: "peru" }
+ }
+
Surface3D {
id: surfaceplot
width: surfaceView.width
@@ -60,9 +66,10 @@ Item {
axisY.segmentCount: 5
axisY.subSegmentCount: 2
axisY.labelFormat: "%i"
+ //gradient: surfaceGradient
Component.onCompleted: {
- setGradientColorAt(0, "black");
- setGradientColorAt(1, "white");
+ setGradientColorAt(0, "darkslategray");
+ setGradientColorAt(1, "peru");
}
}
}