matrixion/qml/delegates/Pill.qml

21 lines
531 B
QML
Raw Normal View History

2021-03-05 02:35:15 +03:00
// SPDX-FileCopyrightText: 2021 Nheko Contributors
// SPDX-FileCopyrightText: 2022 Nheko Contributors
2021-03-05 02:35:15 +03:00
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.5
import QtQuick.Controls 2.1
import im.nheko
2019-09-09 22:42:33 +03:00
Label {
property bool isStateEvent
2022-04-16 03:13:01 +03:00
2022-04-11 05:18:16 +03:00
color: timelineRoot.palette.text
height: Math.round(fontMetrics.height * 1.4)
2022-04-16 03:13:01 +03:00
horizontalAlignment: Text.AlignHCenter
width: contentWidth * 1.2
2020-10-08 22:11:21 +03:00
background: Rectangle {
2022-04-11 05:18:16 +03:00
color: timelineRoot.palette.alternateBase
2022-04-16 03:13:01 +03:00
radius: parent.height / 2
2020-10-08 22:11:21 +03:00
}
2019-09-09 22:42:33 +03:00
}