aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-27 05:05:30 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-28 16:05:00 +0200
commit2421bf3a24cd64767da1dde387c9caa27320dfc8 (patch)
tree1426c7886dc2572700fae3f5062274afd7849f46 /src
parente92131bbb418ac5bf3aea987b7822ebca1d275c1 (diff)
m
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 92eccdc..0c2e872 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -4042,16 +4042,6 @@ namespace QuickMedia {
return nullptr;
}
- // Returns |default_value| if the input items is empty
- static size_t get_body_item_sorted_insert_position_by_author(BodyItems &body_items, const std::string &display_name, size_t default_value) {
- for(size_t i = 0; i < body_items.size(); ++i) {
- auto &body_item = body_items[i];
- if(strcasecmp(display_name.c_str(), body_item->get_author().c_str()) <= 0)
- return i;
- }
- return default_value;
- }
-
bool Program::chat_page(MatrixChatPage *matrix_chat_page, RoomData *current_room) {
assert(current_room);
assert(strcmp(plugin_name, "matrix") == 0);
@@ -4087,7 +4077,7 @@ namespace QuickMedia {
users_tab.body->line_separator_color = sf::Color::Transparent;
tabs.push_back(std::move(users_tab));
- Tabs ui_tabs(&rounded_rectangle_shader, sf::Color::Transparent);
+ Tabs ui_tabs(&rounded_rectangle_shader, is_touch_enabled() ? sf::Color::Transparent : back_color);
const int PINNED_TAB_INDEX = ui_tabs.add_tab("Pinned messages (0)");
const int MESSAGES_TAB_INDEX = ui_tabs.add_tab("Messages");
const int USERS_TAB_INDEX = ui_tabs.add_tab("Users (0)");