Debian Codegraph @

resources/qml/delegates/Pill.qml

raw
1 // SPDX-FileCopyrightText: Nheko Contributors
2 //
3 // SPDX-License-Identifier: GPL-3.0-or-later
4
5 import QtQuick 2.5
6 import QtQuick.Controls 2.1
7
8 Label {
9 property bool isStateEvent
10 color: palette.text
11 horizontalAlignment: Text.AlignHCenter
12 height: Math.round(fontMetrics.height * 1.4)
13 width: contentWidth * 1.2
14
15 background: Rectangle {
16 radius: parent.height / 2
17 color: palette.alternateBase
18 }
19
20 }