Improve icons and phrases.

This commit is contained in:
John Preston 2022-12-20 17:11:58 +04:00
parent faf6c48f25
commit c7c652a277
19 changed files with 8 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -2326,7 +2326,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_context_animated_reactions_many#other" = "Reactions contain emoji from **{count} packs**.";
"lng_context_spoiler_effect" = "Hide with Spoiler";
"lng_context_disable_spoiler" = "Disable Spoiler Effect";
"lng_context_disable_spoiler" = "Remove Spoiler";
"lng_downloads_section" = "Downloads";
"lng_downloads_view_in_chat" = "View in chat";

View file

@ -36,7 +36,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
rpl::single(QString()),
[] {},
st::manageGroupTopicsButton,
{ &st::infoRoundedIconAntiSpam, Settings::kIconPurple }
{ &st::infoRoundedIconHideMembers, Settings::kIconDarkBlue }
))->toggleOn(rpl::single(
(megagroup->flags() & ChannelDataFlag::ParticipantsHidden) != 0
) | rpl::then(state->toggled.events()));

View file

@ -532,7 +532,7 @@ void SendFilesBox::addMenuButton() {
? tr::lng_context_disable_spoiler(tr::now)
: tr::lng_context_spoiler_effect(tr::now)),
[=] { toggleSpoilers(!spoilered); },
(spoilered ? &st::menuIconDisable : &st::menuIconSpoiler));
spoilered ? &st::menuIconSpoilerOff : &st::menuIconSpoiler);
if (hasSendMenu()) {
_menu->addSeparator();
}

View file

@ -388,6 +388,7 @@ infoRoundedIconInviteLinks: icon {{ "info/edit/group_manage_links", settingsIcon
infoRoundedIconReactions: icon {{ "info/edit/group_manage_reactions", settingsIconFg }};
infoRoundedIconSignature: icon {{ "info/edit/channel_manage_signature", settingsIconFg }};
infoRoundedIconAntiSpam: icon {{ "info/edit/antispam", settingsIconFg }};
infoRoundedIconHideMembers: icon {{ "info/edit/hidden_members", settingsIconFg }};
infoIconShare: icon {{ "info/info_share", infoIconFg }};
infoIconEdit: icon {{ "info/info_edit", infoIconFg }};

View file

@ -269,7 +269,7 @@ void AbstractSingleMediaPreview::showContextMenu(QPoint position) {
? tr::lng_context_disable_spoiler(tr::now)
: tr::lng_context_spoiler_effect(tr::now), [=] {
setSpoiler(!spoilered);
}, spoilered ? &st::menuIconDisable : &st::menuIconSpoiler);
}, spoilered ? &st::menuIconSpoilerOff : &st::menuIconSpoiler);
if (_menu->empty()) {
_menu = nullptr;

View file

@ -593,7 +593,7 @@ void AlbumPreview::showContextMenu(
? tr::lng_context_disable_spoiler(tr::now)
: tr::lng_context_spoiler_effect(tr::now), [=] {
thumb->setSpoiler(!spoilered);
}, spoilered ? &st::menuIconDisable : &st::menuIconSpoiler);
}, spoilered ? &st::menuIconSpoilerOff : &st::menuIconSpoiler);
if (_menu->empty()) {
_menu = nullptr;

View file

@ -94,7 +94,8 @@ menuIconStartStreamWith: icon {{ "menu/start_stream_with", menuIconColor }};
menuIconVideoChat: icon {{ "menu/video_chat", menuIconColor }};
menuIconTranslate: icon {{ "menu/translate", menuIconColor }};
menuIconReportAntiSpam: icon {{ "menu/false_positive", menuIconColor }};
menuIconSpoiler: icon {{ "menu/spoiler", menuIconColor }};
menuIconSpoiler: icon {{ "menu/spoiler_on", menuIconColor }};
menuIconSpoilerOff: icon {{ "menu/spoiler_off", menuIconColor }};
menuIconDisable: icon {{ "menu/disable", menuIconColor }};
menuIconPhotoSet: icon {{ "menu/photo_set", menuIconColor }};
menuIconPhotoSuggest: icon {{ "menu/photo_suggest", menuIconColor }};