diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-10-27 13:56:03 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-10-27 13:59:17 +0100 |
commit | 80ff6582a95854712221bf4c84252584566ac041 (patch) | |
tree | 50a4c72cf29b7c30b4bbc7c6b8c73523cd8e4a00 /src/gui/CheckBox.cpp | |
parent | 59dfd87c21026ef4dc713c3e0648cfa89d534557 (diff) |
Fix window not visible in fullscreen applications
Diffstat (limited to 'src/gui/CheckBox.cpp')
-rw-r--r-- | src/gui/CheckBox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/CheckBox.cpp b/src/gui/CheckBox.cpp index d602cca..9ae3b41 100644 --- a/src/gui/CheckBox.cpp +++ b/src/gui/CheckBox.cpp @@ -32,8 +32,8 @@ namespace gsr { background_sprite(&get_theme().checkbox_background_texture), circle_sprite(&get_theme().checkbox_circle_texture) { - background_sprite.set_color(get_theme().tint_color); - circle_sprite.set_color(get_theme().tint_color); + background_sprite.set_color(get_color_theme().tint_color); + circle_sprite.set_color(get_color_theme().tint_color); } bool CheckBox::on_event(mgl::Event &event, mgl::Window&, mgl::vec2f offset) { @@ -62,7 +62,7 @@ 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.6f); + const mgl::Color background_color_checked = color_multiply(get_color_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); |