aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-04-23 19:46:27 +0200
committerdec05eba <dec05eba@protonmail.com>2025-04-23 19:46:27 +0200
commitb64b90d0b165a6364206fa6ee7918905afd76fe5 (patch)
tree931698040c314956e5e7730f829a7b38ef67edf8 /src/gui
parent41412db70408fce213dd1d5859e34fd06a59c240 (diff)
Show replay duration in save, update all hotkeys in ui front page when changing them, update front page colors when changing accent color
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/DropdownButton.cpp16
1 files changed, 8 insertions, 8 deletions
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() {