diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-05-17 14:20:01 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-05-17 14:20:01 +0200 |
| commit | d0922792ae6be8c30fadfa93ad7cd482f38da160 (patch) | |
| tree | f74b3608b177734e5443bcd582c3c518918dff81 /src/Fl_MacOS_Sys_Menu_Bar.mm | |
| parent | 7410498a7f056f4bbfb04ab3bd8286bea2c9ecf3 (diff) | |
Improve fl_contrast() functionality and documentation
- swap 3rd and 4th parameter of fl_contrast()
- change 'Fl_Fontsize fs' to a neutral 'int size' parameter
- clarify documentation of fl_contrast_level() and that different
contrast algorithms use different level values
- clarify that level 39 for the CIELAB mode results in "sufficient"
contrast, i.e. /readable/ text which is the only intention of
fl_contrast().
Reasoning: swapping the arguments looks more natural, i.e. the context
before another argument (size) is what one would usually expect. Since
the 'size' argument doesn't have be a font size, making it a simple
'int size' is more flexible and correct for future extensions.
Diffstat (limited to 'src/Fl_MacOS_Sys_Menu_Bar.mm')
0 files changed, 0 insertions, 0 deletions
