import QtQuick 2.5
import QtQuick.Controls 2.1

ToolButton {
    property alias imageSource: image.name
    property alias color: image.color
    property alias keyColor: image.keyColor

    contentItem: Item {
        height: 20
        width: 20
        ColorIcon {
            id: image
            anchors.fill: parent
            anchors.margins: app.margins / 2
            opacity: enabled ? 1 : .5
        }
    }
}
