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