summaryrefslogtreecommitdiff
path: root/src/Fl_get_system_colors.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-01 18:03:10 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-06 20:28:20 +0200
commitf09e17c3c564e8310125a10c03397cbf473ff643 (patch)
tree8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /src/Fl_get_system_colors.cxx
parentb0e0c355edaa2e23148cb0260ada907aec930f05 (diff)
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
Diffstat (limited to 'src/Fl_get_system_colors.cxx')
-rw-r--r--src/Fl_get_system_colors.cxx57
1 files changed, 25 insertions, 32 deletions
diff --git a/src/Fl_get_system_colors.cxx b/src/Fl_get_system_colors.cxx
index baac7dcf0..e1b7fc2f4 100644
--- a/src/Fl_get_system_colors.cxx
+++ b/src/Fl_get_system_colors.cxx
@@ -1,6 +1,4 @@
//
-// "$Id$"
-//
// System color support for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2018 by Bill Spitzak and others.
@@ -9,11 +7,11 @@
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
-// http://www.fltk.org/COPYING.php
+// https://www.fltk.org/COPYING.php
//
-// Please report all bugs and problems on the following page:
+// Please see the following page on how to report bugs and issues:
//
-// http://www.fltk.org/str.php
+// https://www.fltk.org/bugs.php
//
#include <FL/Fl.H>
@@ -31,9 +29,9 @@
#include "tile.xpm"
/**
- 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
+ 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.
*/
void Fl::background(uchar r, uchar g, uchar b) {
@@ -49,9 +47,9 @@ void Fl::background(uchar r, uchar g, uchar b) {
for (int i = 0; i < FL_NUM_GRAY; i++) {
double gray = i/(FL_NUM_GRAY-1.0);
Fl::set_color(fl_gray_ramp(i),
- uchar(pow(gray,powr)*255+.5),
- uchar(pow(gray,powg)*255+.5),
- uchar(pow(gray,powb)*255+.5));
+ uchar(pow(gray,powr)*255+.5),
+ uchar(pow(gray,powg)*255+.5),
+ uchar(pow(gray,powb)*255+.5));
}
}
@@ -65,9 +63,9 @@ void Fl::foreground(uchar r, uchar g, uchar b) {
/**
- Changes the alternative background color. This color is used as a
+ Changes the alternative background color. This color is used as a
background by Fl_Input and other text widgets.
- <P>This call may change fl_color(FL_FOREGROUND_COLOR) if it
+ <P>This call may change fl_color(FL_FOREGROUND_COLOR) if it
does not provide sufficient contrast to FL_BACKGROUND2_COLOR.
*/
void Fl::background2(uchar r, uchar g, uchar b) {
@@ -96,7 +94,7 @@ int fl_parse_color(const char* p, uchar& r, uchar& g, uchar& b) {
This is done by Fl_Window::show(argc,argv) before applying
the -fg and -bg switches.
-
+
On X this reads some common values from the Xdefaults database.
KDE users can set these values by running the "krdb" program, and
newer versions of KDE set this automatically if you check the "apply
@@ -112,24 +110,24 @@ void Fl::get_system_colors()
#define D1 BORDER_WIDTH
#define D2 (BORDER_WIDTH+BORDER_WIDTH)
-extern void fl_up_box(int, int, int, int, Fl_Color);
-extern void fl_down_box(int, int, int, int, Fl_Color);
-extern void fl_thin_up_box(int, int, int, int, Fl_Color);
-extern void fl_thin_down_box(int, int, int, int, Fl_Color);
-extern void fl_round_up_box(int, int, int, int, Fl_Color);
-extern void fl_round_down_box(int, int, int, int, Fl_Color);
+extern void fl_up_box(int, int, int, int, Fl_Color);
+extern void fl_down_box(int, int, int, int, Fl_Color);
+extern void fl_thin_up_box(int, int, int, int, Fl_Color);
+extern void fl_thin_down_box(int, int, int, int, Fl_Color);
+extern void fl_round_up_box(int, int, int, int, Fl_Color);
+extern void fl_round_down_box(int, int, int, int, Fl_Color);
-extern void fl_up_frame(int, int, int, int, Fl_Color);
-extern void fl_down_frame(int, int, int, int, Fl_Color);
-extern void fl_thin_up_frame(int, int, int, int, Fl_Color);
-extern void fl_thin_down_frame(int, int, int, int, Fl_Color);
+extern void fl_up_frame(int, int, int, int, Fl_Color);
+extern void fl_down_frame(int, int, int, int, Fl_Color);
+extern void fl_thin_up_frame(int, int, int, int, Fl_Color);
+extern void fl_thin_down_frame(int, int, int, int, Fl_Color);
#ifndef FL_DOXYGEN
-const char *Fl::scheme_ = (const char *)0; // current scheme
-Fl_Image *Fl::scheme_bg_ = (Fl_Image *)0; // current background image for the scheme
+const char *Fl::scheme_ = (const char *)0; // current scheme
+Fl_Image *Fl::scheme_bg_ = (Fl_Image *)0; // current background image for the scheme
#endif
-static Fl_Pixmap tile(tile_xpm);
+static Fl_Pixmap tile(tile_xpm);
/**
@@ -321,8 +319,3 @@ int Fl::reload_scheme() {
return 1;
}
-
-
-//
-// End of "$Id$".
-//