AndyObtiva / glimmer-dsl-libui

Glimmer DSL for LibUI - Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library - The Quickest Way From Zero To GUI - If You Liked Shoes, You'll Love Glimmer! - No need to pre-install any prerequisites. Just install the gem and have platform-independent GUI that just works on Mac, Windows, and Linux.
MIT License
497 stars 15 forks source link

Change color and background-color of :button #57

Open sergioro9 opened 1 year ago

sergioro9 commented 1 year ago

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

AndyObtiva commented 1 year ago

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.