Set background color of scene as black (aka glClear colour), can remove a black rectangle from the qml scene
commite49ffc06f6046a403fcd7fa4fd763db517bd09ae
authorGerry Boland <gerry.boland@canonical.com>
dateWed 16 Jul 2014, 12:50 (12 years ago)
parentd3e983d
qml/Shell.qml−6
@@ -100,12 +100,6 @@ FocusScope {
100100 // through the translucent parts of the shell surface.
101101 visible: !fullyCovered
102102
103− Rectangle {
104− anchors.fill: parent
105− color: "black"
106− opacity: dash.disappearingAnimationProgress
107− }
108−
109103 Image {
110104 anchors.fill: dash
111105 source: shell.width > shell.height ? "Dash/graphics/paper_landscape.png" : "Dash/graphics/paper_portrait.png"
src/main.cpp+1
@@ -110,6 +110,7 @@ Load the testability driver");
110110
111111 QQuickView* view = new QQuickView();
112112 view->setResizeMode(QQuickView::SizeRootObjectToView);
113+ view->setColor("black");
113114 view->setTitle("Unity8 Shell");
114115 view->engine()->setBaseUrl(QUrl::fromLocalFile(::qmlDirectory()));
115116 view->rootContext()->setContextProperty("applicationArguments", &qmlArgs);