feat(misc): a bunch of crude UI/UX tweaks

- display add time for later use
- basic keyboard navigation support
- remember last-used server address
- show connection error when attempt to connect to server
This commit is contained in:
2024-11-15 20:58:03 +08:00
parent 1f7adc2a3a
commit edb3338bc4
8 changed files with 59 additions and 8 deletions

View File

@@ -15,6 +15,12 @@ Pane {
id: view
anchors.fill: parent
onVisibleChanged: function() {
if (visible) {
forceActiveFocus()
}
}
Repeater {
model: root.pageCount
Loader {
@@ -46,11 +52,12 @@ Pane {
Pane {
visible: root.osdVisible
anchors.fill: parent
opacity: 0.6
opacity: 0.65
}
ColumnLayout {
visible: root.osdVisible
enabled: root.osdVisible
anchors.fill: parent
Item {
Layout.fillWidth: true
@@ -65,6 +72,7 @@ Pane {
text: "Close Comic"
Layout.fillWidth: true
onClicked: function() {
root.osdVisible = false
AppController.closeComic()
}
}
@@ -86,4 +94,8 @@ Pane {
}
}
}
Keys.onEscapePressed: function(event) {
root.osdVisible = !root.osdVisible
}
}