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

Change color and background-color of :button #57

Open
sergioro9 opened this issue Sep 1, 2023 · 1 comment
Open

Change color and background-color of :button #57

sergioro9 opened this issue Sep 1, 2023 · 1 comment

Comments

@sergioro9
Copy link

It seems changing the colors of a :button is not currently supported. Will such feature be added in future releases❔

@AndyObtiva
Copy link
Owner

AndyObtiva commented Sep 1, 2023

There is already a solution to this problem. Check out the Area Based Custom Controls example:
https://github.com/AndyObtiva/glimmer-dsl-libui/blob/master/docs/examples/GLIMMER-DSL-LIBUI-ADVANCED-EXAMPLES.md#area-based-custom-controls

image

Button is a native control that takes the background color of the operating system. It does not currently support changing its background or foreground color.

However, you can paint your own button on top of the area control as per the example provided above.

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

2 participants