Commit Graph

394 Commits

Author SHA1 Message Date
John Preston 2414e927bd Add initial code syntax highlighting.
Thanks PrismJS and Fela for porting it to C++.
2023-10-04 22:29:16 +04:00
John Preston 396c229a4d Improve Ui::Text::String features. 2023-10-04 22:24:25 +04:00
John Preston 674bab69f5 Send viewport updates in web-apps. 2023-09-13 09:04:28 +04:00
John Preston ef969df86e Improve main menu bots disclaimer acceptance. 2023-09-12 21:01:12 +04:00
John Preston 229f7a2c15 Handle background / title colors in web-apps. 2023-09-12 21:01:12 +04:00
John Preston fbd8abc1c6 Start main menu bots. 2023-09-12 21:01:12 +04:00
John Preston d77c7a70ab Implement new bot web-app methods. 2023-09-04 17:36:55 +04:00
John Preston b5d3391956 Fix album part edit/delete/replace after reorder. 2023-08-16 17:16:31 +02:00
John Preston f3ba8fea57 Support vertical attach modify buttons layout. 2023-08-10 18:19:00 +03:00
John Preston bda3bae712 Always use crl::time for media durations. 2023-08-04 08:46:46 +02:00
23rd 29db7488fc Slightly moved right action icon in message view for forwarded messages.
Fixed #26587.
2023-08-04 08:46:45 +02:00
John Preston 1f47b8e130 Fix userpics list glitch. 2023-07-20 22:19:32 +04:00
John Preston 70ca3d4f1a Show hidden stories in archive. 2023-07-20 07:20:46 +04:00
John Preston a0ffa15885 Update story mention layout, add outline.
Also use uint32 for bool-bitfields, otherwise:

int a : 1 = 0;
...
const auto test = true;
const auto b = test ? 1 : 0;
if (a != b) {
    a = b;
    ...
}
Assert(a == b); // Violation, because a == -1, not 1 (after a = b).
2023-07-20 07:20:33 +04:00
John Preston 41eac3692c Correctly show views count without viewers. 2023-07-20 07:20:11 +04:00
John Preston 39538e89e0 Show stories reactions in dark theme. 2023-07-20 07:20:10 +04:00
John Preston aba84a6010 Update API scheme on layer 160: Duration. 2023-07-20 07:20:10 +04:00
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