Update main menu and stories icons.
BIN
Telegram/Resources/icons/info/info_stories_to_archive.png
Normal file
After Width: | Height: | Size: 671 B |
BIN
Telegram/Resources/icons/info/info_stories_to_archive@2x.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Telegram/Resources/icons/info/info_stories_to_archive@3x.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
Telegram/Resources/icons/info/info_stories_to_profile.png
Normal file
After Width: | Height: | Size: 770 B |
BIN
Telegram/Resources/icons/info/info_stories_to_profile@2x.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
Telegram/Resources/icons/info/info_stories_to_profile@3x.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
Telegram/Resources/icons/menu/archive_open.png
Normal file
After Width: | Height: | Size: 473 B |
BIN
Telegram/Resources/icons/menu/archive_open@2x.png
Normal file
After Width: | Height: | Size: 654 B |
BIN
Telegram/Resources/icons/menu/archive_open@3x.png
Normal file
After Width: | Height: | Size: 952 B |
Before Width: | Height: | Size: 610 B After Width: | Height: | Size: 613 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
Telegram/Resources/icons/menu/groups.png
Normal file
After Width: | Height: | Size: 685 B |
BIN
Telegram/Resources/icons/menu/groups@2x.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
Telegram/Resources/icons/menu/groups@3x.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Telegram/Resources/icons/menu/night_mode.png
Normal file
After Width: | Height: | Size: 656 B |
BIN
Telegram/Resources/icons/menu/night_mode@2x.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Telegram/Resources/icons/menu/night_mode@3x.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 695 B After Width: | Height: | Size: 602 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
Telegram/Resources/icons/menu/saved_messages.png
Normal file
After Width: | Height: | Size: 469 B |
BIN
Telegram/Resources/icons/menu/saved_messages@2x.png
Normal file
After Width: | Height: | Size: 758 B |
BIN
Telegram/Resources/icons/menu/saved_messages@3x.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 567 B After Width: | Height: | Size: 698 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 651 B |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
Telegram/Resources/icons/menu/stories_archive_section.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
Telegram/Resources/icons/menu/stories_archive_section@2x.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
Telegram/Resources/icons/menu/stories_archive_section@3x.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
Telegram/Resources/icons/menu/stories_save.png
Normal file
After Width: | Height: | Size: 729 B |
BIN
Telegram/Resources/icons/menu/stories_save@2x.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
Telegram/Resources/icons/menu/stories_save@3x.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 3.1 KiB |
BIN
Telegram/Resources/icons/menu/stories_saved_section.png
Normal file
After Width: | Height: | Size: 774 B |
BIN
Telegram/Resources/icons/menu/stories_saved_section@2x.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
Telegram/Resources/icons/menu/stories_saved_section@3x.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Telegram/Resources/icons/menu/stories_to_chats.png
Normal file
After Width: | Height: | Size: 793 B |
BIN
Telegram/Resources/icons/menu/stories_to_chats@2x.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
Telegram/Resources/icons/menu/stories_to_chats@3x.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
|
@ -477,10 +477,10 @@ void FillSourceMenu(
|
|||
controller->showSection(Info::Stories::Make(
|
||||
peer,
|
||||
Info::Stories::Tab::Archive));
|
||||
}, &st::menuIconStoriesArchive);
|
||||
}, &st::menuIconStoriesArchiveSection);
|
||||
add(tr::lng_stories_my_title(tr::now), [=] {
|
||||
controller->showSection(Info::Stories::Make(peer));
|
||||
}, &st::menuIconStoriesSaved);
|
||||
}, &st::menuIconStoriesSavedSection);
|
||||
} else {
|
||||
add(tr::lng_profile_send_message(tr::now), [=] {
|
||||
controller->showPeerHistory(peer);
|
||||
|
@ -508,7 +508,7 @@ void FillSourceMenu(
|
|||
if (in(Data::StorySourcesList::Hidden)) {
|
||||
add(tr::lng_stories_show_in_chats(tr::now), [=] {
|
||||
toggle(true);
|
||||
}, &st::menuIconAddToFolder);
|
||||
}, &st::menuIconStoriesToChats);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -176,12 +176,12 @@ infoTopBarDelete: IconButton(infoTopBarForward) {
|
|||
iconOver: icon {{ "info/info_media_delete", boxTitleCloseFgOver }};
|
||||
}
|
||||
infoTopBarSaveStories: IconButton(infoTopBarForward) {
|
||||
icon: icon {{ "menu/stories_saved", boxTitleCloseFg }};
|
||||
iconOver: icon {{ "menu/stories_saved", boxTitleCloseFgOver }};
|
||||
icon: icon {{ "info/info_stories_to_profile", boxTitleCloseFg }};
|
||||
iconOver: icon {{ "info/info_stories_to_profile", boxTitleCloseFgOver }};
|
||||
}
|
||||
infoTopBarArchiveStories: IconButton(infoTopBarForward) {
|
||||
icon: icon {{ "menu/archive", boxTitleCloseFg }};
|
||||
iconOver: icon {{ "menu/archive", boxTitleCloseFgOver }};
|
||||
icon: icon {{ "info/info_stories_to_archive", boxTitleCloseFg }};
|
||||
iconOver: icon {{ "info/info_stories_to_archive", boxTitleCloseFgOver }};
|
||||
}
|
||||
infoTopBar: InfoTopBar {
|
||||
height: infoTopBarHeight;
|
||||
|
@ -251,12 +251,12 @@ infoLayerTopBarDelete: IconButton(infoLayerTopBarForward) {
|
|||
iconOver: icon {{ "info/info_media_delete", boxTitleCloseFgOver }};
|
||||
}
|
||||
infoLayerTopBarSaveStories: IconButton(infoLayerTopBarForward) {
|
||||
icon: icon {{ "menu/stories_saved", boxTitleCloseFg }};
|
||||
iconOver: icon {{ "menu/stories_saved", boxTitleCloseFgOver }};
|
||||
icon: icon {{ "info/info_stories_to_profile", boxTitleCloseFg }};
|
||||
iconOver: icon {{ "info/info_stories_to_profile", boxTitleCloseFgOver }};
|
||||
}
|
||||
infoLayerTopBarArchiveStories: IconButton(infoLayerTopBarForward) {
|
||||
icon: icon {{ "menu/archive", boxTitleCloseFg }};
|
||||
iconOver: icon {{ "menu/archive", boxTitleCloseFgOver }};
|
||||
icon: icon {{ "info/info_stories_to_archive", boxTitleCloseFg }};
|
||||
iconOver: icon {{ "info/info_stories_to_archive", boxTitleCloseFgOver }};
|
||||
}
|
||||
infoLayerTopBar: InfoTopBar(infoTopBar) {
|
||||
height: infoLayerTopBarHeight;
|
||||
|
|
|
@ -1029,7 +1029,9 @@ void ListWidget::showContextMenu(
|
|||
? tr::lng_mediaview_save_to_profile
|
||||
: tr::lng_archived_add)(tr::now),
|
||||
crl::guard(this, [this] { toggleStoryPinSelected(); }),
|
||||
(pin ? &st::menuIconStoriesSaved : &st::menuIconArchive));
|
||||
(pin
|
||||
? &st::menuIconStoriesSave
|
||||
: &st::menuIconStoriesArchive));
|
||||
}
|
||||
if (canForwardAll()) {
|
||||
_contextMenu->addAction(
|
||||
|
@ -1070,7 +1072,9 @@ void ListWidget::showContextMenu(
|
|||
crl::guard(this, [=] {
|
||||
toggleStoryPin({ 1, globalId.itemId });
|
||||
}),
|
||||
(pin ? &st::menuIconStoriesSaved : &st::menuIconArchive));
|
||||
(pin
|
||||
? &st::menuIconStoriesSave
|
||||
: &st::menuIconStoriesArchive));
|
||||
}
|
||||
if (selectionData.canForward) {
|
||||
_contextMenu->addAction(
|
||||
|
|
|
@ -93,13 +93,7 @@ settingsIconThemes: icon {{ "settings/palette", settingsIconFg }};
|
|||
settingsIconGroup: icon {{ "settings/group", settingsIconFg }};
|
||||
settingsIconChannel: icon {{ "settings/channel", settingsIconFg }};
|
||||
settingsIconUser: icon {{ "settings/user", settingsIconFg }};
|
||||
settingsIconSavedMessages: icon {{ "settings/saved_messages", settingsIconFg }};
|
||||
settingsIconStories: icon {{ "settings/stories", settingsIconFg }};
|
||||
settingsIconKey: icon {{ "settings/key", settingsIconFg }};
|
||||
settingsIconReload: icon {{ "settings/reload", settingsIconFg }};
|
||||
settingsIconNight: icon {{ "settings/night", settingsIconFg }};
|
||||
settingsIconSettings: icon {{ "settings/settings", settingsIconFg }};
|
||||
settingsIconArchive: icon {{ "settings/archive", settingsIconFg }};
|
||||
settingsIconPlus: icon {{ "settings/plus", settingsIconFg }};
|
||||
settingsIconMinus: icon {{ "settings/minus", settingsIconFg }};
|
||||
settingsIconTimer: icon {{ "settings/timer", settingsIconFg }};
|
||||
|
|
|
@ -104,8 +104,15 @@ menuIconNewWindow: icon {{ "menu/new_window", menuIconColor }};
|
|||
menuIconChatBubble: icon {{ "menu/chat_bubble", menuIconColor }};
|
||||
menuIconPhone: icon {{ "menu/phone", menuIconColor }};
|
||||
menuIconChannel: icon {{ "menu/channel", menuIconColor }};
|
||||
menuIconStoriesSaved: icon {{ "menu/stories_saved", menuIconColor }};
|
||||
menuIconStoriesSavedSection: icon {{ "menu/stories_saved_section", menuIconColor }};
|
||||
menuIconStoriesArchiveSection: icon {{ "menu/stories_archive_section", menuIconColor }};
|
||||
menuIconStoriesSave: icon {{ "menu/stories_save", menuIconColor }};
|
||||
menuIconStoriesArchive: icon {{ "menu/stories_archive", menuIconColor }};
|
||||
menuIconArchiveOpen: icon {{ "menu/archive_open", menuIconColor }};
|
||||
menuIconGroups: icon {{ "menu/groups", menuIconColor }};
|
||||
menuIconSavedMessages: icon {{ "menu/saved_messages", menuIconColor }};
|
||||
menuIconNightMode: icon {{ "menu/night_mode", menuIconColor }};
|
||||
menuIconStoriesToChats: icon {{ "menu/stories_to_chats", menuIconColor }};
|
||||
|
||||
menuIconTTLAny: icon {{ "menu/auto_delete_plain", menuIconColor }};
|
||||
menuIconTTLAnyTextPosition: point(11px, 22px);
|
||||
|
@ -126,8 +133,8 @@ mediaMenuIconDelete: icon {{ "menu/delete", mediaviewMenuFg }};
|
|||
mediaMenuIconShowAll: icon {{ "menu/all_media", mediaviewMenuFg }};
|
||||
mediaMenuIconProfile: icon {{ "menu/profile", mediaviewMenuFg }};
|
||||
mediaMenuIconReport: icon {{ "menu/report", mediaviewMenuFg }};
|
||||
mediaMenuIconSaveStory: icon {{ "menu/stories_saved", mediaviewMenuFg }};
|
||||
mediaMenuIconArchiveStory: icon {{ "menu/archive", mediaviewMenuFg }};
|
||||
mediaMenuIconSaveStory: icon {{ "menu/stories_save", mediaviewMenuFg }};
|
||||
mediaMenuIconArchiveStory: icon {{ "menu/stories_archive", mediaviewMenuFg }};
|
||||
|
||||
menuIconDeleteAttention: icon {{ "menu/delete", menuIconAttentionColor }};
|
||||
menuIconLeaveAttention: icon {{ "menu/leave", menuIconAttentionColor }};
|
||||
|
|
|
@ -587,7 +587,7 @@ void MainMenu::setupArchive() {
|
|||
inner,
|
||||
tr::lng_archived_name(),
|
||||
st::mainMenuButton,
|
||||
{ &st::settingsIconArchive, kIconGray });
|
||||
{ &st::menuIconArchiveOpen });
|
||||
inner->add(
|
||||
object_ptr<Ui::PlainShadow>(inner),
|
||||
{ 0, st::mainMenuSkip, 0, st::mainMenuSkip });
|
||||
|
@ -734,13 +734,13 @@ void MainMenu::setupMenu() {
|
|||
if (!_controller->session().supportMode()) {
|
||||
addAction(
|
||||
tr::lng_create_group_title(),
|
||||
{ &st::settingsIconGroup, kIconLightBlue }
|
||||
{ &st::menuIconGroups }
|
||||
)->setClickedCallback([=] {
|
||||
controller->showNewGroup();
|
||||
});
|
||||
addAction(
|
||||
tr::lng_create_channel_title(),
|
||||
{ &st::settingsIconChannel, kIconLightOrange }
|
||||
{ &st::menuIconChannel }
|
||||
)->setClickedCallback([=] {
|
||||
controller->showNewChannel();
|
||||
});
|
||||
|
@ -752,10 +752,7 @@ void MainMenu::setupMenu() {
|
|||
_menu,
|
||||
tr::lng_menu_my_stories(),
|
||||
st::mainMenuButton,
|
||||
IconDescriptor{
|
||||
&st::settingsIconStories,
|
||||
kIconDarkBlue
|
||||
})));
|
||||
IconDescriptor{ &st::menuIconStoriesSavedSection })));
|
||||
const auto stories = &controller->session().data().stories();
|
||||
if (stories->archiveCount() > 0) {
|
||||
wrap->toggle(true, anim::type::instant);
|
||||
|
@ -776,32 +773,32 @@ void MainMenu::setupMenu() {
|
|||
|
||||
addAction(
|
||||
tr::lng_menu_contacts(),
|
||||
{ &st::settingsIconUser, kIconRed }
|
||||
{ &st::menuIconProfile }
|
||||
)->setClickedCallback([=] {
|
||||
controller->show(PrepareContactsBox(controller));
|
||||
});
|
||||
addAction(
|
||||
tr::lng_menu_calls(),
|
||||
{ &st::settingsIconCalls, kIconGreen }
|
||||
{ &st::menuIconPhone }
|
||||
)->setClickedCallback([=] {
|
||||
ShowCallsBox(controller);
|
||||
});
|
||||
addAction(
|
||||
tr::lng_saved_messages(),
|
||||
{ &st::settingsIconSavedMessages, kIconLightBlue }
|
||||
{ &st::menuIconSavedMessages }
|
||||
)->setClickedCallback([=] {
|
||||
controller->showPeerHistory(controller->session().user());
|
||||
});
|
||||
} else {
|
||||
addAction(
|
||||
tr::lng_profile_add_contact(),
|
||||
{ &st::settingsIconUser, kIconRed }
|
||||
{ &st::menuIconProfile }
|
||||
)->setClickedCallback([=] {
|
||||
controller->showAddContact();
|
||||
});
|
||||
addAction(
|
||||
rpl::single(u"Fix chats order"_q),
|
||||
{ &st::settingsIconPin, kIconGreen }
|
||||
{ &st::menuIconPin }
|
||||
)->toggleOn(rpl::single(
|
||||
_controller->session().settings().supportFixChatsOrder()
|
||||
))->toggledChanges(
|
||||
|
@ -811,21 +808,21 @@ void MainMenu::setupMenu() {
|
|||
}, _menu->lifetime());
|
||||
addAction(
|
||||
rpl::single(u"Reload templates"_q),
|
||||
{ &st::settingsIconReload, kIconLightBlue }
|
||||
{ &st::menuIconRestore }
|
||||
)->setClickedCallback([=] {
|
||||
_controller->session().supportTemplates().reload();
|
||||
});
|
||||
}
|
||||
addAction(
|
||||
tr::lng_menu_settings(),
|
||||
{ &st::settingsIconSettings, kIconPurple }
|
||||
{ &st::menuIconSettings }
|
||||
)->setClickedCallback([=] {
|
||||
controller->showSettings();
|
||||
});
|
||||
|
||||
_nightThemeToggle = addAction(
|
||||
tr::lng_menu_night_mode(),
|
||||
{ &st::settingsIconNight, kIconDarkBlue }
|
||||
{ &st::menuIconNightMode }
|
||||
)->toggleOn(_nightThemeSwitches.events_starting_with(
|
||||
Window::Theme::IsNightMode()
|
||||
));
|
||||
|
|