On 4/7/24 11:44, 'Albrecht Schlosser' via fltk.general wrote:
[..]I believe Greg posted something some time ago how he is setting different themes (ISTR a 'tan' theme among others)
in his apps.
Yes, that was mainly color map manipulation, a single
function that could load hand-crafted ASCII text config files with
labels for different colormaps defined as color index to RGB
mappings. The labels assign names to each colormap, so that a
single file can contain several colormaps, and be loaded based on
the label from the UI's menu bar (Edit -> Preferences ->
Interface Colors -> (list of labels from file)), so the user
can choose different colormaps by clicking the label names in the
submenu, e.g.
In that case "Tan" is the currently loaded color theme.