diff --git a/Collections.qml b/Collections.qml index 2795c5a..a8c6e65 100644 --- a/Collections.qml +++ b/Collections.qml @@ -917,6 +917,7 @@ LauncherPage { kind = "Signal" } + cThread.c_SBADGE = thread["read"] === "true" ? false : true cThread.c_STEXT = mainView.parseTime(Number(thread["date"])) + " • " + qsTr(kind) cThread.c_TSTAMP = Number(thread["date"]) diff --git a/SttSetup.qml b/SttSetup.qml new file mode 100644 index 0000000..9a3ff60 --- /dev/null +++ b/SttSetup.qml @@ -0,0 +1,70 @@ +import QtQuick 2.0 +import QtQuick.Controls 2.5 +import QtQuick.Controls.Styles 1.4 +import QtQuick.Window 2.2 +import QtQuick.Controls.Universal 2.12 +import QtGraphicalEffects 1.12 +import AndroidNative 1.0 as AN + +Dialog { + id: dialog + anchors.centerIn: Overlay.overlay + height: 240 + width: 260 + padding: dialog.innerSpacing + focus: true + modal: true + dim: false + closePolicy: Popup.NoAutoClose + standardButtons: Dialog.Cancel | Dialog.Ok + + property var fontSize + property int innerSpacing + + enter: Transition { + NumberAnimation { property: "opacity"; from: 0.0; to: 1.0 } + } + + exit: Transition { + NumberAnimation { property: "opacity"; from: 1.0; to: 0.0 } + } + + background: Item { + ShaderEffectSource { + id: effectSource + sourceItem: mainView + anchors.fill: parent + sourceRect: Qt.rect(popup.x,popup.y,popup.width,popup.height) + } + FastBlur{ + id: blur + anchors.fill: effectSource + source: effectSource + radius: 32 + } + Rectangle { + anchors.fill: parent + color: "#2e2e2e" + border.color: "transparent" + opacity: 0.6 + } + } + + contentItem: Text { + anchors.fill: dialog + text: qsTr("Now set up voice recognition for text input, which you can then activate using the microphone icon on the keyboard.") + color: Universal.foreground + wrapMode: Text.WordWrap + font.pointSize: dialog.fontSize + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + } + + onAccepted: { + AN.SystemDispatcher.dispatch("volla.launcher.checkSttAvailability", {}) + } + + onRejected: { + dialog.close() + } +} diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 3f86bf0..731240c 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -1,5 +1,5 @@ - +