/*SPDX-FileCopyrightText: 2016 Boudhayan Gupta <bgupta@kde.org>SPDX-License-Identifier: LGPL-2.0-or-later*/import QtQuickFocusScope {id: sceneBackgroundproperty var sceneBackgroundTypeproperty alias sceneBackgroundColor: sceneColorBackground.colorproperty alias sceneBackgroundImage: sceneImageBackground.sourceRectangle {id: sceneColorBackgroundanchors.fill: parent}Image {id: sceneImageBackgroundanchors.fill: parentsourceSize.width: parent.widthsourceSize.height: parent.heightfillMode: Image.PreserveAspectCropsmooth: true;}states: [State {name: "imageBackground"when: sceneBackgroundType === "image"PropertyChanges {target: sceneColorBackgroundvisible: false}PropertyChanges {target: sceneImageBackgroundvisible: true}},State {name: "colorBackground"when: sceneBackgroundType !== "image"PropertyChanges {target: sceneColorBackgroundvisible: true}PropertyChanges {target: sceneImageBackgroundvisible: false}}]}