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

Add support for changing the colour of the button when hovering and clicking #291

Open
ufgo opened this issue Dec 20, 2024 · 0 comments
Open

Comments

@ufgo
Copy link

ufgo commented Dec 20, 2024

It is necessary to add the ability to specify the colour of the button when hovering and clicking, similar to already implemented parameters such as HOVER_SCALE. This will allow to flexibly set visual behaviour of buttons in style through parameters.

Logic implementation:
- When a button is hovered over, its colour should change according to HOVER_COLOR.
- When pressed - according to self.start_colour.
- If no parameters are set, use the current colour without changes.

Compatibility support:
New parameters should not affect existing functionality unless specified.

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

No branches or pull requests

1 participant