diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-02-08 23:00:13 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-02-08 23:00:13 +0100 |
commit | e10af24d9db882b1c237895cbea61720d04d97cb (patch) | |
tree | 030c60d41cc0eed35c0c7e3ad2aea7ebb5156e5c /src/QuickMedia.cpp | |
parent | 7cf3b5bdb58d279d2cc2aa7770c09afeeeebb5b7 (diff) |
Matrix: always show room list selection, make wider
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r-- | src/QuickMedia.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 7e487d1..ec33b3e 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1118,7 +1118,6 @@ namespace QuickMedia { break; current_chat_room = matrix->get_room_by_id(selected_item->url); } - tabs[selected_tab].body->render_selection = true; //select_body_item_by_room(tabs[selected_tab].body.get(), current_chat_room); current_chat_room = nullptr; } else { @@ -4489,7 +4488,7 @@ namespace QuickMedia { this->body_pos = sf::Vector2f(0.0f, body_padding_vertical + tab_shade_height); if(body_width > 640.0f) { - this->body_size = sf::Vector2f(250.0f, window_size.y - body_padding_vertical - tab_shade_height); + this->body_size = sf::Vector2f(300.0f, window_size.y - body_padding_vertical - tab_shade_height); draw_room_list = true; } else { this->body_size = sf::Vector2f(0.0f, 0.0f); @@ -4610,7 +4609,6 @@ namespace QuickMedia { window.clear(back_color); - room_tabs[room_selected_tab].body->render_selection = sf::Keyboard::isKeyPressed(sf::Keyboard::LAlt) && (chat_state == ChatState::NAVIGATING || chat_state == ChatState::URL_SELECTION); if(draw_room_list) { sf::RectangleShape room_list_background(this->body_size); room_list_background.setPosition(this->body_pos); |