Commit 9a84dcd6 authored by Ming Rui Zhang's avatar Ming Rui Zhang

previewRenderer: add rounded corner by using OpacityMask

Change-Id: I4433a72af9c5da9cb905cfcb742f71d53427207a
parent 1e60095f
......@@ -319,6 +319,15 @@ Rectangle {
}
}
layer.enabled: true
layer.effect: OpacityMask {
maskSource: Rectangle {
width: previewRenderer.width
height: previewRenderer.height
radius: JamiTheme.lineEditRadius
}
}
onWidthChanged: {
previewRenderer.height = previewRenderer.width * previewImageScalingFactor
}
......
Markdown is supported
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