import QtQuick
import QtQuick.Controls.Basic

Button {
    id: button
    required property string source
    property color color: Theme.foreground
    property int iconHeight: 15
    property int iconWidth: 15

    implicitWidth: iconWidth + leftPadding + rightPadding
    implicitHeight: iconHeight + topPadding + bottomPadding
    padding: 0
    horizontalPadding: 0

    text: ""

    background: Rectangle {
      color: "transparent"
    }

    icon.source: source
    icon.width: iconWidth
    icon.height: iconHeight
    icon.color: color

    enabled: false
}
