diff --git a/EXAMPLE.md b/EXAMPLE.md index 834617d..41e2767 100644 --- a/EXAMPLE.md +++ b/EXAMPLE.md @@ -54,9 +54,6 @@ Path: `~/.config/overzicht/settings.json` "backgroundPadding": 10, "workspaceNumberBaseSize": 250 }, - "position": { - "topMargin": 100 - }, "windowPreview": { "iconToWindowRatio": 0.25, "iconToWindowRatioCompact": 0.45, diff --git a/common/Config.qml b/common/Config.qml index fd3e321..7e26433 100644 --- a/common/Config.qml +++ b/common/Config.qml @@ -107,10 +107,6 @@ Singleton { property real workspaceNumberBaseSize: root.optionValue(["overview", "workspaceNumberBaseSize"], 250) } - property QtObject position: QtObject { - property real topMargin: root.optionValue(["position", "topMargin"], 100) - } - property QtObject windowPreview: QtObject { property real iconToWindowRatio: root.optionValue(["windowPreview", "iconToWindowRatio"], 0.25) property real iconToWindowRatioCompact: root.optionValue(["windowPreview", "iconToWindowRatioCompact"], 0.45) diff --git a/modules/overview/Overview.qml b/modules/overview/Overview.qml index b89223c..b9f674d 100644 --- a/modules/overview/Overview.qml +++ b/modules/overview/Overview.qml @@ -147,9 +147,7 @@ Scope { ColumnLayout { id: columnLayout visible: GlobalStates.overviewOpen - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - anchors.topMargin: Config.options.position.topMargin + anchors.centerIn: parent Loader { id: overviewLoader