Commit graph

173 commits

Author SHA1 Message Date
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   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
John Preston
335f8050d9 Allow stopping LimitedLoopsEmoji on last frame. 2023-01-20 20:43:30 +04:00
23rd
3fea35ff19 Added regexp for excluding digits. 2022-12-29 13:36:03 +03:00
John Preston
770b5d0e59 Allow using text color -> preview color algo outside. 2022-12-15 19:10:04 +04:00
John Preston
4ec3aced2e Support colored emoji more widely. 2022-12-15 17:24:36 +04:00
John Preston
3752e158e4 Fix spoilers with multi-item elision blocks. 2022-11-09 12:35:04 +04:00
John Preston
4539d0bab4 Add PlainLink(TextWithEntities) and SingleCustomEmoji. 2022-11-02 16:38:17 +04:00
John Preston
7f1dd3c351 Add Ui::Text::Link(TextWithEntities, url/index). 2022-10-25 16:41:11 +04:00
John Preston
c199a1722f Add TextWithTags::empty method. 2022-10-25 11:19:52 +04:00
John Preston
04e6428fec Remove accidentally added check. 2022-10-04 10:10:49 +04:00
John Preston
1ceaa0bbcf Fix crash in empty text state resolving. 2022-09-23 20:45:39 +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
4ff5bc5773 Provide correct colors for spoiler selection. 2022-09-17 01:59:01 +04:00
John Preston
bd7098ef42 Fix new spoilers with elided text. 2022-09-17 01:22:22 +04:00
John Preston
73b6bc5e13 Implement animated spoilers. 2022-09-17 00:22:08 +04:00