From 2f2cbb4679d1c7eda51fd31179b28d043e880c49 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sat, 21 Nov 2020 01:42:16 +0200 Subject: [PATCH] Added UI for notificationTurnsDisplayOn option --- qml/pages/SettingsPage.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qml/pages/SettingsPage.qml b/qml/pages/SettingsPage.qml index 8a8962a..1218704 100644 --- a/qml/pages/SettingsPage.qml +++ b/qml/pages/SettingsPage.qml @@ -113,6 +113,19 @@ Page { } } + TextSwitch { + checked: appSettings.notificationTurnsDisplayOn && enabled + text: qsTr("Notification turns on the display") + height: appSettings.notificationFeedback === AppSettings.NotificationFeedbackNone ? 0 : implicitHeight + clip: height < implicitHeight + visible: height > 0 + automaticCheck: false + onClicked: { + appSettings.notificationTurnsDisplayOn = !checked + } + Behavior on height { SmoothedAnimation { duration: 200 } } + } + SectionHeader { text: qsTr("Appearance") }