Added some icons for global TTL settings and anti-spam.

This commit is contained in:
23rd 2022-12-03 15:38:25 +03:00
parent badebb261b
commit c8d273c2a3
17 changed files with 9 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 B

View File

@ -383,6 +383,7 @@ infoRoundedIconAdministrators: icon {{ "info/edit/group_manage_admins", settings
infoRoundedIconInviteLinks: icon {{ "info/edit/group_manage_links", settingsIconFg }};
infoRoundedIconReactions: icon {{ "info/edit/group_manage_reactions", settingsIconFg }};
infoRoundedIconSignature: icon {{ "info/edit/channel_manage_signature", settingsIconFg }};
infoRoundedIconAntiSpam: icon {{ "info/edit/antispam", settingsIconFg }};
infoIconShare: icon {{ "info/info_share", infoIconFg }};
infoIconEdit: icon {{ "info/info_edit", infoIconFg }};

View File

@ -73,7 +73,7 @@ object_ptr<Ui::RpWidget> AntiSpamValidator::createButton() const {
rpl::single(QString()),
[] {},
st::manageGroupTopicsButton,
{ &st::infoRoundedIconAdministrators, Settings::kIconPurple }
{ &st::infoRoundedIconAntiSpam, Settings::kIconPurple }
))->toggleOn(rpl::single(
_channel->antiSpamMode()
) | rpl::then(state->toggled.events()));
@ -194,7 +194,7 @@ void AntiSpamValidator::addAction(
MTP_int(eventId)
)).done(showToast).send();
},
&st::menuIconAdmin);
&st::menuIconReportAntiSpam);
};
{
const auto it = _itemEventMsgIds.find(fakeId);

View File

@ -105,6 +105,9 @@ settingsPremiumIconStar: icon {{ "settings/premium/star", settingsIconFg }};
settingsPremiumIconVoice: icon {{ "settings/premium/voice", settingsIconFg }};
settingsPremiumIconFiles: icon {{ "settings/premium/files", settingsIconFg }};
settingsTTLChatsOff: icon {{ "settings/ttl/autodelete_off", windowSubTextFg }};
settingsTTLChatsOn: icon {{ "settings/ttl/autodelete_on", windowActiveTextFg }};
settingsIconAdd: icon {{ "settings/add", windowFgActive }};
settingsIconRemove: icon {{ "settings/remove", windowFgActive }};

View File

@ -61,8 +61,8 @@ void TTLRow::paintStatusText(
int outerWidth,
bool selected) {
auto icon = history()->peer->messagesTTL()
? &st::callArrowIn
: &st::callArrowOut;
? &st::settingsTTLChatsOn
: &st::settingsTTLChatsOff;
icon->paint(
p,
x + st::callArrowPosition.x(),

View File

@ -93,6 +93,7 @@ menuIconStartStream: icon {{ "menu/start_stream", menuIconColor }};
menuIconStartStreamWith: icon {{ "menu/start_stream_with", menuIconColor }};
menuIconVideoChat: icon {{ "menu/video_chat", menuIconColor }};
menuIconTranslate: icon {{ "menu/translate", menuIconColor }};
menuIconReportAntiSpam: icon {{ "menu/false_positive", menuIconColor }};
menuIconTTLAny: icon {{ "menu/auto_delete_plain", menuIconColor }};
menuIconTTLAnyTextPosition: point(11px, 22px);