From b65d3a249d4db1ada6d0bc96031e55459e0d6381 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 1 Sep 2020 12:33:11 +0200 Subject: 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 --- test/boxtype.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') 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]; -- cgit v1.2.3