aboutsummaryrefslogtreecommitdiff
path: root/src/SearchBar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SearchBar.cpp')
-rw-r--r--src/SearchBar.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp
index cc93169..085f23e 100644
--- a/src/SearchBar.cpp
+++ b/src/SearchBar.cpp
@@ -25,7 +25,7 @@ namespace QuickMedia {
text_autosearch_delay(50),
caret_visible(true),
text(placeholder, *FontLoader::get_font(FontLoader::FontType::LATIN), std::floor(get_config().search.font_size * get_config().scale * get_config().font_scale)),
- background(sf::Vector2f(1.0f, 1.0f), 10.0f, get_current_theme().selected_color, rounded_rectangle_shader),
+ background(sf::Vector2f(1.0f, 1.0f), 10.0f, get_theme().selected_color, rounded_rectangle_shader),
placeholder_str(placeholder),
show_placeholder(true),
updated_search(false),
@@ -40,8 +40,8 @@ namespace QuickMedia {
{
padding_top = padding_top_default;
padding_bottom = padding_bottom_default;
- text.setFillColor(get_current_theme().placeholder_text_color);
- shade.setFillColor(get_current_theme().shade_color);
+ text.setFillColor(get_theme().placeholder_text_color);
+ shade.setFillColor(get_theme().shade_color);
if(plugin_logo && plugin_logo->getNativeHandle() != 0)
plugin_logo_sprite.setTexture(*plugin_logo, true);
}
@@ -186,7 +186,7 @@ namespace QuickMedia {
if(str.getSize() == 0) {
show_placeholder = true;
text.setString(placeholder_str);
- text.setFillColor(get_current_theme().placeholder_text_color);
+ text.setFillColor(get_theme().placeholder_text_color);
}
if(!updated_search) {
typing = true;
@@ -216,7 +216,7 @@ namespace QuickMedia {
return;
show_placeholder = true;
text.setString(placeholder_str);
- text.setFillColor(get_current_theme().placeholder_text_color);
+ text.setFillColor(get_theme().placeholder_text_color);
needs_update = true;
updated_search = false;
backspace_pressed = false;