2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Implement simple UI for single-type likes in stories.

This commit is contained in:
John Preston
2023-08-02 21:41:58 +02:00
parent 3adb0c1856
commit 4bd925ac2c
27 changed files with 235 additions and 64 deletions

View File

@@ -95,8 +95,7 @@ void EmojiFlyAnimation::repaint() {
}
}
bool EmojiFlyAnimation::paintBadgeFrame(
not_null<Ui::RpWidget*> widget) {
bool EmojiFlyAnimation::paintBadgeFrame(not_null<QWidget*> widget) {
_target = widget;
return !_fly.finished();
}

View File

@@ -25,7 +25,7 @@ public:
[[nodiscard]] bool finished() const;
void repaint();
bool paintBadgeFrame(not_null<Ui::RpWidget*> widget);
bool paintBadgeFrame(not_null<QWidget*> widget);
private:
const int _flySize = 0;
@@ -33,7 +33,7 @@ private:
Ui::RpWidget _layer;
QRect _area;
bool _areaUpdated = false;
QPointer<Ui::RpWidget> _target;
QPointer<QWidget> _target;
};

View File

@@ -126,6 +126,7 @@ mediaMenuIconCancel: icon {{ "menu/cancel", mediaviewMenuFg }};
mediaMenuIconShowInChat: icon {{ "menu/show_in_chat", mediaviewMenuFg }};
mediaMenuIconShowInFolder: icon {{ "menu/show_in_folder", mediaviewMenuFg }};
mediaMenuIconDownload: icon {{ "menu/download", mediaviewMenuFg }};
mediaMenuIconDownloadLocked: icon {{ "menu/download_locked", mediaviewMenuFg }};
mediaMenuIconCopy: icon {{ "menu/copy", mediaviewMenuFg }};
mediaMenuIconForward: icon {{ "menu/forward", mediaviewMenuFg }};
mediaMenuIconDelete: icon {{ "menu/delete", mediaviewMenuFg }};