DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR Pending]
Link: http://www.fltk.org/str.php?L2942
Version: 1.3-feature
Fix Version: 1.3-current
Edmanuel, I recommend not to use this "down_button_color...patch", because
this would *remove* the user's ability to set the selection color.
Please see attached patch gleam_button_selection_color.diff how to set the
selection color in the unittest_scheme.cxx file. If you want to use
fl_darker() or another color you can do it this way as well.
I'll close this STR within the next few days, as agreed by the OP, but
leave it open now for feedback.
Link: http://www.fltk.org/str.php?L2942
Version: 1.3-feature
Fix Version: 1.3-current
Index: test/unittest_schemes.cxx
===================================================================
--- test/unittest_schemes.cxx (Revision 9855)
+++ test/unittest_schemes.cxx (Arbeitskopie)
@@ -62,14 +62,14 @@
schemechoice->add("none");
schemechoice->add("plastic");
schemechoice->add("gtk+");
- //schemechoice->add("gleam");
+ schemechoice->add("gleam");
schemechoice->value(0);
schemechoice->labelfont(FL_HELVETICA_BOLD);
const char *name = Fl::scheme();
if ( name ) {
if ( strcmp(name, "plastic") == 0) { schemechoice->value(1); }
else if ( strcmp(name, "gtk+") == 0) { schemechoice->value(2); }
- //else if ( strcmp(name, "gleam") == 0) { schemechoice->value(3); }
+ else if ( strcmp(name, "gleam") == 0) { schemechoice->value(3); }
}
schemechoice->callback(SchemeChoice_CB, (void*)this);
@@ -80,21 +80,25 @@
{ Fl_Button* o = new Fl_Button(10, 9, 90, 25, "button");
o->box(FL_UP_BOX);
o->color((Fl_Color)101);
+ o->selection_color(o->color());
o->labelfont(5);
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(10, 36, 90, 25, "button");
o->box(FL_UP_BOX);
o->color((Fl_Color)179);
+ // o->selection_color(o->color());
o->labelfont(4);
o->labelcolor(FL_BACKGROUND2_COLOR);
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(10, 63, 90, 25, "button");
o->box(FL_UP_BOX);
o->color((Fl_Color)91);
+ o->selection_color(o->color());
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(10, 90, 90, 25, "button");
o->box(FL_UP_BOX);
o->color(FL_INACTIVE_COLOR);
+ o->selection_color(o->color());
o->labelcolor(FL_BACKGROUND2_COLOR);
} // Fl_Button* o
{ Fl_Tabs* o = new Fl_Tabs(10, 120, 320, 215);
_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev