|
|
On 2020-10-04 20:31, DarkGren wrote:
> The default theme looks uh.. a bit ugly imo
> is there a way to customise FLTK with themes?
Try putting /one/ of these settings at the top of main(), to try the different 'themes'
that FLTK comes with:
Fl::scheme("gtk+");
Fl::scheme("gleam");
Both improve the interfaces quite a bit.
(There is also a "plastic" scheme, but it's kinda old looking)
You can also run the demo programs with different command line options to change the scheme
to see how the different widgets look, e.g.
cd test
./buttons -- default scheme
./buttons -scheme gtk+ -- use gtk+ scheme
./buttons -scheme gleam -- use gleam scheme
If you don't like either of those, you can change the color map for the gray ramp
to tint the interface different colors, but you're kinda on your own with that.
To implement a new scheme is kinda tricky, as there's no API provided to change
the scheme; you basically have to hack into the code to make more extensive changes.
That said, people have gone a long way making nice looking interfaces in FLTK using
combos of changing the color maps and/or using the above scheme options.
--
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/50542759-21fb-2471-c675-c9030e8d0ea4%40seriss.com.
[ Direct Link to Message ] | |
|
| |