diff options
Diffstat (limited to 'plugins/Matrix.hpp')
-rw-r--r-- | plugins/Matrix.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index 680b8b6..0c96114 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -4,9 +4,10 @@ #include "../include/MessageQueue.hpp" #include "Plugin.hpp" #include "Page.hpp" -#include <SFML/Graphics/Color.hpp> +#include <mglpp/graphics/Color.hpp> #include <unordered_map> #include <unordered_set> +#include <map> #include <set> #include <mutex> #include <atomic> @@ -22,7 +23,7 @@ namespace QuickMedia { std::string remove_reply_formatting(const std::string &str); std::string message_get_body_remove_formatting(Message *message); std::string extract_first_line_remove_newline_elipses(const std::string &str, size_t max_length); - sf::Color user_id_to_color(const std::string &user_id); + mgl::Color user_id_to_color(const std::string &user_id); struct UserInfo { friend struct RoomData; @@ -30,7 +31,7 @@ namespace QuickMedia { UserInfo(RoomData *room, std::string user_id, std::string display_name, std::string avatar_url); RoomData *room; - const sf::Color display_name_color; + const mgl::Color display_name_color; const std::string user_id; private: std::string display_name; @@ -82,7 +83,7 @@ namespace QuickMedia { std::string url; std::string thumbnail_url; std::string related_event_id; - sf::Vector2i thumbnail_size; // Set to {0, 0} if not specified + mgl::vec2i thumbnail_size; // Set to {0, 0} if not specified RelatedEventType related_event_type = RelatedEventType::NONE; bool notification_mentions_me = false; bool cache = false; |