2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Make nice emoji status selector in profile.

This commit is contained in:
John Preston
2022-08-11 13:10:40 +03:00
parent 165d3143de
commit 64bd4f0926
10 changed files with 327 additions and 229 deletions

View File

@@ -70,6 +70,7 @@ public:
Full,
EmojiOnly,
MediaEditor,
EmojiStatus,
};
enum class Action {
Update,
@@ -110,9 +111,10 @@ public:
void beforeHiding();
void afterShown();
int marginTop() const;
int marginBottom() const;
int scrollTop() const;
[[nodiscard]] int marginTop() const;
[[nodiscard]] int marginBottom() const;
[[nodiscard]] int scrollTop() const;
[[nodiscard]] int scrollBottom() const;
bool preventAutoHide() const;
bool isSliding() const {
@@ -128,6 +130,9 @@ public:
}
void showMenuWithType(SendMenu::Type type);
void setDropDown(bool dropDown) {
_dropDown = dropDown;
}
// Float player interface.
bool floatPlayerHandleWheelEvent(QEvent *e);
@@ -193,6 +198,7 @@ private:
Tab createTab(SelectorTab type, int index);
void paintSlideFrame(Painter &p);
void paintBgRoundedPart(Painter &p);
void paintContent(Painter &p);
void checkRestrictedPeer();
@@ -252,6 +258,7 @@ private:
const bool _hasGifsTab;
const bool _hasMasksTab;
const bool _tabbed;
bool _dropDown = false;
base::unique_qptr<Ui::PopupMenu> _menu;