matrixion/resources/qml/delegates/Pill.qml

24 lines
607 B
QML
Raw Permalink 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
2021-05-13 11:57:04 +03:00
import im.nheko 1.0
2019-09-09 22:42:33 +03:00
Label {
property bool isStateEvent
color: Nheko.colors.text
2020-10-08 22:11:21 +03:00
horizontalAlignment: Text.AlignHCenter
//height: contentHeight * 1.2
//width: contentWidth * 1.2
font.pointSize: isStateEvent? 0.75*fontMetrics.font.pointSize : 1*fontMetrics.font.pointSize
2020-10-08 22:11:21 +03:00
background: Rectangle {
radius: parent.height / 2
2021-05-13 09:23:56 +03:00
color: Nheko.colors.alternateBase
2020-10-08 22:11:21 +03:00
}
2019-09-09 22:42:33 +03:00
}