summaryrefslogtreecommitdiff
path: root/src/fl_plastic.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-12-01 13:59:50 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-12-01 13:59:50 +0000
commitd7f311e25cff723badae260b42a8c7575fa5661d (patch)
tree9ed760ae73cec6d25be102a1e81cae0f64c6c2b0 /src/fl_plastic.cxx
parent1977f13908b3fb2063976f4ad350bb635f14771c (diff)
Fix Fl_Tabs to use boxtypes exclusively for drawing the tabs. This results
in boxier tabs, but you can customize as desired. Fix plastic box types when drawing larger boxes that would default to the color (without any adjustment). Don't need to build fluid files anymore for source distro - visual C projects now create them as needed. Changelog update. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_plastic.cxx')
-rw-r--r--src/fl_plastic.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx
index 512337d7a..ed9eebb24 100644
--- a/src/fl_plastic.cxx
+++ b/src/fl_plastic.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_plastic.cxx,v 1.1.2.1 2001/11/28 21:37:35 easysw Exp $"
+// "$Id: fl_plastic.cxx,v 1.1.2.2 2001/12/01 13:59:50 easysw Exp $"
//
// "Plastic" drawing routines for the Fast Light Tool Kit (FLTK).
//
@@ -119,7 +119,8 @@ static void up_frame(int x, int y, int w, int h, Fl_Color c) {
static void up_box(int x, int y, int w, int h, Fl_Color c) {
if (w > 30 && h > 30)
{
- fl_color(c);
+ uchar *g = fl_gray_ramp();
+ fl_color(shade_color(g['W'], c));
fl_rectf(x + 2, y + 2, w - 4, h - 4);
}
else
@@ -137,7 +138,8 @@ static void down_frame(int x, int y, int w, int h, Fl_Color c) {
static void down_box(int x, int y, int w, int h, Fl_Color c) {
if (w > 30 && h > 30)
{
- fl_color(c);
+ uchar *g = fl_gray_ramp();
+ fl_color(shade_color(g['T'], c));
fl_rectf(x + 2, y + 2, w - 4, h - 4);
}
else
@@ -161,5 +163,5 @@ Fl_Boxtype define_FL_PLASTIC_UP_BOX() {
//
-// End of "$Id: fl_plastic.cxx,v 1.1.2.1 2001/11/28 21:37:35 easysw Exp $".
+// End of "$Id: fl_plastic.cxx,v 1.1.2.2 2001/12/01 13:59:50 easysw Exp $".
//