Fix image
This commit is contained in:
parent
6628cf0a7c
commit
7a52638408
@ -84,7 +84,7 @@ ShaderExample {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: imageItem
|
id: imageItem
|
||||||
opacity: 0.0
|
opacity: 0.8
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: 48
|
anchors.topMargin: 48
|
||||||
Image {
|
Image {
|
||||||
@ -94,20 +94,20 @@ ShaderExample {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PlasmaCore.IconItem {
|
// PlasmaCore.IconItem {
|
||||||
id: iconItem
|
// id: iconItem
|
||||||
source: "plasma"
|
// source: "plasmagik"
|
||||||
width: 400
|
// width: 400
|
||||||
height: 400
|
// height: 400
|
||||||
// width: parent.height
|
// // width: parent.height
|
||||||
// height: width
|
// // height: width
|
||||||
anchors.centerIn: parent
|
// anchors.centerIn: parent
|
||||||
}
|
// }
|
||||||
|
|
||||||
ShaderEffect {
|
ShaderEffect {
|
||||||
id: wobbleShader
|
id: wobbleShader
|
||||||
|
|
||||||
anchors.fill: iconItem
|
anchors.fill: imageItem
|
||||||
//property real time
|
//property real time
|
||||||
property variant mouse
|
property variant mouse
|
||||||
property variant resolution
|
property variant resolution
|
||||||
@ -119,7 +119,7 @@ ShaderExample {
|
|||||||
property int speed: (speedSlider.maximumValue - speedSlider.value + 1)
|
property int speed: (speedSlider.maximumValue - speedSlider.value + 1)
|
||||||
|
|
||||||
property variant source: ShaderEffectSource {
|
property variant source: ShaderEffectSource {
|
||||||
sourceItem: iconItem
|
sourceItem: imageItem
|
||||||
hideSource: true
|
hideSource: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user