diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-26 17:34:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 17:34:07 +0200 |
commit | 344babb939194f50b83dee5dc051862447f27059 (patch) | |
tree | fea4cabe1ba8441f2b6e6f05cbf1352488dc5b0d /scene/gui/link_button.cpp | |
parent | 46a139a3cefe1d57172c36118ec8a151a4cf2920 (diff) | |
parent | 12838bd99dbb784ace55e4537eaebabeb435880a (diff) |
Merge pull request #54267 from pycbouh/controls-button-font-focus
Diffstat (limited to 'scene/gui/link_button.cpp')
-rw-r--r-- | scene/gui/link_button.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scene/gui/link_button.cpp b/scene/gui/link_button.cpp index 925e6f5b97..c3201186ea 100644 --- a/scene/gui/link_button.cpp +++ b/scene/gui/link_button.cpp @@ -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: |