[sddm-theme/lock screen] Adjust login screen and lock screen font sizes

Summary: This patch increases the font size of the username and action button labels for better readability.

Test Plan:
Before:
{F6645900}
After:
{F6646411}

For reference, level 4:
{F6645901}

Reviewers: #vdg, #plasma, ngraham

Reviewed By: #vdg, ngraham

Subscribers: filipf, ngraham, plasma-devel

Tags: #plasma

Maniphest Tasks: T10325

Differential Revision: https://phabricator.kde.org/D19433
wilder-broken-krunner
Krešimir Čohar 7 years ago
parent 2eec8cb1b5
commit dd4176d1f6
  1. 2
      lookandfeel/contents/components/ActionButton.qml
  2. 16
      lookandfeel/contents/components/UserDelegate.qml
  3. 2
      lookandfeel/contents/lockscreen/MainBlock.qml
  4. 4
      lookandfeel/contents/logout/Logout.qml
  5. 3
      sddm-theme/Login.qml

@ -48,8 +48,10 @@ Item {
colorGroup: PlasmaCore.ColorScope.colorGroup colorGroup: PlasmaCore.ColorScope.colorGroup
active: mouseArea.containsMouse || root.activeFocus active: mouseArea.containsMouse || root.activeFocus
} }
PlasmaComponents.Label { PlasmaComponents.Label {
id: label id: label
font.pointSize: 11
anchors { anchors {
top: icon.bottom top: icon.bottom
topMargin: units.smallSpacing topMargin: units.smallSpacing

@ -41,7 +41,7 @@ Item {
property bool constrainText: true property bool constrainText: true
signal clicked() signal clicked()
property real faceSize: Math.min(width, height - usernameDelegate.height - units.largeSpacing) property real faceSize: Math.min(width, height - usernameDelegate.height - units.smallSpacing)
opacity: isCurrent ? 1.0 : 0.5 opacity: isCurrent ? 1.0 : 0.5
@ -65,7 +65,11 @@ Item {
Item { Item {
id: imageSource id: imageSource
anchors.horizontalCenter: parent.horizontalCenter anchors {
bottom: usernameDelegate.top
bottomMargin: units.largeSpacing
horizontalCenter: parent.horizontalCenter
}
width: faceSize width: faceSize
height: faceSize height: faceSize
@ -89,8 +93,11 @@ Item {
} }
ShaderEffect { ShaderEffect {
anchors.top: parent.top anchors {
anchors.horizontalCenter: parent.horizontalCenter bottom: usernameDelegate.top
bottomMargin: units.largeSpacing
horizontalCenter: parent.horizontalCenter
}
width: imageSource.width width: imageSource.width
height: imageSource.height height: imageSource.height
@ -162,6 +169,7 @@ Item {
PlasmaComponents.Label { PlasmaComponents.Label {
id: usernameDelegate id: usernameDelegate
font.pointSize: 12
anchors { anchors {
bottom: parent.bottom bottom: parent.bottom
horizontalCenter: parent.horizontalCenter horizontalCenter: parent.horizontalCenter

@ -53,6 +53,7 @@ SessionManagementScreen {
PlasmaComponents.TextField { PlasmaComponents.TextField {
id: passwordBox id: passwordBox
font.pointSize: 11
Layout.fillWidth: true Layout.fillWidth: true
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password") placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password")
@ -92,6 +93,7 @@ SessionManagementScreen {
PlasmaComponents.Button { PlasmaComponents.Button {
id: loginButton id: loginButton
font.pointSize: 11
Layout.fillWidth: true Layout.fillWidth: true
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Unlock") text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Unlock")

@ -141,6 +141,7 @@ PlasmaCore.ColorScope {
width: Math.max(implicitWidth, units.gridUnit * 16) width: Math.max(implicitWidth, units.gridUnit * 16)
PlasmaComponents.Label { PlasmaComponents.Label {
font.pointSize: 11
Layout.maximumWidth: units.gridUnit * 16 Layout.maximumWidth: units.gridUnit * 16
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true Layout.fillWidth: true
@ -208,6 +209,7 @@ PlasmaCore.ColorScope {
} }
PlasmaComponents.Label { PlasmaComponents.Label {
font.pointSize: 11
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
//opacity, as visible would re-layout //opacity, as visible would re-layout
opacity: countDownTimer.running ? 1 : 0 opacity: countDownTimer.running ? 1 : 0
@ -232,11 +234,13 @@ PlasmaCore.ColorScope {
RowLayout { RowLayout {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
PlasmaComponents.Button { PlasmaComponents.Button {
font.pointSize: 11
enabled: root.currentAction != null enabled: root.currentAction != null
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "OK") text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "OK")
onClicked: root.currentAction() onClicked: root.currentAction()
} }
PlasmaComponents.Button { PlasmaComponents.Button {
font.pointSize: 11
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Cancel") text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Cancel")
onClicked: root.cancelRequested() onClicked: root.cancelRequested()
} }

@ -44,6 +44,7 @@ SessionManagementScreen {
PlasmaComponents.TextField { PlasmaComponents.TextField {
id: userNameInput id: userNameInput
font.pointSize: 11
Layout.fillWidth: true Layout.fillWidth: true
text: lastUserName text: lastUserName
@ -59,6 +60,7 @@ SessionManagementScreen {
PlasmaComponents.TextField { PlasmaComponents.TextField {
id: passwordBox id: passwordBox
font.pointSize: 11
Layout.fillWidth: true Layout.fillWidth: true
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password") placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password")
@ -99,6 +101,7 @@ SessionManagementScreen {
} }
PlasmaComponents.Button { PlasmaComponents.Button {
id: loginButton id: loginButton
font.pointSize: 11
Layout.fillWidth: true Layout.fillWidth: true
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log In") text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log In")

Loading…
Cancel
Save