Commit Graph

477 Commits

Author SHA1 Message Date
John Preston
d28bd36d22 Load and show list of users who viewed a story. 2023-07-20 07:20:10 +04:00
John Preston
2c5d990e1c Implement full theming of attachments in stories. 2023-07-20 07:20:08 +04:00
John Preston
75d2b5994f Apply dark theme to reply controls in stories. 2023-07-20 07:20:08 +04:00
John Preston
2fb7bdc803 Skip refocus InputField::Inner if field unfocused.
I hope this fixes #26223.
2023-05-24 21:22:26 +04:00
John Preston
65afa2c402 Detach ComposeControls from SessionController. 2023-05-17 15:51:52 +04:00
John Preston
27aa678f6a Version 4.8: Fix build with GCC. 2023-04-22 16:09:52 +04:00
John Preston
8a64a9b2ad Close forward options box by Enter. 2023-04-21 14:15:19 +04:00
John Preston
458082c738 Add correct icons for dark/light mode switch. 2023-04-21 13:42:06 +04:00
John Preston
4617ba5fb9 Add couple of phrases to the langpack. 2023-04-20 23:02:33 +04:00
John Preston
65f54d937f Toggle wallpaper dark mode / edit dimming. 2023-04-20 22:55:42 +04:00
John Preston
a27ef55ff8 Improve chat theme selector design. 2023-04-20 11:55:23 +04:00
John Preston
da7d4687ca Drop custom wallpaper on theme change. 2023-04-18 22:06:53 +04:00
John Preston
352ae5100a Support chat wallpaper set from gallery. 2023-04-18 16:47:31 +04:00
John Preston
bf27185feb Show custom chat wallpapers in chats. 2023-04-17 16:35:50 +04:00
John Preston
42c96b4c7f Edit media captions in message field. 2023-04-11 19:17:42 +04:00
John Preston
77939ae9bd Add more-chats-added bar to cloud folders. 2023-04-11 19:17:38 +04:00
Ilya Fedin
d52cabb386 Update to the new WebKitGTK 6.0 API 2023-04-02 17:19:15 +04:00
23rd
8b61cf1ee3 Fixed style of menu for sponsored messages with large additional info. 2023-03-16 21:44:46 +03:00
John Preston
7682ccf6a7 Update API scheme to layer 155. 2023-03-12 07:25:39 +04:00
John Preston
05ffc79539 Handle only left click on voice chat bar. 2023-03-08 16:59:28 +04:00
23rd
728ec0974a Slightly improved style of menu for sponsored messages. 2023-03-07 08:42:29 +03:00
John Preston
b95ea28e12 Implement dates of who read your message list. 2023-03-07 08:42:29 +03:00
23rd
ae5f2add0e Added possible info about sponsors to menu from sponsored messages. 2023-03-07 08:42:29 +03:00
John Preston
4fe568cb82 Implement switch_webview and "web_app_switch_inline_query". 2023-03-07 08:42:29 +03:00
John Preston
ce0e07d332 Implement "Save Power on Low Battery" function. 2023-03-01 09:12:02 +04:00
John Preston
d1230167bf Improve title controls in Windows media viewer. 2023-03-01 09:12:02 +04:00
John Preston
2a4c39b9d7 Implement some power saving options. 2023-03-01 09:12:02 +04:00
John Preston
4a37846605 Feed initial messages slice to translation tracker. 2023-02-07 17:29:30 +04:00
John Preston
3ac86adf10 Support translations in replies / pinned. 2023-02-02 22:12:33 +04:00
John Preston
6957376a21 Improve translation bar styles. 2023-02-02 22:12:33 +04:00
John Preston
2886ae6909 Block field with toast if texts are not allowed. 2023-02-02 22:12:33 +04:00
23rd
a8a9b638bb Removed unused keys from chat.style. 2023-02-02 22:12:33 +04:00
John Preston
f5be551ff8 Add translation bar dropdown menu. 2023-02-02 22:12:32 +04:00
John Preston
719466fcac Initial chat-translation feature implementation. 2023-02-02 22:12:32 +04:00
John Preston
54117cc762 Fix styles in reactions expanded panel. 2023-02-02 22:12:31 +04:00
John Preston
554f66f089 Support separate message type group restrictions. 2023-02-02 22:12:31 +04:00
John Preston
5e12cd27df Fix web_app_request_[theme|viewport].
Fixes #25752.
2023-01-20 09:35:18 +04:00
John Preston
ff331c040a Allow huge range of interface scales. 2023-01-09 09:05:07 +04:00
23rd
6467ba7739 Fixed painting of photo with spoiler in SendFilesBox on Retina. 2023-01-09 09:05:07 +04:00
John Preston
84288112fc Allow sending photos larger 1280 (experimental).
Improves #6520.
2023-01-02 14:26:41 +04:00
John Preston
b6ade7ce19 Fix spoiler / custom emoji in pinned bar unpause. 2022-12-30 14:27:00 +04:00
John Preston
d02819db13 Support spoilers in reply previews / pinned bar. 2022-12-30 14:06:20 +04:00
John Preston
80e932a083 Fix group call userpics on Retina. 2022-12-29 14:06:52 +04:00
Ilya Fedin
66093f0cb5 cTimeFormat/cDateFormat -> QLocale::ShortFormat
This allows to use platform-specific formatting functions
2022-12-28 10:28:12 +04:00
Ilya Fedin
1b8352f878 Fix image format mime type filter 2022-12-28 09:56:16 +04:00
John Preston
1bb6b07515 Fix build with GCC. 2022-12-26 14:24:08 +04:00
John Preston
c647afec02 Support clipboard reading for attach menu bots. 2022-12-26 14:24:07 +04:00
John Preston
c7c652a277 Improve icons and phrases. 2022-12-26 14:24:06 +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
5bee6310c0 Allow sending media with spoilers. 2022-12-26 14:24:05 +04:00
John Preston
48cf0a4382 Implement suggested profile photo message. 2022-12-26 14:24:05 +04:00
Ilya Fedin
36de2e98d4 Get supported image extensions from QImageReader 2022-12-26 14:23:23 +04:00
Ilya Fedin
9fba9048af Use the same check for drag'n'drop image type as for file dialog
The code path when choosing an image in file dialog tries to read a QImage with Images::Read and then only checks that mime type starts with image/ in ValidPhotoForAlbum

Core::FileIsImage and QImageReader::canRead checks should provide the same behavior
2022-12-26 14:23:23 +04:00
Ilya Fedin
3991be752c Replace various QDesktopService::openUrl with File::OpenUrl for correct operation on Linux
This also reverts commit bb94507af1.
2022-12-23 14:02:25 +04:00
John Preston
a4e4681835 Add jump-to-topic panel in View as Messages. 2022-12-02 18:20:22 +04:00
John Preston
5d8a2bc7b7 Implement simple sub-column for topics list. 2022-11-30 13:03:42 +04:00
23rd
2acedca6b7 Replaced some qstr with u""_q literal. 2022-11-29 14:12:50 +03:00
23rd
3467fe226f Added ability to send webp as compressed image. 2022-11-22 00:26:49 +00:00
John Preston
ede34578da Display jump to last topic message bubble. 2022-11-22 00:26:48 +00:00
John Preston
37308cde21 Support dialog rows with variable height. 2022-11-22 00:26:48 +00:00
Dragoon Aethis
9d59e42b52
Add an experimental "small message radius" toggle (#25305)
Add an experimental "small message radius" toggle.

This toggle allows switching to the pre-4.3.0, smaller message bubble
radius after an app restart. The message bubble radius styles now have
to be referenced via the Ui::BubbleRadius* and Ui::MsgFileThumbRadius*
wrappers to use the appropriate value.
2022-11-08 14:19:17 +04:00
John Preston
fdf4129e5e Fix build with GCC. 2022-11-02 08:51:03 +04:00
Ilya Fedin
68ad56db79 Use QtWaylandCompositor for webview embedding on Linux 2022-11-01 19:33:46 +04:00
23rd
579b20fff7 Added initial ability to transcribe video messages. 2022-11-01 19:25:42 +04:00
John Preston
72354f52d4 Improve top bars in forums, in narrow column. 2022-11-01 19:25:41 +04:00
John Preston
4074a558e7 Get rid of Ui::FlatInput class.
Fixes #16172.
2022-11-01 19:25:41 +04:00
23rd
dc8b693f1d Added context menu to bar of pinned messages with bot button. 2022-11-01 19:25:40 +04:00
23rd
659a7622be Fixed memory leak from bar of pinned messages. 2022-11-01 19:25:40 +04:00
23rd
29663a410a Added decimal separators to count of participants in group call bar. 2022-11-01 19:25:38 +04:00
John Preston
6695eda1be Handle forum-non_forum changes in realtime. 2022-11-01 19:25:37 +04:00
John Preston
9348039313 Track unread posts in forums inside RepliesList-s. 2022-11-01 19:25:36 +04:00
John Preston
0d985b5745 Don't focus main button on progress show. 2022-11-01 19:25:36 +04:00
John Preston
d4cdd67128 Fix RTL text in bot attach webview main button. 2022-11-01 19:25:36 +04:00
John Preston
3722e55b67 Support topic on-the-fly creation. 2022-11-01 19:25:35 +04:00
John Preston
83008fa358 Support new rounding in theme preview generator. 2022-11-01 19:25:35 +04:00
John Preston
e5f2d83548 Support new rounding in bot inline keyboards. 2022-11-01 19:25:35 +04:00
John Preston
9cab06e17d Support new rounding for albums. 2022-11-01 19:25:35 +04:00
John Preston
8268e9f872 Support new rounding for GIFs / videos. 2022-11-01 19:25:35 +04:00
John Preston
abdd126dcf Round correctly distinct photos and extended media. 2022-11-01 19:25:35 +04:00
John Preston
f3662f4873 Support correct rounding of file thumbnails. 2022-11-01 19:25:34 +04:00
John Preston
dd52c53ec0 Allow more file attach layout customization. 2022-11-01 19:25:34 +04:00
John Preston
b13471672d Move some chat styles from basic.style to chat.style. 2022-11-01 19:25:34 +04:00
John Preston
ba2f92906b Implement new bubble rounding. 2022-11-01 19:25:34 +04:00
Ilya Fedin
7b5781b845 Use default-constructed QLocale for date/time/whatever else formatting
Qt 6 chenged the QDateTime API to use QLocale::c() rather than QLocale::system(), using default-constructed QLocale will make this consistent and overradable application-wide

Other formating use-cases as QLocale::decimalPoint use default-constructed QLocale now, too
2022-10-17 08:33:22 +04:00
Ilya Fedin
2c1933bdb8 Use application-wide time format in remaining td_ui places 2022-10-17 08:33:22 +04:00
John Preston
4f948699c0 Correct spoiler selections. 2022-09-18 16:52:31 +04:00
John Preston
cd00d41cca Correct spoiler colors in fully selected messages. 2022-09-18 16:52:31 +04:00
John Preston
749fb52113 Implement animated spoilers. 2022-09-18 16:52:30 +04:00
John Preston
379736a7d1 Show extended preview inline keyboard button. 2022-09-12 16:40:19 +04:00
John Preston
2e8a03dfd1 Correctly round spoiler animation in ExtendedMedia. 2022-09-12 09:06:26 +04:00
John Preston
f0955f2021 Add emoji-status disclaimer for unknown peers. 2022-09-06 11:20:55 +04:00
John Preston
9bb2bb09b9 Update API scheme on layer 145.
Restrict send from channels to premium in line with API restrictions.
2022-09-02 21:14:34 +04:00
23rd
35c59ad35a Moved out util function for contrast calculation between 2 colors. 2022-09-02 21:14:32 +04:00
John Preston
ba83836922 Display custom emoji reactions under messages. 2022-09-02 21:14:31 +04:00
John Preston
8a6b3027f5 Support multiple reactions from one user. 2022-09-02 21:14:31 +04:00
John Preston
bd42c23999 Implement reactions selector above the menu. 2022-09-02 21:14:30 +04:00
John Preston
a0d5456a4d PoC content outside of PopupMenu. 2022-09-02 21:14:29 +04:00
John Preston
f8e22210e7 Move Webm sticker to UnwrappedMedia. 2022-08-04 13:35:34 +03:00
John Preston
7a61693034 Limit attached emoji phrase to two lines. 2022-07-28 18:36:48 +03:00
23rd
c1fa39ac05 Equaled top and bottom padding for sticker in service gift message. 2022-07-28 02:49:07 +03:00
23rd
2d75f9e752 Fixed build with Xcode. 2022-07-27 12:49:52 +03:00
John Preston
af54721f07 Disable attach bot share phone command for now. 2022-07-26 20:12:14 +03:00
John Preston
bb7249f280 Allow viewing emoji sets used in a message. 2022-07-26 20:12:12 +03:00
John Preston
4ca6af33d4 Support web_app_request_phone attach bot requests. 2022-07-26 20:12:11 +03:00
23rd
e84f5aaa3d Added support of service actions for premium gifts. 2022-07-26 20:12:11 +03:00
23rd
bcdcd7ee70 Disabled animation for first showing of right button in pinned bar. 2022-07-26 20:12:10 +03:00
John Preston
c1e7e63677 Support custom popups in attach bots. 2022-07-26 20:12:09 +03:00
John Preston
754371a295 Optimize custom emoji repaints in pinned bar / reply info. 2022-07-26 20:12:09 +03:00
John Preston
3238cf2b4b Support custom emoji in reply / pinned / forward bars. 2022-07-26 20:12:08 +03:00
John Preston
0a81246502 Show correct error box when sending file > 4GB. 2022-06-16 13:48:11 +04:00
John Preston
df17f20a47 Support attach bot menu / reload / settings. 2022-06-03 20:07:33 +04:00
John Preston
b1dd3b2a19 Better support for web_app_open_link. 2022-05-26 13:08:11 +04:00
John Preston
be16a7725c Show premium stickers toast on double click. 2022-05-26 12:30:50 +04:00
John Preston
e5d95c0ab0 Improve voice transcribe design. 2022-05-25 16:18:49 +04:00
John Preston
28733fadcd Update icon of closed premium reactions. 2022-05-24 23:40:37 +04:00
John Preston
0b2a5a22ba Update API scheme on layer 143 + transcribe. 2022-05-24 23:38:40 +04:00
John Preston
bbaedc1952 Support attach bot native back button. 2022-05-20 20:04:05 +04:00
John Preston
ca731968ca Improve premium sticker sync / preview. 2022-05-19 17:27:03 +04:00
John Preston
87662de2a6 Support web_app_open_tg_link / web_app_open_invoice. 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
Sergey A. Osokin
3ba5b825e5 Fix -Wunused-const-variable warnings by removing unused variables
Fixes #24432
2022-04-26 21:25:05 +04:00
23rd
31cd841b75 Added bot button to bar of pinned messages. 2022-04-25 22:35:02 +04:00
23rd
1710890886 Added ability to change width between pinned bar animation entries. 2022-04-25 22:35:02 +04:00
23rd
16f616c5e0 Added ability to set content to bar of pinned messages later. 2022-04-25 22:35:02 +04:00
23rd
7600c9bb2f Added fade animation to right button in bar of pinned messages. 2022-04-25 22:35:02 +04:00
John Preston
ce79c1f0c4 Handle "web_app_request_theme" event in WebView. 2022-04-21 10:47:21 +04:00
23rd
a5c12065af Slightly improved style of ttl button. 2022-04-19 17:48:48 +03:00
John Preston
87df42f8c1 Improve icon padding in bot inline buttons. 2022-04-14 15:24:12 +04:00
23rd
59fc9d3bfd Replaced static reaction icon in settings with animated lottie. 2022-04-14 09:46:03 +04:00
John Preston
2253cd86e5 Add an icon to a webview bot button. 2022-04-13 15:06:23 +04:00
23rd
4304071d18 Added ability to configure quick action on double click. 2022-04-13 15:06:23 +04:00
John Preston
d4cb56a73d Custom scroll bar in WebKit / Chromium. 2022-04-12 23:01:37 +04:00
John Preston
d15ff46eb4 Fix webview initialization on GCC. 2022-04-08 23:15:37 +04:00
John Preston
94c6793e92 Add bot menu button with webview open support. 2022-04-07 16:31:07 +04:00
John Preston
73c5988e7e Allow opening external pages from attach bots. 2022-04-06 10:55:05 +04:00
John Preston
0e75204762 Support native button in bot webview. 2022-04-05 16:31:15 +04:00
23rd
8d923489d3 Replaced inputs for auto-delete setting with prepared values. 2022-04-01 15:53:58 +04:00
23rd
d9541b6a6e Unified general phrases for duration. 2022-04-01 15:53:58 +04:00
23rd
3c4f575bc2 Added ability to set auto-delete from profile info. 2022-04-01 15:53:57 +04:00
23rd
fc71a640a6 Added implementation of menu for auto-delete settings. 2022-04-01 15:53:57 +04:00
John Preston
b1e66279d5 Update API scheme on layer 140. 2022-03-31 13:24:13 +04:00
John Preston
b38ac32898 Allow removing a bot from attach menu. 2022-03-30 12:23:06 +04:00
John Preston
72ae2f0269 Support custom attach bot icons. 2022-03-30 12:23:06 +04:00
John Preston
273f2f7ce9 Prolong bot attach webview. 2022-03-30 12:23:06 +04:00
John Preston
c6ded00461 Move webview attach code to a separate module. 2022-03-30 12:23:05 +04:00
John Preston
aed1904b4c Support theming for webview-s (payments, attach). 2022-03-30 12:23:05 +04:00
John Preston
df15ff9f8e Update API scheme on layer 140. 2022-03-30 12:23:05 +04:00
John Preston
1d8aac26ce Proof of concept webview attach menu support. 2022-03-30 12:23:05 +04:00
23rd
a141a9404f Added list of result of search messages in dialogs. 2022-03-23 10:03:43 +04:00