Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.
Quiet hours: Windows' Do not disturb, with a way to schedule it
Beefe30484fc244
diff --git a/desktop/app/qml/Icons.qml b/desktop/app/qml/Icons.qmlindex 865582c..edfb6bf 100644--- a/desktop/app/qml/Icons.qml+++ b/desktop/app/qml/Icons.qml@@ -7,6 +7,7 @@ import QtQuickQtObject {readonly property string home: "M3 11l9-7 9 7M5 10v10h14V10"readonly property string messages: "M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z"+ readonly property string moon: "M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z"readonly property string bell: "M6 8a6 6 0 1 1 12 0c0 7 3 8 3 8H3s3-1 3-8M10 20a2 2 0 0 0 4 0"readonly property string photo: "M6 3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zM21 15l-5-5L5 21"readonly property string apps: "M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z"diff --git a/desktop/app/qml/pages/SettingsPage.qml b/desktop/app/qml/pages/SettingsPage.qmlindex 3d87a34..bf92b9a 100644--- a/desktop/app/qml/pages/SettingsPage.qml+++ b/desktop/app/qml/pages/SettingsPage.qml@@ -238,6 +238,22 @@ Item {onToggled: (on) => NotificationList.setHistoryEnabled(on)}}+ Divider { width: parent.width }+ // Windows' Do not disturb holds back phone notifications+ // too (they still reach the feed), so quiet hours are its+ // schedule rather than a second one.+ ListRow {+ width: parent.width+ iconPath: Icons.moon+ title: qsTr("Quiet hours")+ description: qsTr("When Windows' Do not disturb is on, phone notifications don't pop up; they wait in the app. Set when it turns on by itself in Windows Settings.")+ Button {+ variant: "tonal"+ size: "sm"+ text: qsTr("Set a schedule")+ onClicked: Qt.openUrlExternally("ms-settings:notifications")+ }+ }Repeater {model: { try { return JSON.parse(NotificationList.apps) } catch (e) { return [] } }delegate: Column {