Implement viewing Quiz explanations
TDLib 1.7 feature
This commit is contained in:
parent
e6e63622e5
commit
2ed3bacd98
1 changed files with 18 additions and 0 deletions
|
@ -230,6 +230,24 @@ MessageContentBase {
|
|||
width: 1
|
||||
height: Theme.paddingSmall
|
||||
}
|
||||
Label {
|
||||
width: parent.width
|
||||
wrapMode: Text.Wrap
|
||||
visible: isQuiz && text.length > 0
|
||||
text: Emoji.emojify(Functions.enhanceMessageText(pollData.type.explanation) || "", font.pixelSize)
|
||||
textFormat: Text.StyledText
|
||||
color: pollMessageComponent.isOwnMessage || pollMessageComponent.highlighted ? Theme.highlightColor : Theme.primaryColor
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
leftPadding: Theme.iconSizeSmall
|
||||
bottomPadding: Theme.paddingSmall
|
||||
Icon {
|
||||
source: "image://theme/icon-s-high-importance"
|
||||
asynchronous: true
|
||||
width: Theme.iconSizeExtraSmall
|
||||
height: Theme.iconSizeExtraSmall
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
x: -Theme.horizontalPageMargin/2
|
||||
|
|
Loading…
Reference in a new issue