From dd906c6a9dde666af0b10cc016039f312733201f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 11 Sep 2024 00:54:57 +0200 Subject: Make scrollbar movable with mouse, limit filechooser content to inside of file item --- src/gui/RadioButton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/RadioButton.cpp') diff --git a/src/gui/RadioButton.cpp b/src/gui/RadioButton.cpp index 66f3b69..925e133 100644 --- a/src/gui/RadioButton.cpp +++ b/src/gui/RadioButton.cpp @@ -78,7 +78,7 @@ namespace gsr { 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 = get_theme().tint_color; + const mgl::Color border_color = i == selected_item ? mgl::Color(255, 255, 255) : get_theme().tint_color; draw_rectangle_outline(window, draw_pos.floor(), item_size.floor(), border_color, border_size); } -- cgit v1.2.3