From 801724eb01fa8fa88608b33b1c6f00085553ff16 Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Fri, 19 May 2017 14:26:08 +0200 Subject: [PATCH] Plasmoid templates: use the image which is part of the package (again) --- templates/cpp-plasmoid/src/package/contents/ui/main.qml | 8 ++++++-- templates/qml-plasmoid/package/contents/ui/main.qml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/templates/cpp-plasmoid/src/package/contents/ui/main.qml b/templates/cpp-plasmoid/src/package/contents/ui/main.qml index 7eb85c0cd..c59c3421b 100644 --- a/templates/cpp-plasmoid/src/package/contents/ui/main.qml +++ b/templates/cpp-plasmoid/src/package/contents/ui/main.qml @@ -26,10 +26,14 @@ import org.kde.plasma.components 2.0 as PlasmaComponents Item { Plasmoid.fullRepresentation: ColumnLayout { anchors.fill: parent - PlasmaCore.IconItem { - source: "kde" + Image { + Layout.fillHeight: true + Layout.fillWidth: true + fillMode: Image.PreserveAspectFit + source: "../images/pairs.svgz" } PlasmaComponents.Label { + Layout.alignment: Qt.AlignCenter text: plasmoid.nativeInterface.nativeText } } diff --git a/templates/qml-plasmoid/package/contents/ui/main.qml b/templates/qml-plasmoid/package/contents/ui/main.qml index e025c125f..04a92f7e0 100644 --- a/templates/qml-plasmoid/package/contents/ui/main.qml +++ b/templates/qml-plasmoid/package/contents/ui/main.qml @@ -26,10 +26,14 @@ import org.kde.plasma.components 2.0 as PlasmaComponents Item { Plasmoid.fullRepresentation: ColumnLayout { anchors.fill: parent - PlasmaCore.IconItem { - source: "kde" + Image { + Layout.fillHeight: true + Layout.fillWidth: true + fillMode: Image.PreserveAspectFit + source: "../images/pairs.svgz" } PlasmaComponents.Label { + Layout.alignment: Qt.AlignCenter text: "This is Plasma!" } }