diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 13 | ||||
-rw-r--r-- | src/Theme.cpp | 1 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index bcd9a53..e2d1d8c 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -666,9 +666,16 @@ namespace QuickMedia { abort(); } - if(!rounded_rectangle_shader.loadFromFile(resources_root + "shaders/rounded_rectangle.glsl", sf::Shader::Type::Fragment)) { - show_notification("QuickMedia", "Failed to load " + resources_root + "/shaders/rounded_rectangle.glsl", Urgency::CRITICAL); - abort(); + if(get_current_theme().blur_enabled) { + if(!rounded_rectangle_shader.loadFromFile(resources_root + "shaders/rounded_rectangle.glsl", sf::Shader::Type::Fragment)) { + show_notification("QuickMedia", "Failed to load " + resources_root + "/shaders/rounded_rectangle.glsl", Urgency::CRITICAL); + abort(); + } + } else { + if(!rounded_rectangle_shader.loadFromFile(resources_root + "shaders/rounded_rectangle_no_shadow.glsl", sf::Shader::Type::Fragment)) { + show_notification("QuickMedia", "Failed to load " + resources_root + "/shaders/rounded_rectangle_no_shadow.glsl", Urgency::CRITICAL); + abort(); + } } if(!rounded_rectangle_mask_shader.loadFromFile(resources_root + "shaders/rounded_rectangle_mask.glsl", sf::Shader::Type::Fragment)) { diff --git a/src/Theme.cpp b/src/Theme.cpp index 1f4feca..6616721 100644 --- a/src/Theme.cpp +++ b/src/Theme.cpp @@ -32,6 +32,7 @@ namespace QuickMedia { themes[Theme::THEME_DARK].arrow_color = sf::Color(255, 255, 255, 175); themes[Theme::THEME_DARK].url_text_color = sf::Color(35, 140, 245); themes[Theme::THEME_DARK].loading_page_color = sf::Color(175, 180, 188); + themes[Theme::THEME_DARK].blur_enabled = true; } void init_themes() { |