[Lazarus] lazarus editor coloring

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Jan 21 10:31:25 CET 2010


ik wrote:
> 1. The ability to add/save new color style I'm making
> 2. Loading custom made coloring

I've had the same issue, and have about 15 different color scheme files
available. By files I mean a copies of the .xml file Lazarus generates.


> Now the big question is, how do I add such feature to Lazarus ? What
> exactly does it require and what points do I need to know before doing

A few months back I created a patch which removes the "hard coded" color
scheme idea, and instead existing color schemes register themselves with a
singleton class. The patch was applied, but I haven't had the time to
continue the work on importing and exporting new color schemes.

Things that need to be addressed:

* For one, I think the color scheme information should go into a separate
.xml file and not be part of the editoroptions.xml file.

* I also think a "runtime" loading of color schemes is required. Lazarus
comes standard with 5 or so, but when Lazarus starts up, it should also
check a directory (eg: ~/.lazarus/colorschemes/) for any custom schemes and
populate the scheme combobox with those too.

* If previously you used a custom color scheme and one restarting that
scheme is not available, it should fall back to one of the default color
schemes include with lazarus (always available).



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/





More information about the Lazarus mailing list