Notification: adjust layout

This commit is contained in:
Ly-sec 2025-09-05 23:00:03 +02:00
parent c8a056f332
commit c16e6e7423
3 changed files with 16 additions and 8 deletions

View file

@ -38,7 +38,12 @@ Item {
function toggleHistory() {
notificationHistoryPanel.toggle(getActiveScreen())
}
function toggleDoNotDisturb() {// TODO
function toggleDND() {
Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb
ToastService.showNotice(
Settings.data.notifications.doNotDisturb ? "Do Not Disturb enabled" : "Do Not Disturb disabled",
Settings.data.notifications.doNotDisturb ? "Notifications will be hidden but saved to history" : "Notifications will be shown normally",
"notice", false, 2000)
}
}