add library with reading history, progress tracking, and view persistence
This commit is contained in:
15 files changed
+685
-40
No files matched your search
@@ -12,36 +12,51 @@ Rectangle {
|
||||
onClicked: {} // Block clicks through overlay
|
||||
}
|
||||
|
||||
Column {
|
||||
Rectangle {
|
||||
anchors.centerIn: parent
|
||||
spacing: 20
|
||||
width: Math.min(overlay.width * 0.7, 440)
|
||||
height: dialogColumn.implicitHeight + 48
|
||||
color: Theme.surface
|
||||
radius: 8
|
||||
|
||||
Text {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: bookController.errorMessage
|
||||
font.pixelSize: 15
|
||||
color: Theme.readingText
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
wrapMode: Text.Wrap
|
||||
width: Math.min(overlay.width * 0.6, 400)
|
||||
}
|
||||
Column {
|
||||
id: dialogColumn
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
topMargin: 24
|
||||
leftMargin: 24
|
||||
rightMargin: 24
|
||||
}
|
||||
spacing: 20
|
||||
|
||||
Button {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: "Ok"
|
||||
contentItem: Text {
|
||||
text: parent.text
|
||||
font.pixelSize: 14
|
||||
color: "#ffffff"
|
||||
Text {
|
||||
width: parent.width
|
||||
text: bookController.errorMessage
|
||||
font.pixelSize: 15
|
||||
color: Theme.readingText
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
wrapMode: Text.Wrap
|
||||
}
|
||||
background: Rectangle {
|
||||
implicitWidth: 80
|
||||
implicitHeight: 36
|
||||
radius: 4
|
||||
color: parent.hovered ? Qt.lighter(Theme.primaryAccent, 1.15) : Theme.primaryAccent
|
||||
|
||||
Button {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: "Ok"
|
||||
contentItem: Text {
|
||||
text: parent.text
|
||||
font.pixelSize: 14
|
||||
color: "#ffffff"
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
background: Rectangle {
|
||||
implicitWidth: 80
|
||||
implicitHeight: 36
|
||||
radius: 4
|
||||
color: parent.hovered ? Qt.lighter(Theme.primaryAccent, 1.15) : Theme.primaryAccent
|
||||
}
|
||||
onClicked: bookController.clearError()
|
||||
}
|
||||
onClicked: bookController.errorMessage = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user