Notification: add transparency slider (implements #586)

This commit is contained in:
Ly-sec
2025-10-27 18:29:52 +01:00
parent b20750d6c4
commit 60bfcc0058
10 changed files with 54 additions and 5 deletions
@@ -72,6 +72,27 @@ ColumnLayout {
onToggled: checked => Settings.data.notifications.overlayLayer = checked
}
// Background Opacity
ColumnLayout {
spacing: Style.marginXXS
Layout.fillWidth: true
NLabel {
label: I18n.tr("settings.notifications.settings.background-opacity.label")
description: I18n.tr("settings.notifications.settings.background-opacity.description")
}
NValueSlider {
Layout.fillWidth: true
from: 0
to: 100
stepSize: 1
value: Settings.data.notifications.backgroundOpacity * 100
onMoved: value => Settings.data.notifications.backgroundOpacity = value / 100
text: Math.round(Settings.data.notifications.backgroundOpacity * 100) + "%"
}
}
// OSD settings moved to the dedicated OSD tab
}