summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-12-02 19:34:29 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-12-02 19:34:29 +0100
commit9950c8e082c55dd1e3cd9311446a75b3c047eae3 (patch)
tree69b5e34f64a60ff2799191ae85db9ead4260d1ad /FL
parent0aa8e28be0af167929e72267c6e1d5588bc9c3ed (diff)
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)
Diffstat (limited to 'FL')
-rw-r--r--FL/fl_draw.H4
1 files changed, 4 insertions, 0 deletions
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:
/**