aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-25 04:15:17 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-25 04:15:17 +0200
commiteac2ace1c14c1ae0564d757b26a359c6bd4b754a (patch)
tree855b98a19b6a302663a2d26e3ed6ca69110d1ce0 /include
parent6cb237cfba67e1a15d475dccfb706bcc179afe71 (diff)
Matrix: fetch previous messages when reaching the top
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp1
-rw-r--r--include/SearchBar.hpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index f246b5a..79bece6 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -83,6 +83,7 @@ namespace QuickMedia {
void select_first_item();
void reset_selected();
void clear_items();
+ void prepend_items(BodyItems new_items);
void append_items(BodyItems new_items);
void clear_thumbnails();
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp
index b4abd77..a90c69d 100644
--- a/include/SearchBar.hpp
+++ b/include/SearchBar.hpp
@@ -43,6 +43,9 @@ 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();