warehouse for ces2019
[apps/onscreenapp.git] / app / pages / DownloadBar.qml
1 /*
2  * Copyright (C) 2018 The Qt Company Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 import QtQuick 2.6
18 import QtQuick.Controls 2.0
19
20 ProgressBar {
21     property real progress: 0
22
23     id: progressbar
24     z: -1
25     value: (progress/100)
26
27     background: Rectangle {
28         anchors.fill: parent
29         color: "transparent"
30         opacity: 0
31     }
32
33     contentItem: Item {
34         anchors.fill: parent
35
36                 Rectangle {
37                         width: progressbar.value * parent.width
38                         height: parent.height
39             opacity: 0.3
40                         color: "#32d0eb"
41                 }
42         }
43 }