John Preston
4cc4d2ff56
Move common values to ui/arc_angles.h.
2024-05-03 13:53:32 +04:00
23rd
553d5509b5
Added universal duration to styles.
2024-04-23 20:10:07 +03:00
kukuruzka
2687a19b14
Improve spoilers at low resolutions
2024-03-13 16:37:59 +04:00
Ilya Fedin
cb1a041ca3
Stop timer for infinite radial animation when animations are disabled
2024-01-16 03:35:44 -08:00
John Preston
30dc9667ec
Add anim::with_alpha helper.
2024-01-05 11:25:16 +04:00
23rd
afe99d1e06
Moved out include directive for styles from header of RippleAnimation.
2023-12-14 20:09:40 +03:00
John Preston
41ee2fb0f0
Use QFontMetricsF and ceil() the width() results.
2023-01-24 12:10:48 +04:00
23rd
28d01d023b
Replaced multiple static constants for square root of 2 with Qt define.
2023-01-21 19:34:26 +03:00
John Preston
28fd4eea95
Fix build with GCC.
2022-12-28 17:39:03 +04:00
John Preston
97d4f62970
Always force spoiler initialization.
2022-12-27 10:47:01 +04:00
John Preston
64d2778914
Fix rounded image spoiler filling.
2022-12-12 22:55:28 +04:00
John Preston
89ae115a87
Add customized rounded ripple mask generators.
2022-10-03 15:10:49 +04:00
John Preston
2c2a7887e6
Add Images::EllipseMask method to the interface.
2022-10-03 11:34:26 +04:00
John Preston
cec09b0260
Support complex-rounded image spoilers.
2022-09-30 23:03:06 +04:00
John Preston
d57bf79ce0
Fix extendd menu expanding on Retina screens.
2022-09-22 12:31:27 +04:00
John Preston
1c5fd7e277
Add some more assertions to debug a crash.
2022-09-20 12:48:27 +04:00
John Preston
bc76e4f601
Optimize spoiler revealing.
2022-09-18 16:51:29 +04:00
John Preston
73b6bc5e13
Implement animated spoilers.
2022-09-17 00:22:08 +04:00
John Preston
38875a85be
Fix build with GCC.
2022-09-10 11:04:08 +04:00
John Preston
e16cff487d
Pause spoilers when animations are disabled.
2022-09-09 21:03:33 +04:00
John Preston
a7d90843a3
Implement partially-rounded rect with a SpoilerMess frame.
2022-09-09 20:41:47 +04:00
John Preston
0edb817ccd
Make moving particles in the SpoilerMess.
2022-09-09 15:42:38 +04:00
John Preston
ff85d2226c
Provide simple spoiler animations manager.
2022-09-09 12:41:07 +04:00
John Preston
c732bd874f
Cache default SpoilerMess on disk.
2022-09-09 11:51:08 +04:00
John Preston
00a668c3f3
Initial SpoilerMess implementation.
2022-09-08 13:14:19 +04:00
John Preston
3287bf45c6
Add FrameGenerator-based CustomEmoji and AnimatedIcon.
2022-08-29 16:33:12 +04:00
John Preston
f876d15eed
Add some helper wrappers for custom emoji.
2022-08-26 23:51:58 +04:00
John Preston
a1ec2c9ade
Allow arbitrary filling with 9-patch.
2022-08-19 20:49:06 +03:00
John Preston
eed9293c80
Add general RoundAreaWithShadow helper.
2022-08-18 17:30:59 +03:00
John Preston
6294dd74d2
Merge remote-tracking branch 'origin/master' into HEAD
2022-07-19 18:44:22 +03:00
Ilya Fedin
e91cfd55c2
Fix missing include for Qt 6.4
2022-07-19 19:44:06 +04:00
John Preston
e65d496525
Fix build with Xcode.
2022-07-08 22:44:12 +04:00
John Preston
32cf0968a1
Use src/dst prefixes instead of from/to.
2022-06-29 16:17:03 +04:00
John Preston
cb5296a6b0
Add ImageFrameGenerator for static custom emoji.
2022-06-29 11:51:23 +04:00
John Preston
6ef5ec3410
Pass painting active/inactive state through Painter.
2022-06-28 17:45:37 +04:00
John Preston
74224fe06e
Add gradient_color_at(QGradientStops, ratio).
2022-06-10 16:06:17 +04:00
23rd
79af7c5523
Added ability to set disable monospace in numbers animation.
2022-05-24 08:50:24 +03:00
23rd
7133ccd2f9
Added ability to set custom duration of numbers animation.
2022-05-23 11:45:26 +03:00
23rd
cea7f128a5
Added util for calculating of intermediate gradient value.
2022-05-20 13:15:45 +03:00
John Preston
9b6e11db62
Add anim::repeat enumeration (loop / once).
2022-05-04 11:22:46 +04:00
23rd
a0b04da1d9
Added utils for fade animated showing/hiding of widgets.
2022-03-22 22:36:58 +03:00
John Preston
6be424604f
Add some more !isnan assertions.
2022-03-07 09:43:46 +04:00
John Preston
6956514425
Add some !isnan Assert-s in the animations engine.
2022-03-05 18:35:44 +04:00
John Preston
bd7c4ee06d
Allow fractional stroke values in CrossAnimation.
2022-02-25 19:23:05 +03:00
John Preston
ec7af74351
Update some icons.
2022-02-25 16:08:47 +03:00
23rd
27d3b68ff4
Moved InterpolatedRect util to separated file.
2022-02-25 12:56:10 +03:00
23rd
d6cdc810c4
Renamed anim::interpolateF to anim::interpolateToF.
2022-02-25 12:56:10 +03:00
John Preston
d7b3a68351
Allow slowing down Animations::Simple globally.
2022-01-13 13:11:16 +03:00
John Preston
53e39e37eb
Debug std::isnan assertion violation.
2021-11-02 09:37:16 +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