From 62ae23272b9d4075c86360da46e51c8ec16859bd Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 12 Apr 2013 23:30:55 +0000 Subject: [PATCH] Add different selection_color()'s and tooltips to scheme test buttons. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/unittest_schemes.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/unittest_schemes.cxx b/test/unittest_schemes.cxx index cd70d6001..f57ab7b79 100644 --- a/test/unittest_schemes.cxx +++ b/test/unittest_schemes.cxx @@ -80,21 +80,28 @@ public: { Fl_Button* o = new Fl_Button(10, 9, 90, 25, "button"); o->box(FL_UP_BOX); o->color((Fl_Color)101); + o->tooltip("selection_color() = default"); 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->tooltip("selection_color() = 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(fl_lighter(o->color())); + o->tooltip("selection_color() = fl_lighter(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(fl_darker(o->color())); + o->tooltip("selection_color() = fl_darker(color())"); o->labelcolor(FL_BACKGROUND2_COLOR); } // Fl_Button* o { Fl_Tabs* o = new Fl_Tabs(10, 120, 320, 215);