mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-31 00:42:50 -05:00
Crop CircularImages not fit
This commit is contained in:
@@ -23,7 +23,7 @@ Rectangle {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 2
|
anchors.margins: 2
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectCrop
|
||||||
smooth: true
|
smooth: true
|
||||||
mipmap: true
|
mipmap: true
|
||||||
cache: true
|
cache: true
|
||||||
@@ -44,8 +44,9 @@ Rectangle {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: circularMask
|
id: circularMask
|
||||||
anchors.fill: parent
|
anchors.centerIn: parent
|
||||||
anchors.margins: 2
|
width: parent.width - 4
|
||||||
|
height: parent.height - 4
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
layer.smooth: true
|
layer.smooth: true
|
||||||
visible: false
|
visible: false
|
||||||
|
|||||||
Reference in New Issue
Block a user