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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user