From aec170d7f81f53589ba34bc462ef7f5614252fe6 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Mon, 22 Sep 2025 20:16:39 -0400 Subject: [PATCH] Fix a few hardcoded margin by proper Style.xxx --- Modules/LockScreen/LockScreen.qml | 6 +++--- Modules/Settings/Tabs/LocationTab.qml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/LockScreen/LockScreen.qml b/Modules/LockScreen/LockScreen.qml index cabad9f0..84b58c98 100644 --- a/Modules/LockScreen/LockScreen.qml +++ b/Modules/LockScreen/LockScreen.qml @@ -766,7 +766,7 @@ Loader { Rectangle { anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.top - anchors.bottomMargin: 12 * scaling + anchors.bottomMargin: Style.marginM * scaling radius: Style.radiusM * scaling color: Color.mSurface border.color: Color.mOutline @@ -817,7 +817,7 @@ Loader { Rectangle { anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.top - anchors.bottomMargin: 12 * scaling + anchors.bottomMargin: Style.marginM * scaling radius: Style.radiusM * scaling color: Color.mSurface border.color: Color.mOutline @@ -869,7 +869,7 @@ Loader { Rectangle { anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.top - anchors.bottomMargin: 12 * scaling + anchors.bottomMargin: Style.marginM * scaling radius: Style.radiusM * scaling color: Color.mSurface border.color: Color.mOutline diff --git a/Modules/Settings/Tabs/LocationTab.qml b/Modules/Settings/Tabs/LocationTab.qml index 2696abab..d0cc8d3a 100644 --- a/Modules/Settings/Tabs/LocationTab.qml +++ b/Modules/Settings/Tabs/LocationTab.qml @@ -48,7 +48,7 @@ ColumnLayout { verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight Layout.alignment: Qt.AlignBottom - Layout.bottomMargin: 12 * scaling + Layout.bottomMargin: Style.marginM * scaling } }