From 9950c8e082c55dd1e3cd9311446a75b3c047eae3 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 2 Dec 2023 19:34:29 +0100 Subject: Improve contrast of check marks and radio buttons (#443) - add fl_draw_radio(...) to standardize radio button drawing - src/Fl_Light_Button.cxx: use fl_contrast() to determine color of radio button and check (light) button check marks, and use new fl_draw_radio() method - src/Fl_Menu.cxx: same as src/Fl_Light_Button.cxx and use fl_draw_check() instead of "manually" drawing the check mark (forgotten in an earlier update) --- FL/fl_draw.H | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'FL') diff --git a/FL/fl_draw.H b/FL/fl_draw.H index 4095aab34..2ad8d81af 100644 --- a/FL/fl_draw.H +++ b/FL/fl_draw.H @@ -982,6 +982,10 @@ FL_EXPORT void fl_draw_arrow(Fl_Rect bb, Fl_Arrow_Type t, Fl_Orientation o, Fl_C // Draw a potentially small, filled circle FL_EXPORT void fl_draw_circle(int x, int y, int d, Fl_Color color); +// Draw the full "radio button" of a radio menu entry or radio button +// This requires scheme specific handling (particularly gtk+ scheme) +FL_EXPORT void fl_draw_radio(int x, int y, int d, Fl_Color color); + // images: /** -- cgit v1.2.3