|
|
Thanks Bill! Is what I ended up doing is just making a class where I push each widget into a specific vector; and then walk the vectors setting my desired color schema.
On Thursday, 29 April 2021 at 16:30:09 UTC-6 spitzak wrote:
Fl::background(r,g,b) changes the general "gray" color and the colorramp used for all the button edges Fl::foreground(r,g,b) changes the color all the text and labels are drawn Fl::background2(r,g,b) changes the "white" in the input fields Fl::set_color(x,r,g,b) sets some other colors: x = FL_INACTIVE_COLOR text color for inactive widgets x = FL_SELECTION_COLOR background for text selection (text color is computed to contrast with it)
All of this was designed for mid-1990's style user preferences, but it still could be useful.
Hi all, I know how to individually change the colors (background, text, selection, etc.) for each individual widget; however this can become tedious if you have 30 or so buttons, 5 hold browsers, etc.
Is there a way to change the default of each widget globally? (i.e. custom colors for Fl_Button, Fl_Input, Fl_Table, etc etc); such that each new button/input/table I add automatically uses the specified color palletes?
Thank you!
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/2baa3d84-31df-45c1-8452-eeb931e45797n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |