Lazarus

Programming => LCL => Topic started by: Nicole on July 30, 2022, 10:48:32 am

Title: All my fonts are baby pink! - why that?
Post by: Nicole on July 30, 2022, 10:48:32 am
I seem to have changed the wrong field.
If I add anything to my form (button, edit line, memo,....) the fonts are bright baby-pink on white = nearly invisible.

I checked the font-color on my TForm, it is default.

Where can I find the baby?

If I start a new project the controls have black color what is default and wanted.
So the baby must hide away in any of the project's parents.
I thought Form1, but cannot find it there.

Where else can I look?
Title: Re: All my fonts are baby pink! - why that?
Post by: Thaddy on July 30, 2022, 11:20:34 am
Somebody did a prank on you?
Title: Re: All my fonts are baby pink! - why that?
Post by: skalogryz on July 30, 2022, 07:43:14 pm
I thought Form1, but cannot find it there.
it should be Color or Font.Color.

If you're using version control, it's the proper tool to figure out what has changed to cause the problem
Title: Re: All my fonts are baby pink! - why that?
Post by: MarkMLl on July 30, 2022, 10:11:01 pm
I seem to have changed the wrong field.

If I might make a general comment based on the problem you were having with identifying the sender of an event: it's not necessarily the wrong field that you've changed (i.e. something identified by a specific name), but instead is a field in an unexpected object because you're not allowing for inheritance.

However in the current case it sounds like you might have a wild pointer or something similar, I think that by now you've probably found anywhere that you're using "baby pink" as a colour and anywhere that you're referring to Color, ParentColor and so on.

MarkMLl
Title: Re: All my fonts are baby pink! - why that?
Post by: Josh on July 30, 2022, 11:08:40 pm
Hi Nicole,

can you clarify is this the form at design time, or runtime.

if its design time search for the font name in the lfm file, (BACKUP BACKUP!), you can do a find replace if you find it, then save the lfm, and re-open project.

if its runtime, 1) again  (BACKUP BACKUP!) search font name in your form.pas file and check why and what property your changing. 2) make sure your havent changed your system default font/color as controls using font as default, and parentfont etc to true iterating to form parent font.. hope the last bit makes sense.

just some ideas
Title: Re: All my fonts are baby pink! - why that?
Post by: af0815 on July 31, 2022, 08:19:02 am
(BACKUP BACKUP!)
It should more "Commit", "Commit" (SCNR)

And search with a good texteditor in the lfm's too, for non default font
Title: Re: All my fonts are baby pink! - why that?
Post by: circular on July 31, 2022, 09:15:37 am
Look for clFuchsia maybe
Title: Re: All my fonts are baby pink! - why that?
Post by: Nicole on August 01, 2022, 08:48:44 am
Thank you for the answers.
To answer one question: It is design time (and then as well at run time).

Sorry for the confusion which causes the color-calling "baby pink".
The color-value is not the problem, I know it's hex-value and hopefully shall find it in one of the mentioned places.
The problem is, that I cannot just delete it from the lfm, because I used it as background color often and wanted it there.
I have to delete it exactly on the place, where it went by mistake.
To find this property, is the problem, because sometimes color-properties have names, which are very little intuitive.
For this reason I would rather prefer to change it in the object inspector, because I can see there at sudden, if layout is shot.


Why I know her hex value - I have a trick and the trick I will share with you:
There is a very small software, which I use since ever. It works with - Win98 - and with all Win versions later.
No installation, only some KB large and small screen.
This software allows to pick by pixel every color anywhere on the screen and give it back in Delphi / Lazarus format.
One click on copy, the next click into the object manager to paste.
And it has 3 rulers to generate color families for design.
Hope this version is that puristic as my ancient one:
https://www.heise.de/download/product/colormania-36611
TinyPortal © 2005-2018