blob: dfe01834cbc67d4a9fd1ac3f28702c274e7145dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
Item {
id: container
property real progress: 0
Behavior on opacity { NumberAnimation { duration: 600 } }
Rectangle { anchors.fill: parent; color: "black"; opacity: 0.5 }
Rectangle {
id: fill; color: "white"; height: container.height
width: container.width * container.progress
}
}
|