Implement animated spoilers.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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.));
|
||||
|
||||
Reference in New Issue
Block a user