Commit 9a8fc811 authored by Noah Davis's avatar Noah Davis 🌵
Browse files

[sddm-theme/lockscreen] Fix login button size

Some users reported this button becoming too small after KF5.74 was released, but I could not reproduce it myself. However, this code did look suspicious. Hopefully this fixes the issue.
parent 1c3a6fd6
...@@ -97,8 +97,8 @@ SessionManagementScreen { ...@@ -97,8 +97,8 @@ SessionManagementScreen {
PlasmaComponents3.Button { PlasmaComponents3.Button {
id: loginButton id: loginButton
Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Unlock") 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 Layout.preferredHeight: passwordBox.implicitHeight
implicitWidth: implicitHeight Layout.preferredWidth: loginButton.Layout.preferredHeight
icon.name: "go-next" icon.name: "go-next"
......
...@@ -112,9 +112,8 @@ SessionManagementScreen { ...@@ -112,9 +112,8 @@ SessionManagementScreen {
PlasmaComponents3.Button { PlasmaComponents3.Button {
id: loginButton id: loginButton
Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log In") 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 Layout.preferredHeight: passwordBox.implicitHeight
implicitWidth: implicitHeight Layout.preferredWidth: loginButton.Layout.preferredHeight
Layout.rightMargin: 1 // prevents it from extending beyond the username field
icon.name: "go-next" icon.name: "go-next"
......
Markdown is supported
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