UserInterface: add universal opacity slider (except for bar)

LauncherTab: remove opacity slider
Settings: add migration
i18n: add opacity slider translation
This commit is contained in:
Ly-sec
2025-11-12 20:32:11 +01:00
parent 88a968aa21
commit 0db78a0abe
16 changed files with 101 additions and 50 deletions
@@ -119,6 +119,27 @@ ColumnLayout {
}
}
// Panel Background Opacity
ColumnLayout {
spacing: Style.marginXXS
Layout.fillWidth: true
NLabel {
label: I18n.tr("settings.user-interface.panel-background-opacity.label")
description: I18n.tr("settings.user-interface.panel-background-opacity.description")
}
NValueSlider {
Layout.fillWidth: true
from: 0
to: 1
stepSize: 0.01
value: Settings.data.ui.panelBackgroundOpacity
onMoved: value => Settings.data.ui.panelBackgroundOpacity = value
text: Math.floor(Settings.data.ui.panelBackgroundOpacity * 100) + "%"
}
}
NDivider {
Layout.fillWidth: true
Layout.topMargin: Style.marginL