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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user