From 33b601e57404fcef058a992ba7767f2c4f16a81b Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 11 Oct 2023 22:25:52 +0100 Subject: Synchronize all arrow colors and inactive drawing (#791) --- src/Fl_Input_Choice.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl_Input_Choice.cxx') diff --git a/src/Fl_Input_Choice.cxx b/src/Fl_Input_Choice.cxx index 059a1cc2d..fcb9f9c55 100644 --- a/src/Fl_Input_Choice.cxx +++ b/src/Fl_Input_Choice.cxx @@ -136,10 +136,10 @@ Fl_Input_Choice::InputMenuButton::InputMenuButton(int x,int y,int w,int h,const void Fl_Input_Choice::InputMenuButton::draw() { draw_box(); - fl_color(active_r() ? labelcolor() : fl_inactive(labelcolor())); + Fl_Color arrow_color = parent()->active_r() ? parent()->labelcolor() : fl_inactive(parent()->labelcolor()); Fl_Rect ab(this); ab.inset(1); - fl_draw_arrow(ab, FL_ARROW_CHOICE, FL_ORIENT_NONE, fl_color()); + fl_draw_arrow(ab, FL_ARROW_CHOICE, FL_ORIENT_NONE, arrow_color); if (Fl::focus() == this) draw_focus(); } -- cgit v1.2.3