Tweaked notification feedback settings UI (#526)
This commit is contained in:
parent
ea513a5e42
commit
4ea558bfa5
1 changed files with 28 additions and 8 deletions
|
@ -216,15 +216,35 @@ AccordionItem {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
TextSwitch {
|
||||||
|
checked: appSettings.notificationSuppressContent && enabled
|
||||||
|
text: qsTr("Hide content in notifications")
|
||||||
|
enabled: parent.enabled
|
||||||
|
automaticCheck: false
|
||||||
|
onClicked: {
|
||||||
|
appSettings.notificationSuppressContent = !checked
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TextSwitch {
|
TextSwitch {
|
||||||
width: parent.columnWidth
|
checked: appSettings.notificationTurnsDisplayOn && enabled
|
||||||
checked: appSettings.notificationAlwaysShowPreview
|
text: qsTr("Notification turns on the display")
|
||||||
text: qsTr("Always append message preview to notifications")
|
enabled: parent.enabled
|
||||||
description: qsTr("In addition to showing the number of unread messages, the latest message will also be appended to notifications.")
|
automaticCheck: false
|
||||||
automaticCheck: false
|
onClicked: {
|
||||||
onClicked: {
|
appSettings.notificationTurnsDisplayOn = !checked
|
||||||
appSettings.notificationAlwaysShowPreview = !checked
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
TextSwitch {
|
||||||
|
checked: appSettings.notificationSoundsEnabled && enabled
|
||||||
|
text: qsTr("Enable notification sounds")
|
||||||
|
description: qsTr("When sounds are enabled, Fernschreiber will use the current Sailfish OS notification sound for chats, which can be configured in the system settings.")
|
||||||
|
enabled: parent.enabled
|
||||||
|
automaticCheck: false
|
||||||
|
onClicked: {
|
||||||
|
appSettings.notificationSoundsEnabled = !checked
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue