23rd
cb8f49aea0
Removed Q_OBJECT from ScrollArea.
2021-09-30 18:45:38 +03:00
23rd
900a7d0b2b
Appended references to const auto types in loop to prevent copying.
...
Suggested by Apple Clang.
2021-09-09 16:32:04 +03:00
John Preston
4273167aa2
Adjust outgoing bubble text and icon colors.
2021-09-07 23:41:08 +03:00
John Preston
2a2607d026
Custom colors in history_view_service_message module.
2021-09-06 13:13:26 +03:00
John Preston
beff635e45
Colorize bubbles according to a custom chat theme.
2021-08-30 20:32:57 +03:00
John Preston
3cd0f9d189
Start non-unique ChatTheme.
2021-08-30 20:32:57 +03:00
John Preston
3dadcd9352
Animated transition on pattern-on-gradient resize.
2021-08-16 10:26:08 +03:00
Ilya Fedin
414456d003
Revert "Use gtk clipboard when available to avoid https://bugreports.qt.io/browse/QTBUG-56595 "
...
Fixed in Qt by https://codereview.qt-project.org/c/qt/qtbase/+/306771
This reverts commit 3a91003eea
.
2021-08-12 08:51:10 +03:00
John Preston
c79cd0b692
Use Images::Read instead of App::readImage.
2021-08-11 18:55:08 +03:00
23rd
a030907598
Refactored sending bot commands.
2021-07-27 02:50:08 +03:00
23rd
34cac3092f
Moved utils for sending bot commands to separated file.
2021-07-27 02:50:08 +03:00
23rd
e1ff230547
Added info for empty section of scheduled messages.
2021-07-23 15:42:16 +03:00
John Preston
2ffda9f240
Don't use MTP* for ChatAdminRight / ChatRestriction.
2021-07-08 13:34:06 +03:00
23rd
bb76818cc8
Split adaptive changed rpl::producer into two.
2021-06-24 11:25:35 +04:00
23rd
b422ec025e
Removed Ui::show from classes that have pointer to Controller.
2021-06-17 10:57:45 +04:00
23rd
7cf79e1f8a
Removed Adaptive namespace from sections.
2021-06-16 09:31:32 +03:00
John Preston
68b0a85369
Rename RPCError to MTP::Error.
2021-03-12 16:58:26 +04:00
23rd
bff3291631
Fixed clearing of text field in sections when sending files.
2021-02-12 13:05:50 +03:00
23rd
062c451c27
Refactored handle of last editable message on Up arrow in sections.
2021-02-04 18:13:03 +04:00
23rd
b13e5ddce9
Moved scroll keys from sections to compose controls.
2021-02-04 18:13:03 +04:00
John Preston
8f0e23bb25
Improve editing messages with link previews.
...
Now preview state can be one of (allowed, cancelled, empty-in-edit).
In case of editing a message without preview we set the state to
empty-in-edit and it changes to allowed if the links in the message
are changed somehow.
That way we don't need to cancel the preview when editing a message
with a cancelled preview and at the same time adding a link to
a message that had no preview in the first place will add a preview.
2021-01-29 15:27:17 +04:00
23rd
dd01ece14a
Replaced snap util function with std::clamp.
2021-01-24 10:41:10 +03:00
23rd
15254599e2
Unified checking for editable message.
2021-01-11 22:46:56 +03:00
John Preston
b6483cb65c
Use shared_ptr<Memento> for sections.
2020-12-14 18:48:10 +04:00
23rd
24b8377a2a
Added initial implementation of display sections prevent.
2020-12-14 17:09:24 +04:00
John Preston
df420e4ccf
Revert "Use gtk not only to get image from clipboard, but also to set"
...
This reverts commit f88c132c96
.
Fixes #9885 .
2020-12-11 12:00:52 +04:00
Ilya Fedin
f88c132c96
Use gtk not only to get image from clipboard, but also to set
2020-12-08 21:18:49 +03:00
23rd
7b837e5138
Fixed section scrolling above voice recording lock.
2020-12-01 09:45:24 +03:00
23rd
0a0dcb9054
Delegated responsibility for clearing listen state to sections.
2020-11-19 18:41:13 +03:00
23rd
ab38ddc21d
Added ability to fill send context menu in ComposeControls.
2020-11-17 12:58:08 +03:00
John Preston
4a0efb9114
Remove Q_OBJECT from HistoryWidget.
2020-11-17 12:58:07 +03:00
John Preston
f04b3da76a
Add return from bot switch_pm to Scheduled/Replies.
2020-11-17 12:58:06 +03:00
John Preston
4a8b59b788
Pass reply info to Window::PeerMenu.
2020-11-17 12:58:06 +03:00
John Preston
4f22171dd6
Add start bot command and handle via@ links.
2020-11-17 12:57:03 +03:00
John Preston
cf6ca3b1ac
Handle bot command clicks in Replies / Scheduled.
2020-11-17 12:56:51 +03:00
John Preston
ac02e2be9e
Add FieldAutocomplete to ComposeControls.
2020-11-17 12:56:51 +03:00
23rd
57eb4f8234
Disabled drag'n'drop area when user is recording voice message.
2020-11-17 12:56:50 +03:00
23rd
ad4bf9b5c8
Improved VoiceRecordBar support in ComposeControls.
2020-11-17 12:56:50 +03:00
23rd
f7c6876e1b
Moved history_view_compose_controls to controls folder.
2020-11-17 12:56:50 +03:00
John Preston
75c420b9d7
Check items before deleting by 'Delete' key.
2020-10-30 18:32:21 +03:00
John Preston
77894d1445
Fix sending files in scheduled messages.
2020-10-30 18:32:21 +03:00
John Preston
ebbe75ac0a
Fix scrolling to message in pinned section.
2020-10-30 18:32:20 +03:00
John Preston
a614ccad97
Correctly check media when editing files.
2020-10-30 18:32:19 +03:00
John Preston
263d6a30f2
Improve grouped files layout in chat.
2020-10-30 18:32:19 +03:00
John Preston
bb4fdde616
Fix sending many files with a comment.
2020-10-30 18:32:19 +03:00
John Preston
8d2fa313b7
Add setting for grouping files.
2020-10-30 18:32:19 +03:00
John Preston
05eb549a3d
Move App::roundRect to Ui::FillRoundRect.
2020-10-30 18:32:18 +03:00
John Preston
b3b11bd9e7
Move PreparedFile/PreparedList to td_ui.
2020-10-30 18:32:18 +03:00
John Preston
39cf51c066
Move SendButton/EmojiButton to td_ui.
2020-10-30 18:32:18 +03:00
John Preston
ae298818a8
Implement message bar with animations.
2020-10-30 18:32:17 +03:00