nheko/resources/qml/delegates/Pill.qml

19 lines
352 B
QML
Raw Normal View History

2019-09-09 21:42:33 +02:00
import QtQuick 2.5
import QtQuick.Controls 2.1
2019-09-09 21:42:33 +02:00
Label {
2020-05-08 02:53:24 +02:00
id: pillComponent
property color userColor: "red"
color: colors.brightText
2019-09-09 21:42:33 +02:00
horizontalAlignment: Text.AlignHCenter
height: contentHeight * 1.2
width: contentWidth * 1.2
2019-09-09 21:42:33 +02:00
background: Rectangle {
radius: parent.height / 2
2020-05-08 02:53:24 +02:00
color: Qt.rgba(userColor.r, userColor.g, userColor.b, 0.2)
2019-09-09 21:42:33 +02:00
}
2019-09-09 21:42:33 +02:00
}