From da95623137f85b07abf9f56035c23819af1e7fe9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 7 Jun 2021 16:34:55 +0200 Subject: Revert back to instant move on low fps as before (idle fps), fix top offset for bottom attach --- src/QuickMedia.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/QuickMedia.cpp') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index dccdf11..3338048 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -5633,7 +5633,7 @@ namespace QuickMedia { tab_vertical_offset = std::floor(10.0f * get_ui_scale()); } - tab_shade_height = std::floor(tab_vertical_offset) + Tabs::get_height() + room_name_padding_y; + tab_shade_height = std::floor(tab_vertical_offset) + Tabs::get_shade_height() + room_name_padding_y; const float body_width = window_size.x; @@ -6740,8 +6740,8 @@ namespace QuickMedia { if(redraw) { redraw = false; get_body_dimensions(window_size, search_bar.get(), body_pos, body_size); - body_pos.y += std::floor(10.0f * get_ui_scale()) + Tabs::get_height(); - body_size.y -= std::floor(10.0f * get_ui_scale()) + Tabs::get_height(); + body_pos.y += Tabs::get_shade_height(); + body_size.y -= Tabs::get_shade_height(); save_button.set_position(window_size - sf::Vector2f(save_button.get_width(), save_button.get_height()) - sf::Vector2f(bottom_panel_padding, bottom_panel_padding)); cancel_button.set_position(save_button.get_position() - sf::Vector2f(cancel_button.get_width() + bottom_panel_spacing, 0.0f)); file_name_label.setPosition(sf::Vector2f(bottom_panel_spacing, std::floor(window_size.y - bottom_panel_padding - file_name_entry.get_height() * 0.5f - file_name_label.getLocalBounds().height * 0.5f - 5.0f * get_ui_scale()))); -- cgit v1.2.3