Commit 9816994e authored by Krešimir Čohar's avatar Krešimir Čohar

[sddm-theme/lock screen] Use default font size adjustments instead of hardcoded sizes

Summary: Same result as D19433, except not hardcoded anymore (adjusts for the default font size the user sets).

Reviewers: #vdg, #plasma, filipf, ngraham

Reviewed By: #vdg, filipf, ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19547
parent 164b2dcd
......@@ -48,10 +48,10 @@ Item {
colorGroup: PlasmaCore.ColorScope.colorGroup
active: mouseArea.containsMouse || root.activeFocus
}
PlasmaComponents.Label {
id: label
font.pointSize: 11
font.pointSize: theme.defaultFont.pointSize + 1
anchors {
top: icon.bottom
topMargin: units.smallSpacing
......
......@@ -175,7 +175,7 @@ Item {
PlasmaComponents.Label {
id: usernameDelegate
font.pointSize: 12
font.pointSize: theme.defaultFont.pointSize + 2
anchors {
bottom: parent.bottom
horizontalCenter: parent.horizontalCenter
......
......@@ -53,7 +53,7 @@ SessionManagementScreen {
PlasmaComponents.TextField {
id: passwordBox
font.pointSize: 11
font.pointSize: theme.defaultFont.pointSize + 1
Layout.fillWidth: true
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password")
......@@ -93,7 +93,7 @@ SessionManagementScreen {
PlasmaComponents.Button {
id: loginButton
font.pointSize: 11
font.pointSize: theme.defaultFont.pointSize + 1
Layout.fillWidth: true
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Unlock")
......
......@@ -141,7 +141,7 @@ PlasmaCore.ColorScope {
width: Math.max(implicitWidth, units.gridUnit * 16)
PlasmaComponents.Label {
font.pointSize: 11
font.pointSize: theme.defaultFont.pointSize + 1
Layout.maximumWidth: units.gridUnit * 16
Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true
......@@ -209,7 +209,7 @@ PlasmaCore.ColorScope {
}
PlasmaComponents.Label {
font.pointSize: 11
font.pointSize: theme.defaultFont.pointSize + 1
Layout.alignment: Qt.AlignHCenter
//opacity, as visible would re-layout
opacity: countDownTimer.running ? 1 : 0
......@@ -234,13 +234,13 @@ PlasmaCore.ColorScope {
RowLayout {
Layout.alignment: Qt.AlignHCenter
PlasmaComponents.Button {
font.pointSize: 11
font.pointSize: theme.defaultFont.pointSize + 1
enabled: root.currentAction != null
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "OK")
onClicked: root.currentAction()
}
PlasmaComponents.Button {
font.pointSize: 11
font.pointSize: theme.defaultFont.pointSize + 1
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Cancel")
onClicked: root.cancelRequested()
}
......
......@@ -44,7 +44,7 @@ SessionManagementScreen {
PlasmaComponents.TextField {
id: userNameInput
font.pointSize: 11
font.pointSize: theme.defaultFont.pointSize + 1
Layout.fillWidth: true
text: lastUserName
......@@ -60,7 +60,7 @@ SessionManagementScreen {
PlasmaComponents.TextField {
id: passwordBox
font.pointSize: 11
font.pointSize: theme.defaultFont.pointSize + 1
Layout.fillWidth: true
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password")
......@@ -101,7 +101,7 @@ SessionManagementScreen {
}
PlasmaComponents.Button {
id: loginButton
font.pointSize: 11
font.pointSize: theme.defaultFont.pointSize + 1
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