Re: [fltk.general] Re: "Flat" App Scheme

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: "Flat" App Scheme Greg Ercolano Apr 27, 2021 top right image
 


On 4/27/21 3:25 AM, Ian MacArthur wrote:
Anyway, returning to the original question, a flat style is actually pretty easy to make in fltk since the stock widgets all support a FL_FLAT_BOX style.


Yes, and I found in fluid you can set a button's Box: to Boxes -> RFLAT_BOX to get a round-edged button that, when colored blue, can look like this in an excerpt of an application screenshot:



And in the above, the "rounded frame" is just an Fl_Box with the Box: set to Frames -> ROUNDED_FRAME in fluid,
and the "Upgrade Firmware" that interrupts the frame line is just an Fl_Box over it that has the Box: set to boxes -> FLAT_BOX
with a color matching the window's background color (which has been made an almost-white).

That's all pretty trivial styling just with stock widgets. I didn't change the Fl::scheme() at all. For flat widgets, the default
FLTK scheme is best, since it doesn't introduce any gradients and such that would affect the flat look.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/f916267a-bc92-06ea-d35c-4e4d013f93b6%40seriss.com.
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.