fltk-rs / fltk-theme

A theming crate for fltk-rs
MIT License
106 stars 8 forks source link

Question: is it possible to revert to the "default" theme after applying a theme? #9

Closed dheijl closed 3 months ago

dheijl commented 3 months ago

without restarting the application?

MoAlyousef commented 3 months ago

It should be possible. I’ll try to implement it tomorrow. FLTK creates the colormap on initialization and exposes it as a global. fltk-theme could store the default colormap, and provide a reload_theme function which restores it.

MoAlyousef commented 3 months ago

I have added:

fltk_theme::reset_color_map();

in version 0.7.3

dheijl commented 3 months ago

Thank you very much! I'll try it out asap.

dheijl commented 3 months ago

Thanks again, problem solved!