aboutsummaryrefslogtreecommitdiff
path: root/src/SearchBar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SearchBar.cpp')
-rw-r--r--src/SearchBar.cpp4
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());