feat(blur): added a new option to toggle it on/off

This commit is contained in:
Lemmy
2026-03-06 08:29:03 -05:00
parent 149592656d
commit cd0da159ce
22 changed files with 56 additions and 1 deletions
+3 -1
View File
@@ -203,7 +203,9 @@ PanelWindow {
}
// Blur behind the bar and open panels — attached to PanelWindow (required by BackgroundEffect API)
BackgroundEffect.blurRegion: Region {
BackgroundEffect.blurRegion: Settings.data.general.enableBlurBehind ? blurRegion : null
Region {
id: blurRegion
// ── Non-framed bar (simple/floating): single rectangle with bar corner states ──
Region {
x: (!barPlaceholder.isFramed && root.barShouldShow && !barPlaceholder.isHidden) ? barPlaceholder.x : 0
@@ -33,6 +33,14 @@ ColumnLayout {
onToggled: checked => Settings.data.general.enableShadows = checked
}
NToggle {
label: I18n.tr("panels.user-interface.blur-behind-label")
description: I18n.tr("panels.user-interface.blur-behind-description")
checked: Settings.data.general.enableBlurBehind
defaultValue: Settings.getDefaultValue("general.enableBlurBehind")
onToggled: checked => Settings.data.general.enableBlurBehind = checked
}
NComboBox {
visible: Settings.data.general.enableShadows
label: I18n.tr("panels.user-interface.shadows-direction-label")