Improve scheduled messages icon design.

This commit is contained in:
John Preston 2019-08-16 08:24:43 +03:00
parent fb96d2eef8
commit 1c9775baf9
9 changed files with 13 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

View File

@ -268,8 +268,15 @@ historyBotCommandStart: IconButton(historyAttach) {
iconOver: icon {{ "send_control_bot_command", historyComposeIconFgOver }};
}
historyScheduledToggle: IconButton(historyAttach) {
icon: icon {{ "dialogs_calendar", historyComposeIconFg }};
iconOver: icon {{ "dialogs_calendar", historyComposeIconFgOver }};
icon: icon {
{ "send_control_scheduled", historyComposeIconFg },
{ "send_control_scheduled_dot", attentionButtonFg }
};
iconOver: icon {
{ "send_control_scheduled", historyComposeIconFgOver },
{ "send_control_scheduled_dot", attentionButtonFg }
};
iconPosition: point(-1px, -1px);
}
historyRecordVoiceFg: historyComposeIconFg;
historyRecordVoiceFgOver: historyComposeIconFgOver;

View File

@ -638,7 +638,7 @@ HistoryWidget::HistoryWidget(
if (action.options.scheduled) {
crl::on_main(this, [=, history = action.history]{
controller->showSection(
HistoryView::ScheduledMemento(action.history));
HistoryView::ScheduledMemento(history));
});
} else {
fastShowAtEnd(action.history);

View File

@ -810,7 +810,9 @@ void AppendEmojiPacks(std::vector<PickerScrubberItem> &to) {
if (const auto error = RestrictionToSendStickers()) {
Ui::show(Box<InformBox>(*error));
}
Api::SendExistingDocument(chat.history(), document);
Api::SendExistingDocument(
Api::MessageToSend(chat.history()),
document);
return true;
} else if (const auto emoji = _stickers[index].emoji) {
if (const auto inputField = qobject_cast<QTextEdit*>(