diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-19 14:03:31 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-19 14:03:31 +0100 |
| commit | 0eeb6fe33ea40a8ea85716f5f8bef4621faed042 (patch) | |
| tree | 268387ee6a66290ad199be933a27312e73e0e250 /fluid | |
| parent | 3774a0b0a9d508de4d37d9c32ffd8b82bd7f5719 (diff) | |
Fluid: improve contrast of comments in widget browser
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/widget_browser.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fluid/widget_browser.cxx b/fluid/widget_browser.cxx index ac1e9da2e..b1d799ef0 100644 --- a/fluid/widget_browser.cxx +++ b/fluid/widget_browser.cxx @@ -299,8 +299,9 @@ void Widget_Browser::item_draw(void *v, int X, int Y, int, int) const { if (show_comments && l->comment()) { copy_trunc(buf, l->comment(), 80, 0); comment_incr = textsize()-1; - if (l->new_selected) fl_color(fl_contrast(FL_DARK_GREEN,FL_SELECTION_COLOR)); - else fl_color(fl_contrast(FL_DARK_GREEN,color())); + Fl_Color comment_color = fl_color_average(FL_DARK_GREEN, FL_BLACK, 0.9); + if (l->new_selected) fl_color(fl_contrast(comment_color, FL_SELECTION_COLOR)); + else fl_color(fl_contrast(comment_color, color())); fl_font(textfont()+FL_ITALIC, textsize()-2); fl_draw(buf, X, Y+12); Y += comment_incr/2; |
