23rd
e961883914
Fixed spoiler width for thin characters.
2021-12-30 03:23:39 +03:00
23rd
3461c18cda
Extracted ellipsis string from String::Text to global access.
2021-12-25 18:24:09 +03:00
23rd
44853e9334
Added ability to show or hide spoilers from outside.
2021-12-25 17:31:53 +03:00
23rd
db871a87f5
Added animation for spoilers.
2021-12-24 15:49:02 +03:00
23rd
2c1e6b458d
Moved SpoilerClickHandler to separated file.
2021-12-24 15:49:02 +03:00
23rd
af2cfca307
Improved style of selected text with spoilers.
2021-12-24 15:49:02 +03:00
23rd
6c9d832ad8
Added nice corners for spoilers.
2021-12-24 15:49:02 +03:00
23rd
bcf16c6c80
Added spoiler support to conversion from Ui::Text::String to text.
2021-12-24 15:49:02 +03:00
23rd
6b905f7754
Added text command for spoilers.
2021-12-24 15:49:02 +03:00
23rd
1819e6e3a5
Added initial spoiler support to Ui::Text::String.
2021-12-24 15:49:02 +03:00
23rd
e19a4c6544
Added index for spoiler to AbstractBox.
2021-12-22 22:39:03 +03:00
Ilya Fedin
ee36b1f451
Use StringViewMid adapter
2021-10-20 10:27:52 +04:00
Ilya Fedin
8e5d35229a
Simple replacements for Qt 6
...
QStringRef -> QStringView
QTextCursor constructor accepts a QTextDocument only
Some headers are moved, so paths are removed
QMatrix -> QTransform
Methods returning qsizetype are wrapped to int()s to allow compiler to deduce the type
2021-10-19 17:06:25 +04:00
John Preston
d81997194e
Allow forcing links to be always underlined.
2021-09-19 12:41:44 +03:00
Ilya Fedin
a2d1114a93
Get rid of osx and linux32 special targets
2021-08-11 16:01:30 +03:00
Ilya Fedin
51cfd0ba35
Fix -Wunused-variable warnings with gcc
2021-07-19 18:59:36 +03:00
Ilya Fedin
b8485c0d8a
Fix -Wunused-variable warnings
2021-07-13 21:24:22 +03:00
John Preston
f239f66ce5
Fix build with Xcode.
2021-06-22 20:31:57 +04:00
John Preston
0028a534d2
Fix parsing links with markup to entities.
2021-06-22 19:04:29 +04:00
John Preston
9c9a4bc4d8
Custom non-internal links should go to entities.
2020-10-30 18:13:50 +03:00
John Preston
663e2cc133
Don't expand urls same as text.
2020-10-08 12:00:28 +03:00
John Preston
fffdce5cb5
Fix copying text with links containing a newline.
2020-07-08 09:33:35 +04:00
John Preston
ab61721a13
Allow passing std::any context to link creation method.
2020-06-09 13:04:44 +04:00
John Preston
d71d2121b1
Move some methods out of the global scope.
2020-06-03 19:04:52 +04:00
John Preston
c33ff2baba
Fix build with Qt 5.6.2.
2020-06-03 19:04:13 +04:00
John Preston
f7b4994887
Optimize Ui::Text::String blocks vector.
2020-06-03 15:49:31 +04:00
John Preston
b1d00d0b28
Add method to count max monospace paragraph width.
2020-05-12 11:05:55 +04:00
John Preston
555a9d203c
Add a separate Semibold entity type.
2020-05-08 12:07:35 +04:00
John Preston
cc9b7e2c2f
Use Bold instead of Semibold by entities.
2020-05-08 11:51:41 +04:00
ilya-fedin
74889b8c21
Better algorithm for font choosing
2020-04-13 11:31:34 +04:00
John Preston
14c5da49f9
Improve multi-line texts with broken words.
2020-03-31 12:33:35 +04:00
John Preston
f401e8c085
Skip Unicode tag characters in text processing.
2020-01-21 14:12:41 +03:00
John Preston
d30d361609
Fix whitespace and indentation errors.
2020-01-02 14:25:11 +03:00
John Preston
6b673d9154
Skip internal: links in String::toText with entities.
2019-12-27 13:40:36 +03:00
John Preston
604f62599e
Fix parsing entities from Ui::Text::String.
2019-12-10 10:36:25 +03:00
John Preston
5723c2ba54
Fix workaround for Open Sans tilda bug.
2019-11-04 16:15:43 +03:00
John Preston
00393b7b3b
Correct String::countHeight with breakEverywhere.
2019-09-20 19:30:21 +03:00
John Preston
34b05c25fc
Rename ui_integration to integration.
2019-09-19 11:29:21 +03:00
John Preston
85c83003ca
Initial commit.
2019-09-17 17:48:58 +03:00