Commit dd4176d1 authored by Krešimir Čohar's avatar Krešimir Čohar

[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
parent 2eec8cb1
......@@ -48,8 +48,10 @@ Item {
colorGroup: PlasmaCore.ColorScope.colorGroup
active: mouseArea.containsMouse || root.activeFocus
}
PlasmaComponents.Label {
id: label
font.pointSize: 11
anchors {
top: icon.bottom
topMargin: units.smallSpacing
......
......@@ -41,7 +41,7 @@ Item {
property bool constrainText: true
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
......@@ -65,7 +65,11 @@ Item {
Item {
id: imageSource
anchors.horizontalCenter: parent.horizontalCenter
anchors {
bottom: usernameDelegate.top
bottomMargin: units.largeSpacing
horizontalCenter: parent.horizontalCenter
}
width: faceSize
height: faceSize
......@@ -89,8 +93,11 @@ Item {
}
ShaderEffect {
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
anchors {
bottom: usernameDelegate.top
bottomMargin: units.largeSpacing
horizontalCenter: parent.horizontalCenter
}
width: imageSource.width
height: imageSource.height
......@@ -162,6 +169,7 @@ Item {
PlasmaComponents.Label {
id: usernameDelegate
font.pointSize: 12
anchors {
bottom: parent.bottom
horizontalCenter: parent.horizontalCenter
......
......@@ -53,6 +53,7 @@ SessionManagementScreen {
PlasmaComponents.TextField {
id: passwordBox
font.pointSize: 11
Layout.fillWidth: true
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password")
......@@ -92,6 +93,7 @@ SessionManagementScreen {
PlasmaComponents.Button {
id: loginButton
font.pointSize: 11
Layout.fillWidth: true
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Unlock")
......
......@@ -141,6 +141,7 @@ PlasmaCore.ColorScope {
width: Math.max(implicitWidth, units.gridUnit * 16)
PlasmaComponents.Label {
font.pointSize: 11
Layout.maximumWidth: units.gridUnit * 16
Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true
......@@ -208,6 +209,7 @@ PlasmaCore.ColorScope {
}
PlasmaComponents.Label {
font.pointSize: 11
Layout.alignment: Qt.AlignHCenter
//opacity, as visible would re-layout
opacity: countDownTimer.running ? 1 : 0
......@@ -232,11 +234,13 @@ PlasmaCore.ColorScope {
RowLayout {
Layout.alignment: Qt.AlignHCenter
PlasmaComponents.Button {
font.pointSize: 11
enabled: root.currentAction != null
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "OK")
onClicked: root.currentAction()
}
PlasmaComponents.Button {
font.pointSize: 11
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Cancel")
onClicked: root.cancelRequested()
}
......
......@@ -44,6 +44,7 @@ SessionManagementScreen {
PlasmaComponents.TextField {
id: userNameInput
font.pointSize: 11
Layout.fillWidth: true
text: lastUserName
......@@ -59,6 +60,7 @@ SessionManagementScreen {
PlasmaComponents.TextField {
id: passwordBox
font.pointSize: 11
Layout.fillWidth: true
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password")
......@@ -99,6 +101,7 @@ SessionManagementScreen {
}
PlasmaComponents.Button {
id: loginButton
font.pointSize: 11
Layout.fillWidth: true
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log In")
......
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