feat: import ayu_menu icon

This commit is contained in:
ZavaruKitsu 2023-06-09 21:39:47 +03:00
parent 4c9a2e4571
commit 336a2ffa76
5 changed files with 4 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,018 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -1,3 +1,5 @@
using "ui/colors.palette";
using "ui/widgets/widgets.style";
ayuGhostIcon: icon {{ "ayu/ghost", settingsIconFg }};
ayuMenuIcon: icon {{ "ayu/ayu_menu", menuIconColor }};

View file

@ -107,6 +107,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtCore/QMimeData>
#include "ayu/context_menu/context_menu.h"
#include "styles/style_ayu_icons.h"
namespace {
@ -2241,7 +2242,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
ayuSubMenu.addHideMessageAction(item);
ayuSubMenu.addReadUntilAction(item);
_menu->addAction(QString("Ayu"), std::move(ayuSubMenu._ayuSubMenu), &st::menuIconSettings, &st::menuIconSettings);
_menu->addAction(QString("Ayu"), std::move(ayuSubMenu._ayuSubMenu), &st::ayuMenuIcon, &st::ayuMenuIcon);
};
const auto addPhotoActions = [&](not_null<PhotoData*> photo, HistoryItem *item) {
const auto media = photo->activeMediaView();