FLTK logo

Re: [fltk.general] FLTK custom themes

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: FLTK custom themes Greg Ercolano Oct 04, 2020  
 
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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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