Commit graph

190 commits

Author SHA1 Message Date
Ilya Fedin
d95f9e778b Instantiate QRegularExpression instances statically 2023-12-29 12:59:09 +00:00
John Preston
44161f183c Allow producer<TextWithEntities>() | map(ToLink). 2023-11-28 12:53:36 +04:00
23rd
97a725c791 Fixed legal link in some files. 2023-11-28 02:05:16 +03:00
John Preston
69c8353746 Allow line height less than font height. 2023-11-21 17:06:02 +04:00
John Preston
024f438ce5 Fix modifications tracking in Ui::Text::String. 2023-11-10 16:46:06 +04:00
John Preston
0837a6364d Fix build with GCC. 2023-11-06 20:30:20 +04:00
John Preston
f59c13455c Fix bidi data init. 2023-11-06 20:29:27 +04:00
John Preston
65310f32dc Count correctly elided text dimensions. 2023-11-06 11:28:27 +04:00
John Preston
08235c5e06 Use internal custom emoji with paddings. 2023-11-04 21:14:50 +04:00
John Preston
fa787b6b0d Fix crash in empty text geometry requests. 2023-11-03 13:24:49 +04:00
John Preston
24390ae853 Support complex dimensions in Ui::Text::String. 2023-11-03 09:05:30 +04:00
John Preston
3c645c8ea0 Support internal static custom emoji. 2023-11-02 13:50:16 +04:00
John Preston
d7f12b083e Always make custom emoji most-inner tag. 2023-10-31 12:47:48 +04:00
John Preston
148be79196 Override link colors in blockquotes. 2023-10-31 10:39:38 +04:00
John Preston
6dc93b53a1 Support filling highlight path in Text. 2023-10-30 21:53:22 +04:00
John Preston
287af101d0 Use lang-packed "copy" instead of "code". 2023-10-28 22:28:30 +04:00
John Preston
272a23e9bc Improve very small quote areas with icons. 2023-10-28 20:48:29 +04:00
John Preston
611224c52f Support three-color quote outlines. 2023-10-27 09:54:45 +04:00
John Preston
383b5b8f7e Make TextUtilities::CutPart more strict. 2023-10-26 09:26:16 +04:00
John Preston
71d24af3a8 Support two-color quote outlines. 2023-10-23 21:26:49 +04:00
John Preston
4d1a5686a7 Fix crash in non-clickable spoilers. 2023-10-23 08:49:34 +04:00
John Preston
1a9c4162cc Fix build with GCC. 2023-10-21 22:28:06 +04:00
John Preston
17d73a5c0c Add copy code blocks on header click. 2023-10-19 16:09:42 +04:00
John Preston
5ffbb90fd6 Fix build with Xcode. 2023-10-17 20:12:53 +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
7ed87d049f Fix build with GCC. 2023-10-13 10:06:15 +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
44f8d862ff Simplify TextStyle: remove linkFont/linkFontOver. 2023-10-12 10:53:02 +04:00
John Preston
45ffbdeef9 Track Ui::Text::String modifications on parse. 2023-10-11 21:49:00 +04:00
John Preston
84cc457af9 Use three-way comparison for TextWithTags. 2023-10-11 08:43:16 +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
0d8717d48a Allow sending pre-blocks with language. 2023-10-04 22:17:27 +04:00
John Preston
02440524ea Add per-line geometry / colors customization for Text. 2023-10-04 22:17:27 +04:00
23rd
7a245fee51 Moved out InputField files to subfolder. 2023-08-31 17:09:59 +03:00
John Preston
39d440f774 Don't check requested emoji size. 2023-07-21 14:42:01 +04:00
John Preston
ed00cd2809 Allow Text::String constructor with entitites. 2023-06-29 14:48:04 +04:00
John Preston
56945859e3 Try allowing correct &nbsp; handling. 2023-04-20 13:36:37 +04:00
John Preston
03f8127875 Fix huge memory allocation on unused emoji.
Before that change call to Instance::setColored started emoji loading
and allocating memory for all animation frames even if it wasn't used.
2023-03-09 09:43:22 +04:00
John Preston
a110c6ea53 Allow pausing emoji and spoilers separately. 2023-02-21 16:30:59 +04:00
John Preston
a5020ac5bc Fix a diacritic after a char after an emoji. 2023-01-31 14:46:19 +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
7ec9e05510 Allow appending TextWithEntnties by const-ref. 2023-01-27 14:37:01 +04:00
John Preston
395795e37a Fix stopping LimitedLoopsEmoji on last frame. 2023-01-23 12:22:04 +04:00