From 851be29d6a253889fc44d42b2ac1d392c55baae9 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 14 Apr 2013 14:23:09 -0700 Subject: [PATCH] Mixer/Plugin_Chooser: Add a little padding in table cells. --- mixer/src/Plugin_Chooser.C | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/mixer/src/Plugin_Chooser.C b/mixer/src/Plugin_Chooser.C index a03a338..9c4bfeb 100644 --- a/mixer/src/Plugin_Chooser.C +++ b/mixer/src/Plugin_Chooser.C @@ -195,21 +195,22 @@ void Plugin_Table::draw_cell(TableContext context, break; } + fl_color( row_selected(R) ? selection_color() : FL_DARK1); + fl_rectf(X, Y, W, H); + fl_color(color()); + fl_rect(X, Y, W, H); + + X+=4; + W-=8; + Y+=4; + H-=8; + 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(c); + fl_draw(s2, X, Y, W, H, a, 0, symbol ); - // TEXT - fl_color(c); - fl_draw(s2, X, Y, W, H, a, 0, symbol ); - - // BORDER - fl_color(color()); - fl_rect(X, Y, W, H); - } - fl_pop_clip(); + fl_pop_clip(); return; }