aboutsummaryrefslogtreecommitdiff
path: root/src/SearchBar.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-04 19:22:04 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-04 19:22:04 +0200
commit59e4ce5c35e7e5a73d61e7111e8d4f07d63b7056 (patch)
treea8465d03cc8e6de2999c2fd22bbc83592e7ddd06 /src/SearchBar.cpp
parent31efd6ba39036291955babd900c86a897c5cbd86 (diff)
Add grid view
Diffstat (limited to 'src/SearchBar.cpp')
-rw-r--r--src/SearchBar.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp
index f7e732a..91ad2e8 100644
--- a/src/SearchBar.cpp
+++ b/src/SearchBar.cpp
@@ -11,7 +11,7 @@
// TODO: Use a seperate placeholder sf::Text instead of switching the text to placeholder text....
static const sf::Color text_placeholder_color(255, 255, 255, 100);
-static const sf::Color front_color(55, 60, 68);
+static const sf::Color front_color(60, 65, 73);
static const float background_margin_horizontal = 10.0f + std::floor(5.0f * QuickMedia::get_ui_scale());
static const float padding_top_default = std::floor(10.0f * QuickMedia::get_ui_scale());
static const float padding_bottom_default = std::floor(15.0f * QuickMedia::get_ui_scale());
@@ -106,6 +106,9 @@ namespace QuickMedia {
if(!editable)
return;
+ if(sf::Keyboard::isKeyPressed(sf::Keyboard::LControl) || sf::Keyboard::isKeyPressed(sf::Keyboard::RControl))
+ return;
+
if(event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Backspace)
backspace_pressed = true;
else if(event.type == sf::Event::KeyReleased && event.key.code == sf::Keyboard::Backspace)