mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
feat: add repeat icon
Co-authored-by: immat0x1 <immat0x1@protonmail.com>
This commit is contained in:
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 501 B |
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 870 B |
Executable
BIN
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()) {
|
||||
|
||||
Reference in New Issue
Block a user