Add translucency slider and set default to 30%

Apply 1 suggestion(s) to 1 file(s)
Fix
This commit is contained in:
Devin Lin
2021-07-27 13:34:06 -04:00
parent 97737b753b
commit 592d3160df
3 changed files with 33 additions and 0 deletions

View File

@@ -204,6 +204,28 @@ Kirigami.ScrollablePage {
Config.save();
}
}
RowLayout {
visible: Controller.hasWindowSystem && Config.blur
Kirigami.FormData.label: i18n("Transparency:")
QQC2.Slider {
enabled: !Config.compactLayout && Config.blur
from: 0
to: 1
stepSize: 0.05
value: Config.transparency
onMoved: {
Config.transparency = value;
Config.save();
}
HoverHandler { id: sliderHover }
QQC2.ToolTip.visible: sliderHover.hovered && !enabled
QQC2.ToolTip.text: i18n("Only enabled if the transparent chat page is enabled.")
}
QQC2.Label {
text: Math.round(Config.transparency * 100) + "%"
}
}
QQC2.CheckBox {
text: i18n("Show your messages on the right")
checked: Config.showLocalMessagesOnRight