diff --git a/lookandfeel/contents/lockscreen/MainBlock.qml b/lookandfeel/contents/lockscreen/MainBlock.qml index 628ae9043..665e18d31 100644 --- a/lookandfeel/contents/lockscreen/MainBlock.qml +++ b/lookandfeel/contents/lockscreen/MainBlock.qml @@ -97,8 +97,8 @@ SessionManagementScreen { PlasmaComponents3.Button { id: loginButton Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Unlock") - implicitHeight: passwordBox.height - units.smallSpacing * 0.5 // otherwise it comes out taller than the password field - implicitWidth: implicitHeight + Layout.preferredHeight: passwordBox.implicitHeight + Layout.preferredWidth: loginButton.Layout.preferredHeight icon.name: "go-next" diff --git a/sddm-theme/Login.qml b/sddm-theme/Login.qml index e60ad704f..d06324432 100644 --- a/sddm-theme/Login.qml +++ b/sddm-theme/Login.qml @@ -112,9 +112,8 @@ SessionManagementScreen { PlasmaComponents3.Button { id: loginButton Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log In") - implicitHeight: passwordBox.height - units.smallSpacing * 0.5 // otherwise it comes out taller than the password field - implicitWidth: implicitHeight - Layout.rightMargin: 1 // prevents it from extending beyond the username field + Layout.preferredHeight: passwordBox.implicitHeight + Layout.preferredWidth: loginButton.Layout.preferredHeight icon.name: "go-next"