mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Improve scheduled messages icon design.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
@@ -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*>(
|
||||
|
Reference in New Issue
Block a user