mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
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:
62
YACReaderLibrary/qml/InfoComicsView.qml
Normal file
62
YACReaderLibrary/qml/InfoComicsView.qml
Normal 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"
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user