mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-05 21:18:30 -04:00
* feat(settings): add option to suppress config reload toast (#2730) Add a toggle in Settings → Compositor Layout to disable the 'config reloaded' toast for Niri and MangoWC compositors. Session setting showConfigReloadToast defaults to true. * chore: update settings search index for config reload toast * refactor(settings): rename 'Compositor Notifications' to 'Compositor Toasts' * fix(settings): reuse existing I18n.tr('Notifications') translation
This commit is contained in:
@@ -267,6 +267,24 @@ awk '$1 == "xray" { print FILENAME ":" FNR; exit }' $files 2>/dev/null`;
|
||||
}
|
||||
}
|
||||
|
||||
SettingsCard {
|
||||
width: parent.width
|
||||
tags: ["compositor", "toast"]
|
||||
title: I18n.tr("Notifications")
|
||||
settingKey: "compositorNotifications"
|
||||
iconName: "notifications"
|
||||
visible: CompositorService.isNiri || CompositorService.isMango
|
||||
|
||||
SettingsToggleRow {
|
||||
tags: ["compositor", "toast", "reload"]
|
||||
settingKey: "showConfigReloadToast"
|
||||
text: I18n.tr("Show \"config reloaded\" Toast")
|
||||
description: I18n.tr("Show a toast when the compositor config is reloaded")
|
||||
checked: SessionData.showConfigReloadToast
|
||||
onToggled: checked => SessionData.showConfigReloadToast = checked
|
||||
}
|
||||
}
|
||||
|
||||
SettingsCard {
|
||||
width: parent.width
|
||||
tags: ["niri", "layout", "gaps", "radius", "window", "border"]
|
||||
|
||||
Reference in New Issue
Block a user