From b64b90d0b165a6364206fa6ee7918905afd76fe5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 23 Apr 2025 19:46:27 +0200 Subject: Show replay duration in save, update all hotkeys in ui front page when changing them, update front page colors when changing accent color --- src/gui/DropdownButton.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gui') diff --git a/src/gui/DropdownButton.cpp b/src/gui/DropdownButton.cpp index 788f56a..5d1cc38 100644 --- a/src/gui/DropdownButton.cpp +++ b/src/gui/DropdownButton.cpp @@ -110,6 +110,14 @@ namespace gsr { window.draw(rect); } + if(activated) { + description.set_color(get_color_theme().tint_color); + icon_sprite.set_color(get_color_theme().tint_color); + } else { + description.set_color(mgl::Color(150, 150, 150)); + icon_sprite.set_color(mgl::Color(255, 255, 255)); + } + const int text_margin = size.y * 0.085; const auto title_bounds = title.get_bounds(); @@ -234,14 +242,6 @@ namespace gsr { return; this->activated = activated; - - if(activated) { - description.set_color(get_color_theme().tint_color); - icon_sprite.set_color(get_color_theme().tint_color); - } else { - description.set_color(mgl::Color(150, 150, 150)); - icon_sprite.set_color(mgl::Color(255, 255, 255)); - } } void DropdownButton::update_if_dirty() { -- cgit v1.2.3-70-g09d2