File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,7 @@ class FilterAction : public Ui::Menu::Action {
9999 p.drawImage (
100100 width ()
101101 - size.width ()
102- - st::menuWithIcons.itemPadding .right ()
103- - st::popupMenuWithIcons.shadow .extend .right (),
102+ - st::menuWithIcons.itemPadding .right (),
104103 (height () - size.height ()) / 2 ,
105104 _icon);
106105 }
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ class ResolvePhoneAction final : public Ui::Menu::ItemBase {
6464
6565 const not_null<QAction*> _dummyAction;
6666 const style::Menu &_st;
67- const int _shadowPadding;
6867 rpl::variable<PeerData*> _peer;
6968 rpl::variable<bool > _loaded;
7069 Ui::PeerUserpicView _userpicView;
@@ -87,7 +86,6 @@ ResolvePhoneAction::ResolvePhoneAction(
8786: ItemBase(parent, st.menu)
8887, _dummyAction(Ui::CreateChild<QAction>(parent))
8988, _st(st.menu)
90- , _shadowPadding(rect::m::sum::h(st.shadow.extend))
9189, _api(&controller->session ().mtp())
9290, _height(rect::m::sum::v(st::groupCallJoinAsPadding)
9391 + st::groupCallJoinAsPhotoSize) {
@@ -186,9 +184,7 @@ void ResolvePhoneAction::paint(Painter &p) {
186184 width ());
187185 } else {
188186 p.setPen (selected ? _st.itemFgShortcutOver : _st.itemFgShortcut );
189- const auto w = width ()
190- - rect::m::sum::h (padding)
191- - _shadowPadding;
187+ const auto w = width () - rect::m::sum::h (padding);
192188 _below.draw (p, Ui::Text::PaintContext{
193189 .position = QPoint (
194190 padding.left (),
You can’t perform that action at this time.
0 commit comments