From ad2685624cf233456623c5fa34083412df53873c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 16 Jun 2022 14:43:20 +0200 Subject: Soundcloud: fix title and download link not updating when changing video, fix text y offset after mgl update --- src/SearchBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SearchBar.cpp') diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp index 2393823..b10ed6a 100644 --- a/src/SearchBar.cpp +++ b/src/SearchBar.cpp @@ -68,7 +68,7 @@ namespace QuickMedia { background.draw(window); - const int caret_offset_y = character_size * 0.4f; + const int caret_offset_y = character_size * 0.15f; const bool show_placeholder = text.get_string().empty(); if(type == SearchBarType::Password && !show_placeholder) { @@ -192,7 +192,7 @@ namespace QuickMedia { background.set_position(mgl::vec2f(pos.x + offset_x, pos.y + padding_top)); shade.set_position(pos); - mgl::vec2f text_position(pos.x + offset_x + background_margin_horizontal + search_padding + search_padding, pos.y + padding_top + background_margin_vertical - character_size * 0.3f); + mgl::vec2f text_position(pos.x + offset_x + background_margin_horizontal + search_padding + search_padding, pos.y + padding_top + rect_height * 0.5f - character_size * 0.7f); text.set_position(text_position.floor()); placeholder_text.set_position(text_position.floor()); -- cgit v1.2.3