Update icons in the compose controls.
BIN
Telegram/Resources/icons/chat/input_attach.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
Telegram/Resources/icons/chat/input_attach@2x.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
Telegram/Resources/icons/chat/input_attach@3x.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
BIN
Telegram/Resources/icons/chat/input_bot_command.png
Normal file
After Width: | Height: | Size: 654 B |
BIN
Telegram/Resources/icons/chat/input_bot_command@2x.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Telegram/Resources/icons/chat/input_bot_command@3x.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
Telegram/Resources/icons/chat/input_bot_keyboard.png
Normal file
After Width: | Height: | Size: 585 B |
BIN
Telegram/Resources/icons/chat/input_bot_keyboard@2x.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Telegram/Resources/icons/chat/input_bot_keyboard@3x.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
Telegram/Resources/icons/chat/input_bot_keyboard_hide.png
Normal file
After Width: | Height: | Size: 643 B |
BIN
Telegram/Resources/icons/chat/input_bot_keyboard_hide@2x.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Telegram/Resources/icons/chat/input_bot_keyboard_hide@3x.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
Telegram/Resources/icons/chat/input_record.png
Normal file
After Width: | Height: | Size: 665 B |
BIN
Telegram/Resources/icons/chat/input_record@2x.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
Telegram/Resources/icons/chat/input_record@3x.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
Telegram/Resources/icons/chat/input_scheduled.png
Normal file
After Width: | Height: | Size: 496 B |
BIN
Telegram/Resources/icons/chat/input_scheduled@2x.png
Normal file
After Width: | Height: | Size: 1,005 B |
BIN
Telegram/Resources/icons/chat/input_scheduled@3x.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
Telegram/Resources/icons/chat/input_scheduled_dot.png
Normal file
After Width: | Height: | Size: 329 B |
BIN
Telegram/Resources/icons/chat/input_scheduled_dot@2x.png
Normal file
After Width: | Height: | Size: 629 B |
BIN
Telegram/Resources/icons/chat/input_scheduled_dot@3x.png
Normal file
After Width: | Height: | Size: 888 B |
BIN
Telegram/Resources/icons/chat/input_silent.png
Normal file
After Width: | Height: | Size: 661 B |
BIN
Telegram/Resources/icons/chat/input_silent@2x.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Telegram/Resources/icons/chat/input_silent@3x.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
Telegram/Resources/icons/chat/input_smile.png
Normal file
After Width: | Height: | Size: 787 B |
BIN
Telegram/Resources/icons/chat/input_smile@2x.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
Telegram/Resources/icons/chat/input_smile@3x.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 919 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 706 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 546 B |
Before Width: | Height: | Size: 946 B |
Before Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 669 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 877 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 362 B |
Before Width: | Height: | Size: 652 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 221 B |
Before Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 622 B |
Before Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 660 B |
Before Width: | Height: | Size: 1.3 KiB |
|
@ -3996,7 +3996,7 @@ void HistoryWidget::moveFieldControls() {
|
||||||
// (_botStart|_unblock|_joinChannel|_muteUnmute)
|
// (_botStart|_unblock|_joinChannel|_muteUnmute)
|
||||||
|
|
||||||
auto buttonsBottom = bottom - _attachToggle->height();
|
auto buttonsBottom = bottom - _attachToggle->height();
|
||||||
auto left = 0;
|
auto left = st::historySendRight;
|
||||||
_attachToggle->moveToLeft(left, buttonsBottom); left += _attachToggle->width();
|
_attachToggle->moveToLeft(left, buttonsBottom); left += _attachToggle->width();
|
||||||
_field->moveToLeft(left, bottom - _field->height() - st::historySendPadding);
|
_field->moveToLeft(left, bottom - _field->height() - st::historySendPadding);
|
||||||
auto right = st::historySendRight;
|
auto right = st::historySendRight;
|
||||||
|
|
|
@ -1047,6 +1047,7 @@ void ComposeControls::init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComposeControls::orderControls() {
|
void ComposeControls::orderControls() {
|
||||||
|
_voiceRecordBar->raise();
|
||||||
_send->raise();
|
_send->raise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1764,7 +1765,7 @@ void ComposeControls::updateControlsGeometry(QSize size) {
|
||||||
|
|
||||||
const auto buttonsTop = size.height() - _attachToggle->height();
|
const auto buttonsTop = size.height() - _attachToggle->height();
|
||||||
|
|
||||||
auto left = 0;
|
auto left = st::historySendRight;
|
||||||
_attachToggle->moveToLeft(left, buttonsTop);
|
_attachToggle->moveToLeft(left, buttonsTop);
|
||||||
left += _attachToggle->width();
|
left += _attachToggle->width();
|
||||||
_field->moveToLeft(
|
_field->moveToLeft(
|
||||||
|
@ -1844,6 +1845,7 @@ void ComposeControls::updateMessagesTTLShown() {
|
||||||
updateControlsGeometry(_wrap->size());
|
updateControlsGeometry(_wrap->size());
|
||||||
} else if (shown && !_ttlInfo) {
|
} else if (shown && !_ttlInfo) {
|
||||||
_ttlInfo = std::make_unique<Controls::TTLButton>(_wrap.get(), peer);
|
_ttlInfo = std::make_unique<Controls::TTLButton>(_wrap.get(), peer);
|
||||||
|
orderControls();
|
||||||
updateControlsVisibility();
|
updateControlsVisibility();
|
||||||
updateControlsGeometry(_wrap->size());
|
updateControlsGeometry(_wrap->size());
|
||||||
}
|
}
|
||||||
|
|
|
@ -281,22 +281,21 @@ historyContactStatusMinSkip: 16px;
|
||||||
|
|
||||||
historySendIcon: icon {{ "send_control_send", historySendIconFg }};
|
historySendIcon: icon {{ "send_control_send", historySendIconFg }};
|
||||||
historySendIconOver: icon {{ "send_control_send", historySendIconFgOver }};
|
historySendIconOver: icon {{ "send_control_send", historySendIconFgOver }};
|
||||||
historySendIconPosition: point(11px, 11px);
|
historySendIconPosition: point(10px, 11px);
|
||||||
historySendSize: size(46px, 46px);
|
historySendSize: size(44px, 46px);
|
||||||
historyScheduleIcon: icon {{ "send_control_schedule", historyComposeAreaBg }};
|
historyScheduleIcon: icon {{ "send_control_schedule", historyComposeAreaBg }};
|
||||||
historyScheduleIconPosition: point(8px, 8px);
|
historyScheduleIconPosition: point(7px, 8px);
|
||||||
historyEditSaveIcon: icon {{ "send_control_save", historySendIconFg, point(3px, 7px) }};
|
historyEditSaveIcon: icon {{ "send_control_save", historySendIconFg, point(2px, 7px) }};
|
||||||
historyEditSaveIconOver: icon {{ "send_control_save", historySendIconFgOver, point(3px, 7px) }};
|
historyEditSaveIconOver: icon {{ "send_control_save", historySendIconFgOver, point(2px, 7px) }};
|
||||||
|
|
||||||
historyAttach: IconButton {
|
historyAttach: IconButton(defaultIconButton) {
|
||||||
width: 46px;
|
width: 44px;
|
||||||
height: 46px;
|
height: 46px;
|
||||||
|
|
||||||
icon: icon {{ "send_control_attach", historyComposeIconFg }};
|
icon: icon {{ "chat/input_attach", historyComposeIconFg }};
|
||||||
iconOver: icon {{ "send_control_attach", historyComposeIconFgOver }};
|
iconOver: icon {{ "chat/input_attach", historyComposeIconFgOver }};
|
||||||
iconPosition: point(11px, 11px);
|
|
||||||
|
|
||||||
rippleAreaPosition: point(3px, 3px);
|
rippleAreaPosition: point(2px, 3px);
|
||||||
rippleAreaSize: 40px;
|
rippleAreaSize: 40px;
|
||||||
ripple: RippleAnimation(defaultRippleAnimation) {
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
||||||
color: windowBgOver;
|
color: windowBgOver;
|
||||||
|
@ -306,15 +305,13 @@ historyAttach: IconButton {
|
||||||
historyAttachEmoji: IconButton(historyAttach) {
|
historyAttachEmoji: IconButton(historyAttach) {
|
||||||
icon: icon {{ "send_control_emoji", historyComposeIconFg }};
|
icon: icon {{ "send_control_emoji", historyComposeIconFg }};
|
||||||
iconOver: icon {{ "send_control_emoji", historyComposeIconFgOver }};
|
iconOver: icon {{ "send_control_emoji", historyComposeIconFgOver }};
|
||||||
iconPosition: point(-1px, -1px);
|
|
||||||
}
|
}
|
||||||
historyMessagesTTL: IconButton(historyAttach) {
|
historyMessagesTTL: IconButton(historyAttach) {
|
||||||
icon: icon {{ "chat/send_control_autodelete_1d", historyComposeIconFg }};
|
icon: icon {{ "chat/input_autodelete_1d", historyComposeIconFg }};
|
||||||
iconOver: icon {{ "chat/send_control_autodelete_1d", historyComposeIconFgOver }};
|
iconOver: icon {{ "chat/input_autodelete_1d", historyComposeIconFgOver }};
|
||||||
iconPosition: point(-1px, -1px);
|
|
||||||
}
|
}
|
||||||
historyMessagesTTL2Icon: icon {{ "chat/send_control_autodelete_7d", historyComposeIconFg }};
|
historyMessagesTTL2Icon: icon {{ "chat/input_autodelete_7d", historyComposeIconFg }};
|
||||||
historyMessagesTTL2IconOver: icon {{ "chat/send_control_autodelete_7d", historyComposeIconFgOver }};
|
historyMessagesTTL2IconOver: icon {{ "chat/input_autodelete_7d", historyComposeIconFgOver }};
|
||||||
historyAttachEmojiFgActive: windowActiveTextFg;
|
historyAttachEmojiFgActive: windowActiveTextFg;
|
||||||
historyAttachEmojiActive: icon {{ "send_control_emoji", historyAttachEmojiFgActive }};
|
historyAttachEmojiActive: icon {{ "send_control_emoji", historyAttachEmojiFgActive }};
|
||||||
historyAttachEmojiTooltipDelta: 4px;
|
historyAttachEmojiTooltipDelta: 4px;
|
||||||
|
@ -327,28 +324,26 @@ historyEmojiCircleFg: historyComposeIconFg;
|
||||||
historyEmojiCircleFgOver: historyComposeIconFgOver;
|
historyEmojiCircleFgOver: historyComposeIconFgOver;
|
||||||
historyEmojiCirclePart: 3.5;
|
historyEmojiCirclePart: 3.5;
|
||||||
historyBotKeyboardShow: IconButton(historyAttach) {
|
historyBotKeyboardShow: IconButton(historyAttach) {
|
||||||
icon: icon {{ "send_control_bot_keyboard", historyComposeIconFg }};
|
icon: icon {{ "chat/input_bot_keyboard", historyComposeIconFg }};
|
||||||
iconOver: icon {{ "send_control_bot_keyboard", historyComposeIconFgOver }};
|
iconOver: icon {{ "chat/input_bot_keyboard", historyComposeIconFgOver }};
|
||||||
}
|
}
|
||||||
historyBotKeyboardHide: IconButton(historyAttach) {
|
historyBotKeyboardHide: IconButton(historyAttach) {
|
||||||
icon: icon {{ "send_control_bot_keyboard_hide", historyComposeIconFg }};
|
icon: icon {{ "chat/input_bot_keyboard_hide", historyComposeIconFg }};
|
||||||
iconOver: icon {{ "send_control_bot_keyboard_hide", historyComposeIconFgOver }};
|
iconOver: icon {{ "chat/input_bot_keyboard_hide", historyComposeIconFgOver }};
|
||||||
iconPosition: point(11px, 16px);
|
|
||||||
}
|
}
|
||||||
historyBotCommandStart: IconButton(historyAttach) {
|
historyBotCommandStart: IconButton(historyAttach) {
|
||||||
icon: icon {{ "send_control_bot_command", historyComposeIconFg }};
|
icon: icon {{ "chat/input_bot_command", historyComposeIconFg }};
|
||||||
iconOver: icon {{ "send_control_bot_command", historyComposeIconFgOver }};
|
iconOver: icon {{ "chat/input_bot_command", historyComposeIconFgOver }};
|
||||||
}
|
}
|
||||||
historyScheduledToggle: IconButton(historyAttach) {
|
historyScheduledToggle: IconButton(historyAttach) {
|
||||||
icon: icon {
|
icon: icon {
|
||||||
{ "send_control_scheduled", historyComposeIconFg },
|
{ "chat/input_scheduled", historyComposeIconFg },
|
||||||
{ "send_control_scheduled_dot", attentionButtonFg }
|
{ "chat/input_scheduled_dot", attentionButtonFg }
|
||||||
};
|
};
|
||||||
iconOver: icon {
|
iconOver: icon {
|
||||||
{ "send_control_scheduled", historyComposeIconFgOver },
|
{ "chat/input_scheduled", historyComposeIconFgOver },
|
||||||
{ "send_control_scheduled_dot", attentionButtonFg }
|
{ "chat/input_scheduled_dot", attentionButtonFg }
|
||||||
};
|
};
|
||||||
iconPosition: point(-1px, -1px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
historyRecordVoiceFg: historyComposeIconFg;
|
historyRecordVoiceFg: historyComposeIconFg;
|
||||||
|
@ -358,8 +353,8 @@ historyRecordVoiceFgActive: windowBgActive;
|
||||||
historyRecordVoiceFgActiveIcon: windowFgActive;
|
historyRecordVoiceFgActiveIcon: windowFgActive;
|
||||||
historyRecordVoiceShowDuration: 120;
|
historyRecordVoiceShowDuration: 120;
|
||||||
historyRecordVoiceDuration: 120;
|
historyRecordVoiceDuration: 120;
|
||||||
historyRecordVoice: icon {{ "send_control_record", historyRecordVoiceFg }};
|
historyRecordVoice: icon {{ "chat/input_record", historyRecordVoiceFg }};
|
||||||
historyRecordVoiceOver: icon {{ "send_control_record", historyRecordVoiceFgOver }};
|
historyRecordVoiceOver: icon {{ "chat/input_record", historyRecordVoiceFgOver }};
|
||||||
historyRecordVoiceActive: icon {{ "send_control_record_active", historyRecordVoiceFgActiveIcon }};
|
historyRecordVoiceActive: icon {{ "send_control_record_active", historyRecordVoiceFgActiveIcon }};
|
||||||
historyRecordSendIconPosition: point(2px, 0px);
|
historyRecordSendIconPosition: point(2px, 0px);
|
||||||
historyRecordVoiceRippleBgActive: lightButtonBgOver;
|
historyRecordVoiceRippleBgActive: lightButtonBgOver;
|
||||||
|
@ -410,6 +405,7 @@ historyRecordLockRippleMargin: margins(6px, 6px, 6px, 6px);
|
||||||
historyRecordDelete: IconButton(historyAttach) {
|
historyRecordDelete: IconButton(historyAttach) {
|
||||||
icon: icon {{ "info_media_delete", historyComposeIconFg }};
|
icon: icon {{ "info_media_delete", historyComposeIconFg }};
|
||||||
iconOver: icon {{ "info_media_delete", historyComposeIconFgOver }};
|
iconOver: icon {{ "info_media_delete", historyComposeIconFgOver }};
|
||||||
|
iconPosition: point(10px, 11px);
|
||||||
}
|
}
|
||||||
historyRecordWaveformRightSkip: 10px;
|
historyRecordWaveformRightSkip: 10px;
|
||||||
historyRecordWaveformBgMargins: margins(5px, 7px, 5px, 7px);
|
historyRecordWaveformBgMargins: margins(5px, 7px, 5px, 7px);
|
||||||
|
@ -422,13 +418,13 @@ historyRecordCancelButtonWidth: 100px;
|
||||||
historyRecordCancelButtonFg: lightButtonFg;
|
historyRecordCancelButtonFg: lightButtonFg;
|
||||||
|
|
||||||
historySilentToggle: IconButton(historyBotKeyboardShow) {
|
historySilentToggle: IconButton(historyBotKeyboardShow) {
|
||||||
icon: icon {{ "send_control_silent_off", historyComposeIconFg }};
|
icon: icon {{ "chat/input_silent", historyComposeIconFg }};
|
||||||
iconOver: icon {{ "send_control_silent_off", historyComposeIconFgOver }};
|
iconOver: icon {{ "chat/input_silent", historyComposeIconFgOver }};
|
||||||
}
|
}
|
||||||
|
|
||||||
historySilentToggleCrossLine: CrossLineAnimation {
|
historySilentToggleCrossLine: CrossLineAnimation {
|
||||||
fg: historyComposeIconFg;
|
fg: historyComposeIconFg;
|
||||||
icon: icon {{ "send_control_silent_off", historyComposeIconFg }};
|
icon: icon {{ "chat/input_silent", historyComposeIconFg }};
|
||||||
startPosition: point(5px, 3px);
|
startPosition: point(5px, 3px);
|
||||||
endPosition: point(21px, 18px);
|
endPosition: point(21px, 18px);
|
||||||
stroke: 2px;
|
stroke: 2px;
|
||||||
|
|