Files
noctalia-shell/Modules/Panels/Settings/Tabs/Notifications/HistorySubTab.qml
T
2026-02-16 17:32:01 +01:00

52 lines
2.1 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import qs.Commons
import qs.Widgets
ColumnLayout {
id: root
spacing: Style.marginL
Layout.fillWidth: true
NToggle {
label: I18n.tr("panels.notifications.history-clear-dismiss-label")
description: I18n.tr("panels.notifications.history-clear-dismiss-description")
checked: Settings.data.notifications.clearDismissed
onToggled: checked => Settings.data.notifications.clearDismissed = checked
defaultValue: Settings.getDefaultValue("notifications.clearDismissed")
}
NToggle {
label: I18n.tr("panels.notifications.settings-markdown-label")
description: I18n.tr("panels.notifications.settings-markdown-description")
checked: Settings.data.notifications.enableMarkdown
onToggled: checked => Settings.data.notifications.enableMarkdown = checked
defaultValue: Settings.getDefaultValue("notifications.enableMarkdown")
}
NToggle {
label: I18n.tr("panels.notifications.history-low-urgency-label")
description: I18n.tr("panels.notifications.history-low-urgency-description")
checked: Settings.data.notifications?.saveToHistory?.low !== false
onToggled: checked => Settings.data.notifications.saveToHistory.low = checked
defaultValue: Settings.getDefaultValue("notifications.saveToHistory.low")
}
NToggle {
label: I18n.tr("panels.notifications.history-normal-urgency-label")
description: I18n.tr("panels.notifications.history-normal-urgency-description")
checked: Settings.data.notifications?.saveToHistory?.normal !== false
onToggled: checked => Settings.data.notifications.saveToHistory.normal = checked
defaultValue: Settings.getDefaultValue("notifications.saveToHistory.normal")
}
NToggle {
label: I18n.tr("panels.notifications.history-critical-urgency-label")
description: I18n.tr("panels.notifications.history-critical-urgency-description")
checked: Settings.data.notifications?.saveToHistory?.critical !== false
onToggled: checked => Settings.data.notifications.saveToHistory.critical = checked
defaultValue: Settings.getDefaultValue("notifications.saveToHistory.critical")
}
}