Commit 57a0f933 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[logout screen] Set implicit widths on OK and Cancel buttons

This was previously done in the component itself, but that was removed
in 711789908b0c6c0f76597596d567fba4ae9151ca (plasma-framework). For the
most part, buttons look better without the old minimum width, but these
buttons here relied on that behavior and do in fact look better with it.
So let's set it manually on these buttons.
parent 5a47a83e
......@@ -247,12 +247,14 @@ PlasmaCore.ColorScope {
RowLayout {
Layout.alignment: Qt.AlignHCenter
PlasmaComponents.Button {
implicitWidth: units.gridUnit * 6
font.pointSize: theme.defaultFont.pointSize + 1
enabled: root.currentAction !== null
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "OK")
onClicked: root.currentAction()
}
PlasmaComponents.Button {
implicitWidth: units.gridUnit * 6
font.pointSize: theme.defaultFont.pointSize + 1
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Cancel")
onClicked: root.cancelRequested()
......
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