From a31071deb496bdf1b9a932e4bfc15b11687c93fd Mon Sep 17 00:00:00 2001
From: Matthias Melcher Changes fl_color(FL_WHITE) and the same colors as
-Fl::foreground(). This color is used as a background by
-Fl_Input and other text widgets.
+ Changes the alternative background color. This color is used as a
+background by Fl_Input and other text widgets.
+ This call may change fl_color(FL_FOREGROUND_COLOR) if it
+does not provide sufficient contrast to FL_BACKGROUND2_COLOR.
Changes fl_color(FL_GRAY) to the given color, and changes the
-gray ramp from 32 to 56 to black to white. These are the colors used
-as backgrounds by almost all widgets and used to draw the edges of all
-the boxtypes.
+ Changes fl_color(FL_BACKGROUND_COLOR) to the given color,
+and changes the gray ramp from 32 to 56 to black to white. These are
+the colors used as backgrounds by almost all widgets and used to draw
+the edges of all the boxtypes.
Changes fl_color(FL_BLACK). Also changes
-FL_INACTIVE_COLOR and FL_SELECTION_COLOR to be a ramp
-between this and FL_WHITE.
+ Changes fl_color(FL_FOREGROUND_COLOR).
void background2(uchar, uchar, uchar);
-void background(uchar, uchar, uchar);
-Fl_Widget* belowmouse();
@@ -760,9 +761,7 @@ test if the widget wants the focus (by it returning non-zero from
void belowmouse(Fl_Widget*);void foreground(uchar, uchar, uchar);
-void free_color(Fl_Color c, int overlay = 0);
diff --git a/documentation/Fl_Image.html b/documentation/Fl_Image.html
index ebc596830..7aadbef4a 100644
--- a/documentation/Fl_Image.html
+++ b/documentation/Fl_Image.html
@@ -165,9 +165,9 @@ image height.
The inactive() method calls -color_average(FL_GRAY, 0.33f) to produce an image that -appears grayed out. This method does not alter the original -image data.
+color_average(FL_BACKGROUND_COLOR, 0.33f) to produce +an image that appears grayed out. This method does not +alter the original image data.Gets or sets the label color. The default color is FL_BLACK. +
Gets or sets the label color. The default color is FL_FOREGROUND_COLOR.
There are symbols for naming some of the more common colors:
These symbols are the default colors for all FLTK widgets. They are +explained in more detail in the chapter +Enumerations
+ +RGB colors can be set using the fl_rgb_color() diff --git a/documentation/migration.html b/documentation/migration.html index be0f283a1..48bc46f14 100644 --- a/documentation/migration.html +++ b/documentation/migration.html @@ -12,6 +12,18 @@ instead of the unsigned character in 1.0.x. This allows for the specification of 24-bit RGB values or 8-bit FLTK color indices. +
FL_BLACK and FL_WHITE now remain black and +white, even if the base color of the gray ramp is changed using +Fl::background(). +FL_DARK3 and FL_LIGHT3 can be used instead to +draw a very dark or a very bright background hue.
+ +Widgets use the new color symbols FL_FORGROUND_COLOR, +FL_BACKGROUND_COLOR, FL_BACKGROUND2_COLOR, +FL_INACTIVE_COLOR, and FL_SELECTION_COLOR. +More details can be found in the chapter +Enumerations.
+The FLTK clipboard is now broken into two parts - a local diff --git a/documentation/subclassing.html b/documentation/subclassing.html index 7e3cbf126..338ec3e58 100644 --- a/documentation/subclassing.html +++ b/documentation/subclassing.html @@ -43,12 +43,12 @@ and initializes the other instance variables to:
type(0); box(FL_NO_BOX); -color(FL_GRAY); -selection_color(FL_GRAY); +color(FL_BACKGROUND_COLOR); +selection_color(FL_BACKGROUND_COLOR); labeltype(FL_NORMAL_LABEL); labelstyle(FL_NORMAL_STYLE); labelsize(FL_NORMAL_SIZE); -labelcolor(FL_BLACK); +labelcolor(FL_FOREGROUND_COLOR); align(FL_ALIGN_CENTER); callback(default_callback,0); flags(ACTIVE|VISIBLE); -- cgit v1.2.3