2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show correct downloads elements context menu.

This commit is contained in:
John Preston
2022-02-27 14:14:39 +03:00
parent daadf7e2a1
commit e89c95551f
32 changed files with 362 additions and 147 deletions

View File

@@ -106,7 +106,14 @@ void ActionWithTimer::paint(Painter &p) {
paintRipple(p, 0, 0);
}
st::menuIconDelete.paint(p, _st.itemIconPosition, width());
const auto normalHeight = _st.itemPadding.top()
+ _st.itemStyle.font->height
+ _st.itemPadding.bottom();
const auto deltaHeight = _height - normalHeight;
st::menuIconDelete.paint(
p,
_st.itemIconPosition + QPoint(0, deltaHeight / 2),
width());
p.setPen(selected ? _st.itemFgOver : _st.itemFg);
_text.drawLeftElided(