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: When update styles it is broken #110

Closed
CyberDex opened this issue Oct 20, 2023 · 0 comments · Fixed by #111
Closed

CheckBox: When update styles it is broken #110

CyberDex opened this issue Oct 20, 2023 · 0 comments · Fixed by #111
Labels
bug Something isn't working

Comments

@CyberDex
Copy link
Member

When you do

checkBox.style = {
                unchecked: new Graphics()
                    .beginFill(a % 2 === 0 ? 'red' : 'blue')
                    .drawRoundedRect(-2, -2, width + 4, height + 4, radius)
                    .beginFill(color)
                    .drawRoundedRect(0, 0, width, height, radius),
                checked: new Graphics()
                    .beginFill('blue')
                    .drawRoundedRect(-2, -2, width + 4, height + 4, radius)
                    .beginFill(a % 2 === 0 ? 'red' : 'blue')
                    .drawRoundedRect(0, 0, width, height, radius)
                    .beginFill('yellow')
                    .drawRoundedRect(3, 3, width - 6, height - 6, radius)
                    .beginFill('red')
                    .drawRoundedRect(5, 5, width - 10, height - 10, radius),
            };

checkbox turns into black

@CyberDex CyberDex added the bug Something isn't working label Oct 20, 2023
@CyberDex CyberDex linked a pull request Oct 20, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant