Added some icons for global TTL settings and anti-spam.
BIN
Telegram/Resources/icons/info/edit/antispam.png
Normal file
After Width: | Height: | Size: 552 B |
BIN
Telegram/Resources/icons/info/edit/antispam@2x.png
Normal file
After Width: | Height: | Size: 986 B |
BIN
Telegram/Resources/icons/info/edit/antispam@3x.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
Telegram/Resources/icons/menu/false_positive.png
Normal file
After Width: | Height: | Size: 670 B |
BIN
Telegram/Resources/icons/menu/false_positive@2x.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
Telegram/Resources/icons/menu/false_positive@3x.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
Telegram/Resources/icons/settings/ttl/autodelete_off.png
Normal file
After Width: | Height: | Size: 454 B |
BIN
Telegram/Resources/icons/settings/ttl/autodelete_off@2x.png
Normal file
After Width: | Height: | Size: 757 B |
BIN
Telegram/Resources/icons/settings/ttl/autodelete_off@3x.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
Telegram/Resources/icons/settings/ttl/autodelete_on.png
Normal file
After Width: | Height: | Size: 414 B |
BIN
Telegram/Resources/icons/settings/ttl/autodelete_on@2x.png
Normal file
After Width: | Height: | Size: 670 B |
BIN
Telegram/Resources/icons/settings/ttl/autodelete_on@3x.png
Normal file
After Width: | Height: | Size: 966 B |
|
@ -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 }};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 }};
|
||||
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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);
|
||||
|
|