diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-06-16 14:43:20 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-06-16 15:09:30 +0200 |
commit | ad2685624cf233456623c5fa34083412df53873c (patch) | |
tree | 370acf204f01a9a6d877345b5f41977a8edd8441 /src/SearchBar.cpp | |
parent | e471a1f93ee23f0f729d64068504cb892481b56f (diff) |
Soundcloud: fix title and download link not updating when changing video, fix text y offset after mgl update
Diffstat (limited to 'src/SearchBar.cpp')
-rw-r--r-- | src/SearchBar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |