From 2421bf3a24cd64767da1dde387c9caa27320dfc8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 27 May 2021 05:05:30 +0200 Subject: m --- src/QuickMedia.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src') 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)"); -- cgit v1.2.3