mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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);
|
if (selectionTranslation) {
|
||||||
} else {
|
p.translate(-selectionTranslation, 0);
|
||||||
paintHighlight(p, context, fullGeometry.height());
|
}
|
||||||
|
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();
|
const auto roll = media ? media->bubbleRoll() : Media::BubbleRoll();
|
||||||
|
|
Loading…
Add table
Reference in a new issue