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

Checkbox style "Hover Pressed" not working if set in theme and not as theme override #62642

Closed
Piralein opened this issue Jul 2, 2022 · 2 comments
Milestone

Comments

@Piralein
Copy link
Member

Piralein commented Jul 2, 2022

Godot version

3.4.4.stable and 3.5.rc5

System information

Windows 10, GLES 3

Issue description

Using the theme to apply styles to the "CheckBox" control node doesn't work for the "Hover Pressed" style.
Using the style override of the node with the same styleboxes works.
image

Steps to reproduce

  • Create a theme and add normal, hover, pressed and hover_pressed styles to the checkbox.
  • Add a checkbox node and aplly the theme.
  • Add the same styles to a second checkbox node without theme, but theme overrides.

Minimal reproduction project

TestProject.zip

@Piralein
Copy link
Member Author

Piralein commented Jul 2, 2022

I guess its the if (has_stylebox("hover_pressed") && has_stylebox_override("hover_pressed")) { in button.cpp line 107?

@akien-mga akien-mga added this to the 3.x milestone Jul 2, 2022
@akien-mga akien-mga modified the milestones: 3.x, 3.6 Aug 5, 2022
@akien-mga
Copy link
Member

Fixed by #62644.

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

2 participants