Implement animated spoilers.

This commit is contained in:
John Preston
2022-09-17 00:23:27 +04:00
parent 4975254cc1
commit 749fb52113
291 changed files with 814 additions and 556 deletions

View File

@@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
//#include "history/view/history_view_top_bar_widget.h"
#include "main/main_session.h"
#include "data/data_session.h"
#include "ui/painter.h"
#include "styles/style_widgets.h"
#include "styles/style_window.h"
#include "styles/style_profile.h"

View File

@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/effects/ripple_animation.h"
#include "ui/text/text_options.h"
#include "ui/painter.h"
#include "data/data_peer.h"
#include "data/data_cloud_file.h"
#include "main/main_session.h"

View File

@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "profile/profile_block_widget.h"
#include "ui/painter.h"
#include "styles/style_profile.h"
#include "styles/style_widgets.h"

View File

@@ -32,7 +32,7 @@ void CoverDropArea::hideAnimated(HideFinishCallback &&callback) {
}
void CoverDropArea::paintEvent(QPaintEvent *e) {
Painter p(this);
auto p = QPainter(this);
if (_a_appearance.animating()) {
p.setOpacity(_a_appearance.value(_hiding ? 0. : 1.));