2021-03-05 02:35:15 +03:00
|
|
|
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
2022-01-01 06:57:53 +03:00
|
|
|
// SPDX-FileCopyrightText: 2022 Nheko Contributors
|
2021-03-07 07:57:56 +03:00
|
|
|
//
|
2021-03-05 02:35:15 +03:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2021-01-12 17:03:39 +03:00
|
|
|
import QtQuick 2.5
|
2019-10-06 12:08:13 +03:00
|
|
|
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 {
|
2022-02-07 23:00:51 +03:00
|
|
|
property bool isStateEvent
|
2022-04-11 05:18:16 +03:00
|
|
|
color: timelineRoot.palette.text
|
2020-10-08 22:11:21 +03:00
|
|
|
horizontalAlignment: Text.AlignHCenter
|
2022-02-21 03:39:32 +03:00
|
|
|
height: Math.round(fontMetrics.height * 1.4)
|
|
|
|
width: contentWidth * 1.2
|
2020-10-08 22:11:21 +03:00
|
|
|
|
|
|
|
background: Rectangle {
|
|
|
|
radius: parent.height / 2
|
2022-04-11 05:18:16 +03:00
|
|
|
color: timelineRoot.palette.alternateBase
|
2020-10-08 22:11:21 +03:00
|
|
|
}
|
2019-09-09 22:42:33 +03:00
|
|
|
|
|
|
|
}
|