Add focus font color to Button and derivatives

This commit is contained in:
Yuri Sizov
2021-10-26 17:28:12 +03:00
parent d020c6851a
commit 12838bd99d
15 changed files with 86 additions and 7 deletions

View File

@ -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"));
}
}
}