Commit graph

97 commits

Author SHA1 Message Date
John Preston
17d73a5c0c Add copy code blocks on header click. 2023-10-19 16:09:42 +04:00
John Preston
8915f5d40d Fix modifications tracking with skip block. 2023-10-17 12:01:50 +04:00
John Preston
9eb9fcf043 Use quote instead of paragraph for quotes. 2023-10-13 18:29:45 +04:00
John Preston
48012d7f4a Count correct initial size for code blocks. 2023-10-13 17:27:00 +04:00
John Preston
46465fc5ce Support quote icon in blockquote. 2023-10-13 16:13:08 +04:00
John Preston
6e7c4c1c4d Improve blockquote / pre layout. 2023-10-13 15:14:58 +04:00
John Preston
a38b60636a Paint nice code blocks. 2023-10-13 10:03:40 +04:00
John Preston
ab5057f001 Optimize simple Ui::Text::String instances. 2023-10-12 13:53:44 +04:00
John Preston
c317f2a353 Partially (italic+colored) support blockquotes. 2023-10-05 13:01:03 +04:00
John Preston
68b89a6ba9 Fix possible crash in new Text geometries. 2023-10-05 13:01:03 +04:00
John Preston
02440524ea Add per-line geometry / colors customization for Text. 2023-10-04 22:17:27 +04:00
John Preston
ed00cd2809 Allow Text::String constructor with entitites. 2023-06-29 14:48:04 +04:00
John Preston
7bcca23bfe Fix Text::String::isOnlyEmojiAndSpaces for empty string. 2023-01-30 14:10:11 +04:00
John Preston
f2e698f220 Track isOnlyEmojiAndSpaces in Ui::Text::String. 2023-01-27 19:00:30 +04:00
John Preston
0f77143905 Fix spoiler open link after String moving. 2022-09-23 11:59:25 +04:00
John Preston
06f3c837f6 Add TextForMimeData::WithExpandedLinks method. 2022-09-21 18:54:37 +04:00
John Preston
bc76e4f601 Optimize spoiler revealing. 2022-09-18 16:51:29 +04:00
John Preston
a60fe582ad Render correct spoiler selections. 2022-09-18 15:17:19 +04:00
John Preston
73b6bc5e13 Implement animated spoilers. 2022-09-17 00:22:08 +04:00
John Preston
01c4ba869a Allow requesting low-quality scaling of custom emoji. 2022-08-23 17:46:56 +03:00
23rd
1cc74a41c4 Moved out spoiler data from Ui::Text::String to separate structure. 2022-08-16 19:00:57 +03:00
23rd
6ce4bedc28 Removed unused Ui::Text::Parser::createSkipBlock method. 2022-08-16 17:46:02 +03:00
John Preston
bda46510f5 Fix build with GCC. 2022-08-05 10:12:33 +03:00
John Preston
f27d756bcd Support getting OnlyCustomEmoji from Ui::Text::String. 2022-08-03 20:07:43 +03:00
John Preston
a5d7b23a63 Support custom emoji in IsolatedEmoji. 2022-07-25 17:54:15 +03:00
John Preston
e65d496525 Fix build with Xcode. 2022-07-08 22:44:12 +04:00
John Preston
d7318d849e Make custom emoji size 12% larger. 2022-07-06 12:20:29 +04:00
John Preston
6ef5ec3410 Pass painting active/inactive state through Painter. 2022-06-28 17:45:37 +04:00
John Preston
187110f438 Allow unloading custom emoji data. 2022-06-24 20:33:46 +04:00
John Preston
14a7fc74af Correctly finish custom emoji entities. 2022-06-24 10:48:46 +04:00
John Preston
87cd0b6127 Add initial support for custom emoji. 2022-06-23 17:51:36 +04:00
Ilya Fedin
060eb63ce8 Get rid of qtextitemint.cpp
All the variables are public, so there's no need to use non-exported constructor
2022-05-29 10:16:10 +04:00
Sergey A. Osokin
49b4b35efa Fix -Wunused-const-variable warnings by removing unused variables 2022-04-26 08:15:13 +04:00
John Preston
5214f96bba Parse markup in Ui::Text::String::setMarkedText by default. 2022-02-27 17:48:43 +03:00
23rd
88966598b8 Removed limitations on number of indexes. 2022-02-25 12:56:10 +03:00
23rd
7e1effeeeb Added support for custom indexes of links in Ui::String::Text. 2022-02-05 18:40:23 +03:00
John Preston
6af9023eb7 Fix build with GCC. 2022-02-01 01:51:06 +03:00
23rd
5acbd74670 Fixed drawing spoiler when it ends with formatted text and space. 2022-01-24 23:30:39 +03:00
23rd
7bd7ada3ff Split qt_adapters to separated files. 2022-01-24 19:29:36 +03:00
John Preston
64fa3d83b5 Workaround selection glitches on macOS. 2022-01-18 14:11:08 +03:00
23rd
45893ec223 Excluded EntityType::Pre from clickable types. 2022-01-17 16:48:48 +03:00
23rd
19de16ba6f Fixed processing of started entities for monospace. 2022-01-17 10:10:14 +03:00
23rd
d1509436b6 Fixed possible crash in Text::String with clickable monospace. 2022-01-16 10:19:09 +03:00
23rd
2b87a251cd Fixed enumerating of Text::String with clickable monospace. 2022-01-16 10:18:23 +03:00
John Preston
4fbd226067 Fix selection of monospace text on press. 2022-01-13 13:11:16 +03:00
23rd
5e8b8d4129 Changed behavior to process paragraph selection as full for monospace. 2022-01-13 13:05:20 +03:00
23rd
c2fcbdc883 Limited monospace text selection on click only for single lines. 2022-01-13 13:05:04 +03:00
23rd
087c82e1d5 Fixed display of ellipsis under spoiler. 2022-01-08 09:12:24 +03:00
23rd
20b908ea70 Slightly optimized spoilers to avoid recreating of same click handlers. 2022-01-08 08:24:06 +03:00
23rd
b1f71ccab3 Added selection of monospace text on press. 2022-01-08 08:24:06 +03:00