mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
23 lines
607 B
QML
23 lines
607 B
QML
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
|
// SPDX-FileCopyrightText: 2022 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: contentHeight * 1.2
|
|
//width: contentWidth * 1.2
|
|
font.pointSize: isStateEvent? 0.75*fontMetrics.font.pointSize : 1*fontMetrics.font.pointSize
|
|
|
|
background: Rectangle {
|
|
radius: parent.height / 2
|
|
color: Nheko.colors.alternateBase
|
|
}
|
|
|
|
}
|