aboutsummaryrefslogtreecommitdiff
path: root/src/gui/RadioButton.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-10-27 13:56:03 +0100
committerdec05eba <dec05eba@protonmail.com>2024-10-27 13:59:17 +0100
commit80ff6582a95854712221bf4c84252584566ac041 (patch)
tree50a4c72cf29b7c30b4bbc7c6b8c73523cd8e4a00 /src/gui/RadioButton.cpp
parent59dfd87c21026ef4dc713c3e0648cfa89d534557 (diff)
Fix window not visible in fullscreen applications
Diffstat (limited to 'src/gui/RadioButton.cpp')
-rw-r--r--src/gui/RadioButton.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}