mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Slightly improved position of selection marks for wide chats.
This commit is contained in:
parent
9077db2e97
commit
e646b4dc9a
1 changed files with 8 additions and 1 deletions
|
@ -1614,8 +1614,15 @@ void Message::draw(Painter &p, const PaintContext &context) const {
|
||||||
}
|
}
|
||||||
const auto o = ScopedPainterOpacity(p, progress);
|
const auto o = ScopedPainterOpacity(p, progress);
|
||||||
const auto &st = st::msgSelectionCheck;
|
const auto &st = st::msgSelectionCheck;
|
||||||
|
const auto right = delegate()->elementIsChatWide()
|
||||||
|
? (st::msgMaxWidth
|
||||||
|
+ st::msgPhotoSkip
|
||||||
|
+ st::msgSelectionOffset
|
||||||
|
+ st::msgPadding.left()
|
||||||
|
+ st.size)
|
||||||
|
: width();
|
||||||
const auto pos = QPoint(
|
const auto pos = QPoint(
|
||||||
(width()
|
(right
|
||||||
- (st::msgSelectionOffset * progress - st.size) / 2
|
- (st::msgSelectionOffset * progress - st.size) / 2
|
||||||
- st::msgPadding.right() / 2
|
- st::msgPadding.right() / 2
|
||||||
- st.size),
|
- st.size),
|
||||||
|
|
Loading…
Add table
Reference in a new issue