Added new info comcis view skeleton + setting the comics model. So far it can loads the list of covers from the model. FlowView.qml will be a FlowGL replacement that will be the default in the ANGLE version and an option in the main version.

This commit is contained in:
Luis Ángel San Martín
2016-03-28 11:40:17 +02:00
parent 56e7737931
commit 81c785f787
8 changed files with 309 additions and 2 deletions

View File

@ -0,0 +1,62 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtGraphicalEffects 1.0
import com.yacreader.ComicModel 1.0
Rectangle {
id: main
color: "#2e2e2e"
width: parent.width
height: parent.height
anchors.margins: 0
FlowView {
id: flow
height: 256 //TODO dynamic size?
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
additionalBottomSpace: indicator.height
}
Image {
id: top_shadow
source: "info-top-shadow.png"
width: parent.width
fillMode: Image.TileHorizontally
}
Rectangle {
width: parent.width
y: 250
Image {
id: indicator
source: "info-indicator.png"
}
Image {
id: bottom_shadow
x: indicator.width
width: parent.width - indicator.width
source: "info-shadow.png"
fillMode: Image.TileHorizontally
}
}
Rectangle {
id: info_container
width: parent.width
y: flow.height + flow.additionalBottomSpace - 6
height: parent.height
color: "#2e2e2e"
}
}