Fix non-avatar text sizes on lock and login screens

This reverts commit 2e4b1e1f2d.

That commit was too broad in scope and changed the sizes of more pieces
of text than were needed to fix Bug 442650. It is fixed correctly in
this commit.

CCBUG: 442650
wilder-5.24
Nate Graham 5 years ago
parent ad152a1042
commit a255a7e1a6
  1. 2
      lookandfeel/contents/components/SessionManagementScreen.qml
  2. 6
      lookandfeel/contents/components/UserDelegate.qml
  3. 2
      lookandfeel/contents/components/UserList.qml
  4. 2
      sddm-theme/Login.qml

@ -48,7 +48,7 @@ Item {
property alias userList: userListView
property int fontSize: PlasmaCore.Theme.defaultFont.pointSize + 6
property int fontSize: PlasmaCore.Theme.defaultFont.pointSize + 2
default property alias _children: innerLayout.children

@ -25,7 +25,7 @@ Item {
property string iconSource
property bool constrainText: true
property alias nameFontSize: usernameDelegate.font.pointSize
property int fontSize: PlasmaCore.Theme.defaultFont.pointSize + 6
property int fontSize: PlasmaCore.Theme.defaultFont.pointSize + 2
signal clicked()
property real faceSize: PlasmaCore.Units.gridUnit * 7
@ -148,7 +148,9 @@ Item {
PlasmaComponents3.Label {
id: usernameDelegate
font.pointSize: wrapper.fontSize
// Make it bigger than other fonts to match the scale of the avatar better
font.pointSize: wrapper.fontSize + 4
anchors {
bottom: parent.bottom
horizontalCenter: parent.horizontalCenter

@ -12,7 +12,7 @@ ListView {
readonly property string selectedUser: currentItem ? currentItem.userName : ""
readonly property int userItemWidth: PlasmaCore.Units.gridUnit * 8
readonly property int userItemHeight: PlasmaCore.Units.gridUnit * 8
property int fontSize: PlasmaCore.Theme.defaultFont.pointSize + 6
property int fontSize: PlasmaCore.Theme.defaultFont.pointSize + 2
implicitHeight: userItemHeight

@ -19,7 +19,7 @@ SessionManagementScreen {
property int visibleBoundary: mapFromItem(loginButton, 0, 0).y
onHeightChanged: visibleBoundary = mapFromItem(loginButton, 0, 0).y + loginButton.height + PlasmaCore.Units.smallSpacing
property int fontSize: parseInt(config.fontSize) + 6
property int fontSize: parseInt(config.fontSize) + 2
signal loginRequest(string username, string password)

Loading…
Cancel
Save