diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-11 19:32:02 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-11 19:32:02 +0200 |
commit | c6942aaa9a9cd87ac1615214788ea6a09cfe0a4c (patch) | |
tree | 1d7d16c14ad01d38d2a7c709e8d0bccb41074e0b /src/gui | |
parent | cb04c11b2c29d973cdda9b0336024946bb3ca93d (diff) |
Nicer close window button
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/CheckBox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/CheckBox.cpp b/src/gui/CheckBox.cpp index 74e84d1..f1c84ff 100644 --- a/src/gui/CheckBox.cpp +++ b/src/gui/CheckBox.cpp @@ -58,8 +58,8 @@ namespace gsr { apply_animation(); const mgl::Color background_color_unchecked(0, 0, 0, 120); - const mgl::Color background_color_checked = color_multiply(get_theme().tint_color, 0.7f); - background_sprite.set_color(interpolate_color(background_color_unchecked, background_color_checked, checked ? 1.0f : 0.0f)); + const mgl::Color background_color_checked = color_multiply(get_theme().tint_color, 0.6f); + background_sprite.set_color(interpolate_color(background_color_unchecked, background_color_checked, toggle_animation_value)); background_sprite.set_position(draw_pos.floor()); window.draw(background_sprite); |