diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-23 07:26:39 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-23 07:26:39 +0200 |
commit | 261b0263f34ffcbe439d68b2e901fd3abbfc1eaf (patch) | |
tree | 735d49f2050b52a414766675e4226f3fa8ef0d08 /include | |
parent | 05ce6bac22d498fb2827df72f4c2b86d02826042 (diff) |
Re-add creators page
Diffstat (limited to 'include')
-rw-r--r-- | include/Body.hpp | 4 | ||||
-rw-r--r-- | include/SearchBar.hpp | 3 |
2 files changed, 2 insertions, 5 deletions
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<BodyItem> 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(); |