aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-09 03:38:33 +0200
committerdec05eba <dec05eba@protonmail.com>2019-08-09 03:38:37 +0200
commite4f601efd73aa6d1821194cb81915c0a76fe8779 (patch)
tree44a5d9982cedf8b6bb9f69c12697144a539b62e3
parent73b077835dc6085c2642451fa7dbde629b9eadfc (diff)
Increase seekbar size
-rw-r--r--src/QuickMedia.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 32e0b2d..ce56b79 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -290,6 +290,7 @@ namespace QuickMedia {
}
void Program::search_result_page() {
+ assert(false);
#if 0
search_bar->onTextUpdateCallback = [this](const std::string &text) {
body->filter_search_fuzzy(text);
@@ -497,7 +498,7 @@ namespace QuickMedia {
}
if(video_player_ui_window) {
- const float ui_height = window_size.y * 0.01f;
+ const float ui_height = window_size.y * 0.025f;
if(ui_resize) {
ui_resize = false;
video_player_ui_window->setSize(sf::Vector2u(window_size.x, ui_height));
@@ -506,7 +507,7 @@ namespace QuickMedia {
// TODO: Make window transparent, so the ui overlay for the video has transparency
video_player_ui_window->clear(sf::Color(33, 33, 33));
- rect.setSize(sf::Vector2f(window_size.x * progress, window_size.y * 0.01));
+ rect.setSize(sf::Vector2f(window_size.x * progress, ui_height));
video_player_ui_window->draw(rect);
video_player_ui_window->display();