Add focus font color to Button and derivatives

This commit is contained in:
Yuri Sizov 2021-10-26 16:32:15 +03:00
parent c1709e8177
commit 7fe0dab69b
14 changed files with 69 additions and 5 deletions

View file

@ -70,7 +70,11 @@ void OptionButton::_notification(int p_what) {
clr = get_color("font_color_disabled");
break;
default:
clr = get_color("font_color");
if (has_focus()) {
clr = get_color("font_color_focus");
} else {
clr = get_color("font_color");
}
}
}