diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-09-01 12:33:11 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-09-01 12:35:48 +0200 |
| commit | b65d3a249d4db1ada6d0bc96031e55459e0d6381 (patch) | |
| tree | cb2d4c2778263df4245b6cb7122ab0bd8826c5c4 /test | |
| parent | 95799bd3641ebe43400aa85dd8cf84405f26aac8 (diff) | |
Customize corner radius for rounded box/frame (#130)
Make maximum box corner radius and shadow width configurable.
See Fl::box_border_radius_max() and Fl::box_shadow_width().
Documentation: update image of box types.
Fixes #130
Diffstat (limited to 'test')
| -rw-r--r-- | test/boxtype.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/boxtype.cxx b/test/boxtype.cxx index 8bcd1b0ed..9f67f0784 100644 --- a/test/boxtype.cxx +++ b/test/boxtype.cxx @@ -103,9 +103,13 @@ int main(int argc, char ** argv) { #else // this code uses the nice bright blue background to show box vs. frame types Fl::args(argc, argv); Fl::get_system_colors(); - window->color(12);// light blue + window->color(fl_rgb_color(51, 173, 255)); // light blue (#33adff) #endif + // TEST: set box shadow width and max. border radius (should be commented out) + // Fl::box_border_radius_max(5); // default: 15 (see documentation) + // Fl::box_shadow_width(6); // default: 3 (see documentation) + // set window title to show active scheme Fl::scheme(Fl::scheme()); // init scheme char title[100]; |
