matrixion/resources/qml/delegates/Pill.qml
2020-05-07 20:53:24 -04:00

18 lines
363 B
QML

import QtQuick 2.5
import QtQuick.Controls 2.1
Label {
id: pillComponent
property color userColor: "red"
color: colors.brightText
horizontalAlignment: Text.AlignHCenter
height: fontMetrics.height * 1.4
width: contentWidth * 1.2
background: Rectangle {
radius: parent.height / 2
color: Qt.rgba(userColor.r, userColor.g, userColor.b, 0.2)
}
}