settings: add wallpaper parallax

This commit is contained in:
end-4
2025-07-17 23:44:13 +07:00
parent fdc05ee4a0
commit f42e6773aa
3 changed files with 34 additions and 3 deletions
@@ -208,5 +208,38 @@ ContentPage {
}
}
}
ContentSubsection {
title: Translation.tr("Wallpaper parallax")
ConfigRow {
uniform: true
ConfigSwitch {
text: Translation.tr("Depends on workspace")
checked: Config.options.background.parallax.enableWorkspace
onCheckedChanged: {
Config.options.background.parallax.enableWorkspace = checked;
}
}
ConfigSwitch {
text: Translation.tr("Depends on sidebars")
checked: Config.options.background.parallax.enableSidebar
onCheckedChanged: {
Config.options.background.parallax.enableSidebar = checked;
}
}
}
ConfigSpinBox {
text: Translation.tr("Preferred wallpaper zoom (%)")
value: Config.options.background.parallax.workspaceZoom * 100
from: 100
to: 150
stepSize: 1
onValueChanged: {
console.log(value/100)
Config.options.background.parallax.workspaceZoom = value / 100;
}
}
}
}
}