Browse Source

Mixer/Plugin_Chooser: Add a little padding in table cells.

tags/non-daw-v1.2.0
Jonathan Moore Liles 12 years ago
parent
commit
851be29d6a
1 changed files with 14 additions and 13 deletions
  1. +14
    -13
      mixer/src/Plugin_Chooser.C

+ 14
- 13
mixer/src/Plugin_Chooser.C View File

@@ -195,21 +195,22 @@ void Plugin_Table::draw_cell(TableContext context,
break;
}

fl_push_clip(X, Y, W, H);
{
// BG COLOR
fl_color( row_selected(R) ? selection_color() : FL_DARK1);
fl_rectf(X, Y, W, H);
fl_color( row_selected(R) ? selection_color() : FL_DARK1);
fl_rectf(X, Y, W, H);
fl_color(color());
fl_rect(X, Y, W, H);

// TEXT
fl_color(c);
fl_draw(s2, X, Y, W, H, a, 0, symbol );
X+=4;
W-=8;
Y+=4;
H-=8;

// BORDER
fl_color(color());
fl_rect(X, Y, W, H);
}
fl_pop_clip();
fl_push_clip(X, Y, W, H);
fl_color(c);
fl_draw(s2, X, Y, W, H, a, 0, symbol );

fl_pop_clip();
return;
}



Loading…
Cancel
Save