1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

@@ -168,7 +168,12 @@ void LinkButton::_notification(int p_what) {
switch (get_draw_mode()) {
case DRAW_NORMAL: {
color = get_theme_color(SNAME("font_color"));
if (has_focus()) {
color = get_theme_color(SNAME("font_focus_color"));
} else {
color = get_theme_color(SNAME("font_color"));
}
do_underline = underline_mode == UNDERLINE_MODE_ALWAYS;
} break;
case DRAW_HOVER_PRESSED: