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:
@@ -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();
|
||||
}
|
||||
|
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
@@ -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 }};
|
||||
|
Reference in New Issue
Block a user