Commit 1390b551 authored by Marco Martin's avatar Marco Martin
Browse files

Save layouts per-resolution

save a different applet layout per resolution
having a completely different layout makes much easier to have the
position of widgets not get destroyed every time resolution is changed,
like connecting external monitors or playing a game.

parent f6db8c71
......@@ -277,7 +277,9 @@ FolderViewDropArea {
id: appletsLayout
anchors.fill: parent
// NOTE: use plasmoid.availableScreenRect and not own width and height as they are updated not atomically
configKey: plasmoid.availableScreenRect.width > plasmoid.availableScreenRect.height ? "ItemGeometriesHorizontal" : "ItemGeometriesVertical"
configKey: "ItemGeometries-" + Math.round(plasmoid.screenGeometry.width) + "x" + Math.round(plasmoid.screenGeometry.height)
fallbackConfigKey: plasmoid.availableScreenRect.width > plasmoid.availableScreenRect.height ? "ItemGeometriesHorizontal" : "ItemGeometriesVertical"
containment: plasmoid
editModeCondition: plasmoid.immutable
? ContainmentLayoutManager.AppletsLayout.Locked
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment