Updated Fl_Tabs to check the contrast of the label color against
the tab background, and to highlight the top 5 lines of the tab
pane with the selection color so that selected tabs stand out
more.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
@ -272,12 +286,23 @@ void Fl_Tabs::draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int what) {
@@ -272,12 +286,23 @@ void Fl_Tabs::draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int what) {
// Make sure that the label contrasts the tab color...
c=fl_contrast(o->labelcolor(),c);
// Save the previous label color
Fl_Coloroc=o->labelcolor();
// Draw the label using the contrast color...
o->labelcolor(c);
o->draw_label(x1,y(),W,H,FL_ALIGN_CENTER);
// Restore the original label color...
o->labelcolor(oc);
if(Fl::focus()==this&&o->visible())
draw_focus(box(),x1,y(),W,H);
@ -290,12 +315,23 @@ void Fl_Tabs::draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int what) {
@@ -290,12 +315,23 @@ void Fl_Tabs::draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int what) {