2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Added initial implementation of masks panel.

This commit is contained in:
23rd
2021-03-25 14:05:33 +03:00
parent d9a29b6f15
commit 1cdb83462e
15 changed files with 394 additions and 102 deletions

View File

@@ -49,7 +49,8 @@ class StickersListWidget
public:
StickersListWidget(
QWidget *parent,
not_null<Window::SessionController*> controller);
not_null<Window::SessionController*> controller,
bool masks = false);
Main::Session &session() const;
@@ -300,6 +301,9 @@ private:
void refreshMegagroupSetGeometry();
QRect megagroupSetButtonRectFinal() const;
const Data::StickersSetsOrder &defaultSetsOrder() const;
Data::StickersSetsOrder &defaultSetsOrderRef();
enum class AppendSkip {
None,
Archived,
@@ -349,6 +353,7 @@ private:
int _officialOffset = 0;
Section _section = Section::Stickers;
const bool _isMasks;
bool _displayingSet = false;
uint64 _removingSetId = 0;