Commit Graph

198 Commits

Author SHA1 Message Date
23rd 98bb520f47 Adjusted code for refactor of input fields in lib_ui. 2023-09-04 17:36:54 +04:00
John Preston f10da51517 Improve phrases in SendFilesBox drag areas. 2023-08-30 23:32:17 +04:00
John Preston 653d7aadb1 Don't close EditCaptionBox with changed media by click. 2023-08-18 18:14:01 +02:00
John Preston 2c5d990e1c Implement full theming of attachments in stories. 2023-07-20 07:20:08 +04:00
John Preston 65afa2c402 Detach ComposeControls from SessionController. 2023-05-17 15:51:52 +04:00
John Preston ad3ec244e9 Fix pasting file for media replacement. 2023-04-11 20:06:38 +04:00
John Preston 42c96b4c7f Edit media captions in message field. 2023-04-11 19:17:42 +04:00
John Preston 9c91b03a5b Don't cancel caption edit by outside click. 2023-03-17 15:57:46 +04:00
John Preston ff4af1b9bc Fix pasting images from Firefox on Windows.
Fixes #10564.

Together with the image data Firefox sets to the clipboard an URLs list
which has a path to local temp file, created from that image.

Reading images from disk is slower + sometimes the content of the file
is wrong so for this case we prefer to read the image data directly.
2023-03-08 16:10:36 +04:00
John Preston b1d1d73541 Copy/Paste original JPEG bytes to clipboard. 2023-01-13 12:46:17 +04:00
John Preston 84288112fc Allow sending photos larger 1280 (experimental).
Improves #6520.
2023-01-02 14:26:41 +04:00
John Preston 9513aaa768 Allow accepting video userpic suggestions. 2022-12-26 14:24:07 +04:00
John Preston 2ce8094932 Add spoiler toggle to three dot menu in SendFilesBox. 2022-12-26 14:24:06 +04:00
John Preston bd1d7f4d96 Allow apply spoiler when editing to another media. 2022-12-26 14:24:05 +04:00
John Preston 749fb52113 Implement animated spoilers. 2022-09-18 16:52:30 +04:00
John Preston bc340d75c4 Insert / Copy emoji from pack preview. 2022-09-14 14:45:23 +04:00
John Preston d4810713cb Fly-animate reactions from the new context menu. 2022-09-06 17:08:20 +04:00
Ilya Fedin e20840b4d4 Use KUrlMimeData for clipboard xdg-desktop-portal integration 2022-08-30 20:25:10 +04:00
John Preston d1a81a83b4 Fix crash in editing media captions. 2022-08-16 09:21:12 +03:00
John Preston c8c3f43853 Fix editing media captions with custom emoji. 2022-08-16 08:27:55 +03:00
John Preston b7cc2e9894 Don't pass redundant MTPUpdates arguments. 2022-08-05 13:37:41 +03:00
John Preston f4b80d8714 Show premium emoji toast / send to Saved Messages. 2022-08-02 20:59:50 +03:00
John Preston 59903b0b1c Suggest animated emoji in Saved Messages. 2022-08-02 19:23:06 +03:00
John Preston b42f2784ab Allow sending premium emoji to Saved Messages. 2022-08-02 13:20:38 +03:00
John Preston 2d6008f6ca Fix custom emoji in edit caption / send files box. 2022-07-26 20:12:13 +03:00
John Preston 806c5ddf29 Support animated emoji in caption edit fields. 2022-07-26 20:12:08 +03:00
23rd 7b00671ccf Moved out all values of premium limits to single place. 2022-06-16 13:29:37 +03:00
23rd 629574685e Fixed display of most of simple toasts in corresponding window. 2022-06-14 14:24:21 +03:00
John Preston 853cafe195 Show premium stickers lock icon. 2022-05-20 18:57:01 +04:00
John Preston 26c99cea7c Show all premium limits boxes. 2022-05-19 17:27:03 +04:00
John Preston 6dedf7c63e Update API scheme to layer 143. 2022-05-19 17:27:02 +04:00
23rd 2f8efb5ce6 Moved out setup of top and bottom scroll shadows to separated file. 2022-04-13 14:26:11 +03:00
John Preston 32d09f189b Use rpl::empty instead of rpl::empty_value(). 2022-03-11 09:56:29 +04:00
23rd cf55f1a7cd Added ability to use EditLinkBox without SessionController. 2022-03-06 18:11:47 +03:00
23rd c6cdf0a4c4 Fixed ability to send file to photo/video album from EditCaptionBox. 2022-03-04 18:58:07 +03:00
23rd 0e08cffedb Fixed error display in EditCaptionBox. 2022-03-04 18:58:07 +03:00
23rd f57ef43dc7 Fixed minimal height of image thumbnail in EditCaptionBox. 2022-03-04 18:58:07 +03:00
John Preston 773755d70e Send as a channel in HistoryWidget. 2021-11-26 18:00:18 +04:00
23rd ce7a3c354c Simplified conditions for hiding hint for photo editor. 2021-09-07 23:41:07 +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
23rd 3dc73417e9 Fixed some bugs in EditCaptionBox.
Fixed checkbox display in some cases.
Fixed editing of album items.

Regression was introduced in 7e83088a84.
2021-07-20 19:30:00 +03:00
23rd 7e83088a84 Completely refactored EditCaptionBox.
Moved preview content to separate widget.
Increased caption area height.
2021-07-13 22:15:49 +03:00
Ilya Fedin 79cc797aff Fix -Wunused-variable warnings 2021-07-13 21:43:34 +03:00
23rd f1669674d8 Moved formatting of image size text to single place.
Fixed wrong size display on retina screens.
Replaced "x" with special character.
2021-07-09 13:15:31 +03:00
23rd a631a28092 Removed App::pixmapFromImageInPlace. 2021-07-06 12:13:06 +03:00
23rd edfd9bedc1 Improved style for controls in EditCaptionBox. 2021-07-06 12:13:06 +03:00
23rd 948302cf02 Added setting to hide photo editor hint. 2021-07-06 12:13:06 +03:00
23rd e4cff8cb4b Added photo editor hint to EditCaptionBox. 2021-07-06 12:13:06 +03:00
23rd 5bd17ae1b2 Fixed caption area height in EditCaptionBox.
Regression was introduced in 51f960442e.
2021-07-06 12:13:06 +03:00
23rd 22213a71c1 Added ability to open photo editor in EditCaptionBox with left-click. 2021-07-06 12:13:06 +03:00