53 lines
1.6 KiB
QML
53 lines
1.6 KiB
QML
import QtQuick 2.0
|
|
import Sailfish.Silica 1.0
|
|
|
|
// Cover: se un libro è aperto (readerState attivo dal ReaderPage) mostra
|
|
// titolo e posizione di lettura, altrimenti icona e nome dell'app.
|
|
CoverBackground {
|
|
Column {
|
|
anchors.centerIn: parent
|
|
width: parent.width - 2 * Theme.paddingLarge
|
|
spacing: Theme.paddingMedium
|
|
visible: !readerState.active
|
|
|
|
Image {
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
source: "/usr/share/icons/hicolor/86x86/apps/harbour-calibreweb.png"
|
|
sourceSize.width: 86
|
|
sourceSize.height: 86
|
|
}
|
|
|
|
Label {
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
text: qsTr("Calibre Web")
|
|
color: Theme.primaryColor
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
}
|
|
}
|
|
|
|
Column {
|
|
anchors.centerIn: parent
|
|
width: parent.width - 2 * Theme.paddingLarge
|
|
spacing: Theme.paddingSmall
|
|
visible: readerState.active
|
|
|
|
Label {
|
|
width: parent.width
|
|
text: readerState.title
|
|
color: Theme.primaryColor
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
horizontalAlignment: Text.AlignHCenter
|
|
truncationMode: TruncationMode.Elide
|
|
}
|
|
|
|
Label {
|
|
width: parent.width
|
|
text: readerState.subtitle
|
|
color: Theme.secondaryColor
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
horizontalAlignment: Text.AlignHCenter
|
|
truncationMode: TruncationMode.Elide
|
|
}
|
|
}
|
|
}
|