From 80ff6582a95854712221bf4c84252584566ac041 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Oct 2024 13:56:03 +0100 Subject: Fix window not visible in fullscreen applications --- src/gui/RadioButton.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/RadioButton.cpp') diff --git a/src/gui/RadioButton.cpp b/src/gui/RadioButton.cpp index 925e133..8c937c6 100644 --- a/src/gui/RadioButton.cpp +++ b/src/gui/RadioButton.cpp @@ -72,13 +72,13 @@ namespace gsr { const mgl::vec2f item_size = item.text.get_bounds().size + mgl::vec2f(padding_left + padding_right, padding_top + padding_bottom); mgl::Rectangle background(item_size.floor()); background.set_position(draw_pos.floor()); - background.set_color(i == selected_item ? get_theme().tint_color : mgl::Color(0, 0, 0, 120)); + background.set_color(i == selected_item ? get_color_theme().tint_color : mgl::Color(0, 0, 0, 120)); window.draw(background); const bool mouse_inside = mgl::FloatRect(draw_pos, item_size).contains(window.get_mouse_position().to_vec2f()); if(can_select_item && mouse_inside) { const int border_size = std::max(1.0f, border_scale * get_theme().window_height); - const mgl::Color border_color = i == selected_item ? mgl::Color(255, 255, 255) : get_theme().tint_color; + const mgl::Color border_color = i == selected_item ? mgl::Color(255, 255, 255) : get_color_theme().tint_color; draw_rectangle_outline(window, draw_pos.floor(), item_size.floor(), border_color, border_size); } -- cgit v1.2.3