Initial UI
This commit is contained in:
1 parent
4d52c8cc60
commit
3c0037cfc9
29 files changed
+1367
-2
No files matched your search
@@ -0,0 +1,47 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import Asteria
|
||||
|
||||
Rectangle {
|
||||
id: overlay
|
||||
color: Theme.overlayBg
|
||||
visible: bookController.errorMessage !== ""
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {} // Block clicks through overlay
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
spacing: 20
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
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.errorMessage = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user