status-desktop/ui/shared/RoundedIcon.qml

30 lines
530 B
QML
Raw Normal View History

2020-05-13 19:41:16 +00:00
import QtQuick 2.0
import "../imports"
Rectangle {
property int size: 36
property color bg: Theme.blue
property url imgPath: ""
width: size
height: size
color: bg
radius: 50
Image {
2020-05-13 20:18:16 +00:00
id: roundedIconImage
2020-05-13 19:41:16 +00:00
width: 12
height: 12
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
fillMode: Image.PreserveAspectFit
source: imgPath
}
}
/*##^##
Designer {
D{i:0;formeditorZoom:1.75}
}
##^##*/