You've already forked godot
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user