pwiecz / go-fltk

A simple wrapper around FLTK 1.4 library
MIT License
121 stars 22 forks source link

Port or import native OS themes from fltk-rs/fltk-theme #132

Open mappu opened 2 months ago

mappu commented 2 months ago

Hi, thanks for all your work on this project. These bindings are super easy to use.

Have you seen the work at https://github.com/fltk-rs/fltk-theme by @MoAlyousef ? In my opinion this is a phenomenal improvement to FLTK's UI/UX. I'd really love to see these become available in the Go binding.

The fltk-theme implementation uses set_frame_type_cb which isn't exposed in this binding.

What do you think would be the most practical way to use these extra schemes in Go? Expose the set_frame_type_cb equivalent and write the callback in Go? Or, port the schemes to C and rebuild the bindings against a custom FLTK fork?

MoAlyousef commented 1 month ago

Hello

Probably exposing the necessary functionality in Go would be ideal. It would allow others to also create their own themes/schemes, which can also be provided in external go packages.