John Preston
19ce1edc16
Use base::SafeRound instead of std::round.
...
Previous assertion violations because of NaN from std::round were
in video streaming, see commits 27d58ba07b
, 8f5830d520
.
Now the crashes happened in the ConvertScale() call from a background
thread when preparing an image from clipboard for sending to a chat.
2021-09-27 12:13:57 +04:00
John Preston
8069fdd873
Use base/random.h instead of openssl::RandomValue.
2021-09-15 13:42:22 +03:00
23rd
fa4b7145f5
Added extra space to choosing sticker animation in left position.
2021-09-13 18:13:50 +03:00
23rd
0852dbc40f
Formatted classes for send actions.
2021-08-30 20:50:28 +03:00
23rd
ccea6ce492
Added animated indicator of choosing sticker action to chats list.
2021-08-30 20:50:24 +03:00
John Preston
4276b6cce0
Use rpl for Window::Theme::Background updates.
2021-07-15 16:42:36 +03:00
Ilya Fedin
79cc797aff
Fix -Wunused-variable warnings
2021-07-13 21:43:34 +03:00
Ilya Fedin
89765340c3
Fix -Wunused-function warnings
2021-07-13 21:31:22 +03:00
23rd
a631a28092
Removed App::pixmapFromImageInPlace.
2021-07-06 12:13:06 +03:00
John Preston
506cd8c7ad
Improve 'Join As' selector design.
2021-03-12 16:58:26 +04:00
23rd
dd01ece14a
Replaced snap util function with std::clamp.
2021-01-24 10:41:10 +03:00
23rd
be9644c2ff
Removed redundant condition in drawing of voice chat indicator.
...
Related commit: 4a20a4d739
.
2020-12-05 15:32:41 +03:00
23rd
4a20a4d739
Fixed drawing of voice chat indicator for non-default scales.
2020-12-03 00:16:26 +03:00
John Preston
fdbe6bdeb2
Add voice chat indicator in the chats list.
2020-12-02 13:52:33 +03:00
John Preston
2f5cb33bf2
Fix finalizing media in non-active account.
2020-07-14 19:02:27 +04:00
John Preston
b88f0108ad
Edit chat types in filters.
2020-03-27 20:36:02 +04:00
John Preston
f1d155c3f6
Added fireworks animation for right quiz answer.
2020-01-24 17:01:25 +03:00
John Preston
fcb2950ce8
Use slide animation from lib_ui.
2019-10-19 12:27:56 +04:00
John Preston
a6c84c36c0
Use layers and boxes from lib_ui.
2019-10-19 12:27:52 +04:00
John Preston
246c45ce0e
Use lib_ui from submodule.
2019-10-19 12:27:28 +04:00
John Preston
3b0bf7cb1e
Move some more widgets and effects.
2019-10-01 23:59:46 +03:00
John Preston
849deb57e2
Move many widget classes to lib_ui.
2019-10-01 23:59:46 +03:00
John Preston
c057f28425
Move standard buttons to lib_ui.
2019-10-01 23:59:46 +03:00
John Preston
c5845f17ae
Remove twidget header.
2019-10-01 23:59:46 +03:00
John Preston
e2f54eb3e9
Move some style code to lib_ui.
2019-10-01 23:59:46 +03:00
John Preston
0c713a930a
Remove app.h / facades.h from precompiled header.
2019-10-01 23:59:46 +03:00
John Preston
6343221d7b
Remove many includes from stdafx.pch.
2019-09-06 19:31:07 +03:00
John Preston
117d6192fa
Ensure contrast in colorized themes.
2019-08-29 10:01:28 +03:00
John Preston
d3ca6b96a1
Use tr:: instead of __generic.
2019-06-21 11:06:50 +02:00
John Preston
d0b86e1229
Optimize online dots + add animations.
2019-06-17 18:13:05 +02:00
John Preston
e7bdcc4155
Add more assertions to animations engine.
2019-06-17 14:23:50 +02:00
John Preston
e0d4884351
Fix possible crash in animations.
2019-05-28 14:46:18 +02:00
John Preston
ff0ff1d99c
Fix stickers lagging on macOS.
2019-05-28 13:39:38 +02:00
John Preston
626e7c1f76
Workaround MSVC 16.1 bugs.
2019-05-27 14:10:35 +02:00
John Preston
56b6673e17
Beta version 1.6.6: Fix animations engine.
2019-04-11 10:43:13 +04:00
John Preston
71f340d9b5
Revert "Don't restart animations timer."
...
This reverts commit 392d90dc1d
.
Otherwise scrolling while typing animates lags terribly on macOS.
2019-04-11 10:16:02 +04:00
John Preston
9bfa6d7cf4
Make animation tick less, almost like before.
...
Unfortunately otherwise animations look not smooth.
Fixes #5897 .
2019-04-09 17:21:29 +04:00
John Preston
392d90dc1d
Don't restart animations timer.
2019-04-09 17:12:16 +04:00
John Preston
7808620764
Queue only one update call in animations manager.
2019-04-09 17:10:45 +04:00
John Preston
6c17ed2242
Fix crash in event loop nesting.
2019-04-07 11:18:38 +04:00
John Preston
1ab4dbe466
Fix crash in application closing.
2019-04-06 12:12:24 +04:00
John Preston
c3c46f8e29
Fix new animations engine bug.
2019-04-04 19:31:03 +04:00
John Preston
74dc4e0c62
Allow disabling new animations.
2019-04-02 14:33:54 +04:00
John Preston
99bb09374d
Use new animations engine everywhere.
2019-04-02 14:33:53 +04:00
John Preston
a6e96f9a28
Use new animations engine in all Basic-s.
2019-04-02 14:33:53 +04:00
John Preston
a0b3b1affd
Fix fade in widget animation.
...
Fixes #5812 .
2019-03-24 12:12:40 +04:00
John Preston
261720c941
Fix radial animations on macOS.
...
QOpenGLWidget doesn't draw antialiased ellipses and arcs,
so we use a software rasterizer and then draw the resulting image.
2019-03-11 13:51:15 +04:00
John Preston
7b3c452316
Change direction of infinite radial animation.
2019-03-11 13:19:38 +04:00
John Preston
aa00f9bd34
Fix new animations engine restarts.
2019-03-11 12:08:21 +04:00
John Preston
a56a12a1ef
Optimized video frame pushing.
2019-03-11 12:08:18 +04:00