summaryrefslogtreecommitdiffstats
path: root/scene/gui/option_button.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2021-10-26 17:28:12 +0300
committerYuri Sizov <yuris@humnom.net>2021-10-26 17:42:40 +0300
commit12838bd99dbb784ace55e4537eaebabeb435880a (patch)
tree2ec8f063567eaa68782517db98774b455597f4cf /scene/gui/option_button.cpp
parentd020c6851ad5bc1c6155602930fa4fdfa56dd26a (diff)
downloadredot-engine-12838bd99dbb784ace55e4537eaebabeb435880a.tar.gz
Add focus font color to Button and derivatives
Diffstat (limited to 'scene/gui/option_button.cpp')
-rw-r--r--scene/gui/option_button.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/scene/gui/option_button.cpp b/scene/gui/option_button.cpp
index 2adeb2d947..c00c040048 100644
--- a/scene/gui/option_button.cpp
+++ b/scene/gui/option_button.cpp
@@ -71,7 +71,11 @@ void OptionButton::_notification(int p_what) {
clr = get_theme_color(SNAME("font_disabled_color"));
break;
default:
- clr = get_theme_color(SNAME("font_color"));
+ if (has_focus()) {
+ clr = get_theme_color(SNAME("font_focus_color"));
+ } else {
+ clr = get_theme_color(SNAME("font_color"));
+ }
}
}