Commit 75aa549d authored by Nate Graham's avatar Nate Graham
Browse files

modules/about-distro: simplify spacing before "open in Info Center" button

We don't need an extra ColumnLayout here, which drags in extra unwanted
vertical spacing unless we remember to override it to be 0. It's simpler
to just not have it at all.

CCBUG: 452437
parent a2984b0d
......@@ -26,6 +26,12 @@ KCM.SimpleKCM {
leftPadding: Kirigami.Units.largeSpacing * 4
rightPadding: Kirigami.Units.largeSpacing * 4
ServiceRunner {
id: kicRunner
desktopFileName: "org.kde.kinfocenter"
}
ColumnLayout {
spacing: Kirigami.Units.largeSpacing
......@@ -133,23 +139,19 @@ KCM.SimpleKCM {
}
}
ColumnLayout { // Wraps a spacer and button (conditionally visible!)
Layout.alignment: Qt.AlignHCenter
Item {
visible: !kcm.isThisKInfoCenter && kicRunner.canRun
implicitHeight: Kirigami.Units.largeSpacing
}
Item { implicitHeight: Kirigami.Units.gridUnit }
QQC2.Button {
id: kicButton
QQC2.Button {
visible: !kcm.isThisKInfoCenter && kicRunner.canRun
text: i18nc("@action:button launches kinfocenter from systemsettings", "Show More Information")
icon.name: kicRunner.iconName
onClicked: kicRunner.run()
}
Layout.alignment: Qt.AlignHCenter
ServiceRunner {
id: kicRunner
desktopFileName: "org.kde.kinfocenter"
}
text: i18nc("@action:button launches kinfocenter from systemsettings", "Show More Information")
icon.name: kicRunner.iconName
onClicked: kicRunner.run()
}
}
......
Supports Markdown
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