Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3
plasma5-workspace
0001-sddm-theme-lockscreen-Fix-login-button-siz...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-sddm-theme-lockscreen-Fix-login-button-size.patch of Package plasma5-workspace
From 9a8fc811282e303ec2f93c978228a85961dae263 Mon Sep 17 00:00:00 2001 From: Noah Davis <noahadvs@gmail.com> Date: Mon, 14 Sep 2020 10:18:57 -0400 Subject: [PATCH] [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. --- lookandfeel/contents/lockscreen/MainBlock.qml | 4 ++-- sddm-theme/Login.qml | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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,7 +97,8 @@ SessionManagementScreen { # PlasmaComponents3.Button { PlasmaComponents.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" PlasmaCore.IconItem { // no iconSource because if you take away half a unit (implicitHeight), "go-next" gets cut off anchors.fill: parent 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,8 +112,8 @@ SessionManagementScreen { PlasmaComponents.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" # PlasmaCore.IconItem { // no iconSource because if you take away half a unit (implicitHeight), "go-next" gets cut off anchors.fill: parent -- GitLab
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor