Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As of Godot 3.4 is no longer possible to change Button's font color via keyboard focus #54175

Closed
ghost opened this issue Oct 24, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 24, 2021

Godot version

3.4 rc1

System information

GLES3

Issue description

I had a system where focusing a button with either keyboard or mouse would change the font color to white in order to show the user what they have selected.

As of 3.4 mouse_hover now only reacts to mouse and no longer to keyboard. So grab_focus() or using keyboard no longer triggers a hover effect. This means is no longer possible to change a Button's font color via keyboard focus.

In my game i now have to use a down border like an underline. Notice below my keyboard is on PLAY but my mouse is hovering on SETUP.
image

I think perhaps we need another Font Color choice perhaps Font Color Focused to change the font color both on keyboard and mouse focus with the hover option as a way to override this if you want mouse to have a different focus color than keyboard. Font Color Hover only works on mouse now.
image

Steps to reproduce

Just use all empty style for a button. You will no longer be able to tell which button has keyboard focus.

Minimal reproduction project

No response

@YuriSizov
Copy link
Contributor

Duplicate of #52620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant