Add settings icon, close window when pressing the close button

This commit is contained in:
dec05eba
2024-08-07 21:27:36 +02:00
parent b709805cfa
commit 1a49f86e98
14 changed files with 177 additions and 21 deletions

View File

@@ -46,7 +46,7 @@ namespace gsr {
const bool mouse_inside = mgl::FloatRect(draw_pos, item_size).contains(window.get_mouse_position().to_vec2f()) && !has_parent_with_selected_child_widget();
if(mouse_inside)
draw_rectangle_outline(window, draw_pos, item_size, get_theme().tint_color, border_scale * get_theme().window_height);
draw_rectangle_outline(window, draw_pos, item_size, get_theme().tint_color, std::max(1.0f, border_scale * get_theme().window_height));
}
mgl::vec2f Button::get_size() {