aboutsummaryrefslogtreecommitdiff
path: root/qml/Message.qml
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-10-21 20:18:32 +0100
committerlink2xt <link2xt@testrun.org>2021-10-31 11:24:31 +0300
commit48c2a5d7789d742631f8774ad8969d70e5ed0b2e (patch)
treed70550978d8be7dde324ee68fe0a48ee0ad8928a /qml/Message.qml
parent483ade0aa979ed707d578b4445119ac084659ef0 (diff)
downloadkdeltachat-48c2a5d7789d742631f8774ad8969d70e5ed0b2e.tar.gz
kdeltachat-48c2a5d7789d742631f8774ad8969d70e5ed0b2e.zip
We add a bunch of keyboard shortcuts. F1 to show.
- Also, the play, pause and "save attachment" button have a little emoji before them - Tooltip show for buttons with shorcuts
Diffstat (limited to 'qml/Message.qml')
-rw-r--r--qml/Message.qml19
1 files changed, 14 insertions, 5 deletions
diff --git a/qml/Message.qml b/qml/Message.qml
index fc69e8f..86ae397 100644
--- a/qml/Message.qml
+++ b/qml/Message.qml
@@ -128,7 +128,12 @@ RowLayout {
source: Qt.resolvedUrl("file:" + root.message.file)
onError: console.log("Audio MediaPlayer error: " + errorString)
- onPlaybackStateChanged: playbackState == 1 ? audioBtn.text = "pause" : audioBtn.text = "play"
+ onPlaybackStateChanged: {
+ if (playbackState == 1)
+ audioBtn.text = "\u23F8 pause";
+ else
+ audioBtn.text = "\u25B6 play";
+ }
}
Label {
@@ -141,8 +146,13 @@ RowLayout {
Button {
id: audioBtn
- text: "play"
- onPressed: player.playbackState == 1 ? player.pause() : player.play()
+ text: "\u25B6 play"
+ onPressed: {
+ if (player.playbackState == 1)
+ player.pause();
+ else
+ player.play();
+ }
}
}
@@ -217,8 +227,7 @@ RowLayout {
Button {
padding: 5
- icon.name: "document-save-as"
- text: "Save attachment"
+ text: "<h1>\u2B07</h1> Save attachment"
onClicked: saveAsDialog.open()
}