Skip to content

Commit

Permalink
but the button on the left, make it looking more like a button
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Aug 20, 2019
1 parent d164e86 commit 3e2b89e
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions DownloadInfo.qml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,20 +7,29 @@ import QmlDownloader 1.0
import "utils.js" as Utils import "utils.js" as Utils


Item { Item {
width: parent.width * 0.75 width: parent.width * 0.65
height: Math.min(parent.height * 0.1, 40) height: Math.min(parent.height * 0.1, 40)
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter anchors {
anchors.bottomMargin: 60 bottom: parent.bottom
horizontalCenter: parent.horizontalCenter
bottomMargin: 60
}


Card { Card {
width: parent.width - downloadAction.width anchors {
right: parent.right
}

width: parent.width - downloadAction.width - 15
height: parent.height height: parent.height

Material.elevation: 2 Material.elevation: 2
Material.theme: Material.Dark Material.theme: Material.Dark
Material.background: "black" Material.background: "black"


Item { Item {

width: parent.width width: parent.width
height: parent.height height: parent.height


Expand Down Expand Up @@ -132,12 +141,23 @@ Item {


ActionButton { ActionButton {
id: downloadAction id: downloadAction

anchors {
verticalCenter: parent.verticalCenter
left: parent.left
top: parent.top
bottom: parent.bottom
}

height: 70
width: 70

iconName: "file/file_download" iconName: "file/file_download"
scale: 0.7 scale: 1.2
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
Material.elevation: 1 Material.elevation: 1
Material.background: Material.Teal Material.background: Material.Teal

onClicked: { onClicked: {
if (downloader.state === QmlDownloader.COMPLETED) { if (downloader.state === QmlDownloader.COMPLETED) {
root.hide(); root.hide();
Expand Down

0 comments on commit 3e2b89e

Please sign in to comment.