foxygit / TV-Launcher Log in
commits tags

/qml/Icon.qml · 265 B

raw
import QtQuick

// Linjeikon från qml/icons/<name>.svg
Image {
    property string name
    source: name !== "" ? Qt.resolvedUrl("icons/" + name + ".svg") : ""
    sourceSize: Qt.size(width * 2, height * 2)
    fillMode: Image.PreserveAspectFit
    smooth: true
}