image viewer popup when clicking an image in a message

This commit is contained in:
Green Sky
2025-03-17 22:52:31 +01:00
parent 10ad2be8bf
commit 90a28d727b
7 changed files with 425 additions and 312 deletions

View File

@@ -14,6 +14,7 @@
#include "./bitset_image_loader.hpp"
#include "./chat_gui/file_selector.hpp"
#include "./chat_gui/send_image_popup.hpp"
#include "./chat_gui/image_viewer_popup.hpp"
#include <entt/container/dense_map.hpp>
@@ -39,6 +40,7 @@ class ChatGui4 : public ObjectStoreEventI {
FileSelector _fss;
SendImagePopup _sip;
ImageViewerPopup _ivp;
// TODO: refactor this to allow multiple open contacts
std::optional<Contact4> _selected_contact;