diff --git a/plugins/presenter/Presenter.qml b/plugins/presenter/Presenter.qml index f1d5915a7..104a1dce4 100644 --- a/plugins/presenter/Presenter.qml +++ b/plugins/presenter/Presenter.qml @@ -38,7 +38,14 @@ Item { y: root.height * root.yPos - height/2 ImageParticle { - groups: ["center", "edge"] + groups: ["center"] + anchors.fill: parent + source: "qrc:///particleresources/glowdot.png" + colorVariation: 0.1 + color: "#FF9999FF" + } + ImageParticle { + groups: ["edge"] anchors.fill: parent source: "qrc:///particleresources/glowdot.png" colorVariation: 0.1 @@ -48,9 +55,9 @@ Item { Emitter { anchors.fill: parent group: "center" - emitRate: 400 + emitRate: 900 lifeSpan: 200 - size: 20 + size: 20 * Window.screen.devicePixelRatio sizeVariation: 2 endSize: 0 //! [0] @@ -68,11 +75,11 @@ Item { anchors.fill: parent group: "edge" startTime: 200 - emitRate: 200 + emitRate: 2000 lifeSpan: 20 - size: 28 - sizeVariation: 2 - endSize: 16 + size: 28 * Window.screen.devicePixelRatio + sizeVariation: 2 * Window.screen.devicePixelRatio + endSize: 16 * Window.screen.devicePixelRatio shape: EllipseShape {fill: false} velocity: TargetDirection { targetX: particles.width/2 @@ -82,8 +89,8 @@ Item { magnitudeVariation: 0.1 } acceleration: TargetDirection { - targetX: particles.width/2 - targetY: particles.height/2 + targetX: particles.width + targetY: particles.height targetVariation: 200 proportionalMagnitude: true magnitude: 0.1 diff --git a/plugins/presenter/test.qml b/plugins/presenter/test.qml index c5ce59ad1..154420581 100644 --- a/plugins/presenter/test.qml +++ b/plugins/presenter/test.qml @@ -1,8 +1,8 @@ import QtQuick 2.10 +import QtQuick.Layouts 1.10 -Rectangle +Item { - color: "red" width: 500 height: 500 @@ -12,6 +12,21 @@ Rectangle hoverEnabled: true } + RowLayout { + id: layout + anchors.fill: parent + spacing: 0 + Repeater { + id: rep + model: [ "white", "yellow", "red", "blue", "gray", "black" ] + delegate: Rectangle { + Layout.fillWidth: true + Layout.fillHeight: true + color: modelData + } + } + } + Presenter { anchors.fill: parent