diff --git a/notifier/plasmoid/contents/ui/Full.qml b/notifier/plasmoid/contents/ui/Full.qml --- a/notifier/plasmoid/contents/ui/Full.qml +++ b/notifier/plasmoid/contents/ui/Full.qml @@ -23,32 +23,34 @@ import org.kde.plasma.components 2.0 import org.kde.discovernotifier 1.0 -ColumnLayout -{ +Item { + anchors.fill: parent + PlasmaExtras.Heading { - Layout.fillWidth: true + anchors.left: parent.left + anchors.top: parent.top level: 3 wrapMode: Text.WordWrap text: DiscoverNotifier.message } Label { + id: numberOfUpdatesLabel visible: !DiscoverNotifier.isSystemUpToDate Layout.fillWidth: true - Layout.fillHeight: true + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter wrapMode: Text.WordWrap - horizontalAlignment: Text.AlignHCenter text: DiscoverNotifier.extendedMessage } Button { + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: numberOfUpdatesLabel.bottom + anchors.topMargin: units.smallSpacing * 2 visible: !DiscoverNotifier.isSystemUpToDate - Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter - text: i18n("Update") - tooltip: i18n("Launches the software to perform the update") + iconSource: DiscoverNotifier.iconName + text: i18n("View Updates") + tooltip: i18n("Launches Discover to update the software") onClicked: DiscoverNotifier.showDiscoverUpdates() } - Item { - Layout.fillHeight: true - width: 5 - } }