feat: add repeat icon

Co-authored-by: immat0x1 <immat0x1@protonmail.com>
This commit is contained in:
AlexeyZavar
2026-03-18 14:39:36 +03:00
parent 96231c217c
commit aa60283fcb
6 changed files with 3 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -17,6 +17,7 @@ ayuLReadMenuIcon: icon {{ "ayu/lread", menuIconColor }};
ayuSReadMenuIcon: icon {{ "ayu/sread", menuIconColor }};
ayuStreamerModeMenuIcon: icon {{ "ayu/streamer", menuIconColor }};
ayuToBeginningMenuIcon: icon {{ "ayu/to_beginning", menuIconColor }};
ayuRepeatMenuIcon: icon {{ "ayu/repeat", menuIconColor }};
messageFieldAttachIcon: icon {{ "ayu/message_field/attach", menuIconColor }};
messageFieldCommandsIcon: icon {{ "ayu/message_field/commands", menuIconColor }};
@@ -735,7 +735,7 @@ void AddRepeatMessageAction(not_null<Ui::PopupMenu*> menu, HistoryItem *item) {
session->api().forwardMessages(std::move(resolvedDraft), action, [] {});
}
},
&st::menuIconRestore);
&st::ayuRepeatMenuIcon);
}
void AddReadUntilAction(not_null<Ui::PopupMenu*> menu, HistoryItem *item) {
@@ -357,7 +357,7 @@ void BuildContextMenuElements(SectionBuilder &builder, AyuSectionBuilder &ayu) {
.initialSelection = static_cast<int>(settings->showRepeatMessageInContextMenu()),
.options = options,
.setter = [](int i) { AyuSettings::getInstance().setShowRepeatMessageInContextMenu(static_cast<ContextMenuVisibility>(i)); },
.icon = { &st::menuIconRestore },
.icon = { &st::ayuRepeatMenuIcon },
.keywords = { u"repeat"_q, u"resend"_q },
});
if (settings->filtersEnabled()) {