2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-27 15:25:58 +00:00

Start new Info section (profile + shared media).

This commit is contained in:
John Preston
2017-09-13 20:01:23 +03:00
parent fbcd5e2f1e
commit 088d23d557
80 changed files with 3969 additions and 63 deletions

View File

@@ -22,6 +22,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "ui/widgets/buttons.h"
#include "styles/style_widgets.h"
#include <rpl/event_stream.h>
namespace Ui {
@@ -38,6 +39,10 @@ public:
}
float64 currentAnimationValue(TimeMs ms);
rpl::producer<bool> checkedValue() const {
return _checks.events_starting_with(checked());
}
virtual QSize getSize() const = 0;
// Zero instead of ms value means that animation was already updated for this time.
@@ -59,6 +64,8 @@ private:
base::lambda<void()> _updateCallback;
Animation _toggleAnimation;
rpl::event_stream<bool> _checks;
};
class CheckView : public AbstractCheckView {