diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-11 00:54:57 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-11 00:54:57 +0200 |
commit | dd906c6a9dde666af0b10cc016039f312733201f (patch) | |
tree | a18fea76ed728067cafba65d833234d92c2afcd3 /src/gui/RadioButton.cpp | |
parent | 747344b858c4750e7b0b19ca10c3727148c2a161 (diff) |
Make scrollbar movable with mouse, limit filechooser content to inside of file item
Diffstat (limited to 'src/gui/RadioButton.cpp')
-rw-r--r-- | src/gui/RadioButton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |