Forum > Options

[SOLVED] Completion box show identifiers in pink colors instead of green

<< < (2/2)

furious programming:
Ok, editing done. Wasted two hours but I'm quite happy.

Martin_fr:

--- Quote from: furious programming on March 27, 2024, 05:22:29 pm ---Ok, I found the usage of the InvertColor function, comment it out and pink color is gone. But the problem is that other colors are also not inverted, so hardcoded colors like clBlack for ctnUnit and ctnUseUnitClearName are invisible, so I have to additionally change them.

Please, do the style configurator for the completion box, similar to the one for the SynEdit. The current solution is poor and irritating.

--- End quote ---

As I said, it's ages since I looked at this. Currently I have no idea what ctnUseUnitClearName is (I have a general inkling, but no concrete idea).

So whatever is broken with ctnUseUnitClearName => please create a bug report.

About the "Invert color" => that is general a required feature. In SynEdit you can have colors which modify only either back or foreground, and then also have an alpha channel. So there always is a chance that it goes black on black... That said in my search this afternoon, I was unable to find that code in SynEdit. And it should be there.
Though, some day, the thresholds should be configurable. But that is "some day...".

So for now, if there is something wrong or missing, other that the invert color => bugtracker please.

furious programming:

--- Quote from: Martin_fr on March 27, 2024, 08:18:31 pm ---So whatever is broken with ctnUseUnitClearName => please create a bug report.

--- End quote ---

Everything in this case works as intended. The problem is not the color inversion, but the fact that the colors for the left column are hard-coded, so not only do they not match the user's color scheme, but inverting them can produce completely crap colors (like the pink one I had).


--- Quote ---So for now, if there is something wrong or missing, other that the invert color => bugtracker please.

--- End quote ---

Currently, the missing element is the style configurator for the completion box. So I don't know if it makes sense to report it in bugtracker.

Martin_fr:

--- Quote from: furious programming on March 27, 2024, 08:37:53 pm ---Currently, the missing element is the style configurator for the completion box. So I don't know if it makes sense to report it in bugtracker.

--- End quote ---

Yes, please report.

It probably is easy to add. But it's even easier to forget. And if on the tracker, maybe someone else from the team picks it up, before I find the time...

furious programming:
Ok, reported — https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40868

Navigation

[0] Message Index

[*] Previous page

Go to full version