2023-02-21 23:48:49 +01:00
|
|
|
// SPDX-FileCopyrightText: Nheko Contributors
|
2021-03-07 05:57:56 +01:00
|
|
|
//
|
2021-03-05 00:35:15 +01:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2021-01-12 15:03:39 +01:00
|
|
|
import QtQuick 2.5
|
2019-10-06 11:08:13 +02:00
|
|
|
import QtQuick.Controls 2.1
|
2021-05-13 10:57:04 +02:00
|
|
|
import im.nheko 1.0
|
2019-09-09 21:42:33 +02:00
|
|
|
|
|
|
|
Label {
|
2022-02-07 21:00:51 +01:00
|
|
|
property bool isStateEvent
|
2023-06-02 01:29:05 +02:00
|
|
|
color: palette.text
|
2020-10-08 21:11:21 +02:00
|
|
|
horizontalAlignment: Text.AlignHCenter
|
2022-02-21 01:39:32 +01:00
|
|
|
height: Math.round(fontMetrics.height * 1.4)
|
|
|
|
width: contentWidth * 1.2
|
2020-10-08 21:11:21 +02:00
|
|
|
|
|
|
|
background: Rectangle {
|
|
|
|
radius: parent.height / 2
|
2023-06-02 01:29:05 +02:00
|
|
|
color: palette.alternateBase
|
2020-10-08 21:11:21 +02:00
|
|
|
}
|
2019-09-09 21:42:33 +02:00
|
|
|
|
|
|
|
}
|