mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Fixed display of message highlights in selection mode.
This commit is contained in:
parent
54b0d965ae
commit
9ea78f7d28
1 changed files with 12 additions and 4 deletions
|
@ -1193,10 +1193,18 @@ void Message::draw(Painter &p, const PaintContext &context) const {
|
|||
}
|
||||
}
|
||||
|
||||
if (customHighlight) {
|
||||
media->drawHighlight(p, context, localMediaTop);
|
||||
} else {
|
||||
paintHighlight(p, context, fullGeometry.height());
|
||||
{
|
||||
if (selectionTranslation) {
|
||||
p.translate(-selectionTranslation, 0);
|
||||
}
|
||||
if (customHighlight) {
|
||||
media->drawHighlight(p, context, localMediaTop);
|
||||
} else {
|
||||
paintHighlight(p, context, fullGeometry.height());
|
||||
}
|
||||
if (selectionTranslation) {
|
||||
p.translate(selectionTranslation, 0);
|
||||
}
|
||||
}
|
||||
|
||||
const auto roll = media ? media->bubbleRoll() : Media::BubbleRoll();
|
||||
|
|
Loading…
Add table
Reference in a new issue