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

@ -75,7 +75,11 @@ void LinkButton::_notification(int p_what) {
switch (get_draw_mode()) {
case DRAW_NORMAL: {
color = get_color("font_color");
if (has_focus()) {
color = get_color("font_color_focus");
} else {
color = get_color("font_color");
}
do_underline = underline_mode == UNDERLINE_MODE_ALWAYS;
} break;
case DRAW_HOVER_PRESSED: