* * *

Author Topic: Extra Font color schemes in Lazarus on App Mac  (Read 693 times)

carl_caulkett

  • Full Member
  • ***
  • Posts: 241
Extra Font color schemes in Lazarus on App Mac
« on: May 14, 2017, 08:12:09 pm »
Hello, I am just in the process of setting up a new (well - second hand!) Apple Mac computer. I've just installed Lazarus on it and am now trying to transfer over the color settings from my old Windows PC. The theme is defined in a file called Colortomorrow_night.xml and was originally exported from the Delphi IDE Theme Editor application. I've copied it into my /Developer/lazarus/ide/ folder and restarted Lazarus, but the drop down in Options cannot find the xml file. What am I doing wrong?
macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

carl_caulkett

  • Full Member
  • ***
  • Posts: 241
Re: Extra Font color schemes in Lazarus on App Mac
« Reply #1 on: May 14, 2017, 09:29:03 pm »
The problem is solved. I found a very useful page on the Lazarus Wiki at http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options_HighlightColors#Choosing_Color-Schemes. Essentially I had been trying to apply a Windows way of doing things whereas I should have created a new folder userschemes under my /Users/carl/.lazarus folder, and placed the XML file in there. It works now:

« Last Edit: May 14, 2017, 09:37:07 pm by carl_caulkett »
macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

carl_caulkett

  • Full Member
  • ***
  • Posts: 241
Re: Extra Font color schemes in Lazarus on App Mac
« Reply #2 on: May 14, 2017, 10:07:08 pm »
I know the code is not exactly portable yet. It's early days yet!

I have one final problem. I've changed the IDE editor background color to an just off-black shade, but my caret is also showing as black which means that I can barely see it. Can anyone help solve this one?

Thanks,
Carl
macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

carl_caulkett

  • Full Member
  • ***
  • Posts: 241
Re: Extra Font color schemes in Lazarus on App Mac
« Reply #3 on: May 14, 2017, 10:39:58 pm »
I managed to sort out this one by choosing a slightly lighter gray for the default background color of the code editor. It offers just enough contrast to the black caret to be perfectly usable...

macOS 10.12.6
Lazarus 1.8.0 RC4
FPC 3.0.2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4323
    • wiki
Re: Extra Font color schemes in Lazarus on App Mac
« Reply #4 on: May 15, 2017, 03:38:27 am »
I have one final problem. I've changed the IDE editor background color to an just off-black shade, but my caret is also showing as black which means that I can barely see it. Can anyone help solve this one?
There is no setting for the caret color.
It is supposed to work as xor (Pen.Mode := pmNotXOR), but not sure that works on Mac. Also xor gives bad results for medium grey background 0x777777.

But you can edit
components\synedit\syneditpointclasses.pas
line 2895
in procedure TSynEditScreenCaretPainterInternal.Init;

  FColor := clBlack;

you will have to try what works best.

----------
This works only for SynEdit in the IDE.
SynEdit in your own app, uses system drawn caret, unless you add multi-caret unit.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus