summary refs log tree commit diff
path: root/resources/qml/delegates/Pill.qml
blob: fd24fb51801dc96a59d3a3bce064c2a8840fdd82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-FileCopyrightText: 2021 Nheko Contributors
// SPDX-FileCopyrightText: 2022 Nheko Contributors
// SPDX-FileCopyrightText: 2023 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later

import QtQuick 2.5
import QtQuick.Controls 2.1
import im.nheko 1.0

Label {
    property bool isStateEvent
    color: Nheko.colors.text
    horizontalAlignment: Text.AlignHCenter
    height: Math.round(fontMetrics.height * 1.4)
    width: contentWidth * 1.2

    background: Rectangle {
        radius: parent.height / 2
        color: Nheko.colors.alternateBase
    }

}