2019-10-31 00:21:58 +11:00
|
|
|
import QtQuick 2.12
|
2019-12-18 19:53:08 +11:00
|
|
|
import "../../../Base"
|
2019-10-31 00:21:58 +11:00
|
|
|
|
|
|
|
HLabel {
|
2019-12-01 06:03:07 +11:00
|
|
|
id: bubble
|
2019-10-31 00:21:58 +11: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-12-01 06:03:07 +11:00
|
|
|
|
2019-12-12 04:03:33 +11:00
|
|
|
Binding on visible {
|
2019-12-01 06:03:07 +11:00
|
|
|
value: false
|
|
|
|
when: ! Boolean(bubble.text)
|
|
|
|
}
|
2019-10-31 00:21:58 +11:00
|
|
|
}
|