moment/src/qml/Base/HIcon.qml

19 lines
383 B
QML
Raw Normal View History

import QtQuick 2.12
HImage {
2019-08-21 07:41:24 +10:00
visible: Boolean(svgName)
property string svgName: ""
property int dimension: 20
source:
svgName ?
("../../icons/" +
(theme ? theme.preferredIconPack : "light-thin") +
"/" + svgName + ".svg") :
""
sourceSize.width: svgName ? dimension : 0
sourceSize.height: svgName ? dimension : 0
}