From 261b0263f34ffcbe439d68b2e901fd3abbfc1eaf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 23 Oct 2020 07:26:39 +0200 Subject: Re-add creators page --- include/Body.hpp | 4 ++-- include/SearchBar.hpp | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/Body.hpp b/include/Body.hpp index 5fde04e..f3498c7 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -19,7 +19,7 @@ namespace sf { namespace QuickMedia { class Program; - enum class EmbeddedItemStatus { + enum class FetchStatus { NONE, LOADING, FINISHED_LOADING, @@ -115,7 +115,7 @@ namespace QuickMedia { std::string post_number; void *userdata; // Not managed, should be deallocated by whoever sets this double last_drawn_time; - EmbeddedItemStatus embedded_item_status = EmbeddedItemStatus::NONE; + FetchStatus embedded_item_status = FetchStatus::NONE; std::shared_ptr embedded_item; // Used by matrix for example to display reply message body. Note: only the first level of embedded items is rendered (not recursive, this is done on purpose) ThumbnailMaskType thumbnail_mask_type = ThumbnailMaskType::NONE; sf::Vector2i thumbnail_size; diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index 6b7ca6d..eb7a9f2 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -47,9 +47,6 @@ namespace QuickMedia { int text_autosearch_delay; int autocomplete_search_delay; bool caret_visible; - - float padding_vertical = 20.0f; - float background_margin_vertical = 4.0f; private: void clear_autocomplete_if_text_not_substring(); void clear_autocomplete_if_last_char_not_substr(); -- cgit v1.2.3