diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-04-26 12:42:11 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-04-26 12:42:11 +0200 |
| commit | 281ec24c8f4b7daf7cc4e7c30b640cbe0b33d037 (patch) | |
| tree | 254e20596d544cb25d32ab2067d9e18afc4ac097 /src/Fl_get_system_colors.cxx | |
| parent | 9a0d1f16d7b78a7e789c30728df79166b95da115 (diff) | |
Box types can now defined and draw their own focus frame, STR 2145, #659
Diffstat (limited to 'src/Fl_get_system_colors.cxx')
| -rw-r--r-- | src/Fl_get_system_colors.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_get_system_colors.cxx b/src/Fl_get_system_colors.cxx index ecc08a5e0..24bf8e441 100644 --- a/src/Fl_get_system_colors.cxx +++ b/src/Fl_get_system_colors.cxx @@ -144,6 +144,7 @@ extern void fl_thin_up_box(int, int, int, int, Fl_Color); extern void fl_thin_down_box(int, int, int, int, Fl_Color); extern void fl_round_up_box(int, int, int, int, Fl_Color); extern void fl_round_down_box(int, int, int, int, Fl_Color); +extern void fl_round_focus(Fl_Boxtype, int, int, int, int, Fl_Color, Fl_Color); extern void fl_up_frame(int, int, int, int, Fl_Color); extern void fl_down_frame(int, int, int, int, Fl_Color); @@ -359,8 +360,8 @@ int Fl::reload_scheme() { set_boxtype(FL_DOWN_BOX, fl_down_box, D1, D1, D2, D2); set_boxtype(FL_THIN_UP_BOX, fl_thin_up_box, 1, 1, 2, 2); set_boxtype(FL_THIN_DOWN_BOX, fl_thin_down_box, 1, 1, 2, 2); - set_boxtype(_FL_ROUND_UP_BOX, fl_round_up_box, 3, 3, 6, 6); - set_boxtype(_FL_ROUND_DOWN_BOX, fl_round_down_box, 3, 3, 6, 6); + set_boxtype(_FL_ROUND_UP_BOX, fl_round_up_box, 3, 3, 6, 6, fl_round_focus); + set_boxtype(_FL_ROUND_DOWN_BOX, fl_round_down_box, 3, 3, 6, 6, fl_round_focus); // Use standard size scrollbars... Fl::scrollbar_size(16); |
