2020-09-23 19:57:54 -04:00
|
|
|
// Copyright Mirage authors & contributors <https://github.com/mirukana/mirage>
|
2019-12-19 07:46:16 -04:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
2019-10-30 09:21:58 -04:00
|
|
|
import QtQuick 2.12
|
2019-12-18 04:53:08 -04:00
|
|
|
import "../../../Base"
|
2019-10-30 09:21:58 -04:00
|
|
|
|
|
|
|
HLabel {
|
2019-11-30 15:03:07 -04:00
|
|
|
id: bubble
|
2020-07-12 00:25:57 -04:00
|
|
|
|
2019-10-30 09:21:58 -04:00
|
|
|
anchors.margins: theme.spacing / 4
|
|
|
|
|
|
|
|
topPadding: theme.spacing / 2
|
|
|
|
bottomPadding: topPadding
|
|
|
|
leftPadding: theme.spacing / 1.5
|
|
|
|
rightPadding: leftPadding
|
|
|
|
|
|
|
|
font.pixelSize: theme.fontSize.small
|
|
|
|
|
|
|
|
background: Rectangle {
|
|
|
|
color: Qt.hsla(0, 0, 0, 0.7)
|
|
|
|
radius: theme.radius
|
|
|
|
}
|
2019-11-30 15:03:07 -04:00
|
|
|
|
2019-12-11 13:03:33 -04:00
|
|
|
Binding on visible {
|
2019-11-30 15:03:07 -04:00
|
|
|
value: false
|
|
|
|
when: ! Boolean(bubble.text)
|
|
|
|
}
|
2019-10-30 09:21:58 -04:00
|
|
|
}
|