FLTK logo

Re: [fltk.general] Globally change default color scheme for widgets

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Globally change default color scheme for widgets Bill Spitzak Apr 29, 2021  
 
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.

On Thu, Apr 29, 2021 at 2:33 PM Jeff Paranich <jparanich@gmail.com> wrote:
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/1a22c64f-08d1-4a3b-979f-bda757a385fan%40googlegroups.com.

--
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/CAL-8oAjLnOyk935jXjCCKBmHfUwRD_g4qjgbhOhZ2OMRs2-5uA%40mail.gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.