aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp4
-rw-r--r--include/SearchBar.hpp3
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();