mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 22:04:26 +08:00
Fluid: improve contrast of comments in widget browser
This commit is contained in:
@@ -299,8 +299,9 @@ void Widget_Browser::item_draw(void *v, int X, int Y, int, int) const {
|
|||||||
if (show_comments && l->comment()) {
|
if (show_comments && l->comment()) {
|
||||||
copy_trunc(buf, l->comment(), 80, 0);
|
copy_trunc(buf, l->comment(), 80, 0);
|
||||||
comment_incr = textsize()-1;
|
comment_incr = textsize()-1;
|
||||||
if (l->new_selected) fl_color(fl_contrast(FL_DARK_GREEN,FL_SELECTION_COLOR));
|
Fl_Color comment_color = fl_color_average(FL_DARK_GREEN, FL_BLACK, 0.9);
|
||||||
else fl_color(fl_contrast(FL_DARK_GREEN,color()));
|
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_font(textfont()+FL_ITALIC, textsize()-2);
|
||||||
fl_draw(buf, X, Y+12);
|
fl_draw(buf, X, Y+12);
|
||||||
Y += comment_incr/2;
|
Y += comment_incr/2;
|
||||||
|
|||||||
Reference in New Issue
Block a user