mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-10 21:53:50 +00:00
Fix mute icon overlapping the verified badge in dialogs
This commit is contained in:
@@ -932,12 +932,6 @@ void PaintRow(
|
||||
context.width,
|
||||
text);
|
||||
} else if (from) {
|
||||
auto badgeWidth = 0;
|
||||
if ((history || sublist) && !context.search) {
|
||||
const auto widthBefore = rectForName.width();
|
||||
paintPeerBadge(rowName.maxWidth());
|
||||
badgeWidth = widthBefore - rectForName.width();
|
||||
}
|
||||
const auto drawMuteIcon = DialogsMuteIcon.value()
|
||||
&& thread
|
||||
&& thread->muted();
|
||||
@@ -951,6 +945,12 @@ void PaintRow(
|
||||
- muteIcon.width()
|
||||
- st::dialogsMuteIconSkip);
|
||||
}
|
||||
auto badgeWidth = 0;
|
||||
if ((history || sublist) && !context.search) {
|
||||
const auto widthBefore = rectForName.width();
|
||||
paintPeerBadge(rowName.maxWidth());
|
||||
badgeWidth = widthBefore - rectForName.width();
|
||||
}
|
||||
p.setPen(context.active
|
||||
? st::dialogsNameFgActive
|
||||
: context.selected
|
||||
|
||||
Reference in New Issue
Block a user