Recent

Author Topic: All my fonts are baby pink! - why that?  (Read 969 times)

Nicole

  • Sr. Member
  • ****
  • Posts: 331
All my fonts are baby pink! - why that?
« 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?

Thaddy

  • Hero Member
  • *****
  • Posts: 11889
Re: All my fonts are baby pink! - why that?
« Reply #1 on: July 30, 2022, 11:20:34 am »
Somebody did a prank on you?
Black themes should be banned.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2762
    • havefunsoft.com
Re: All my fonts are baby pink! - why that?
« Reply #2 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

MarkMLl

  • Hero Member
  • *****
  • Posts: 5119
Re: All my fonts are baby pink! - why that?
« Reply #3 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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Josh

  • Hero Member
  • *****
  • Posts: 992
Re: All my fonts are baby pink! - why that?
« Reply #4 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
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

af0815

  • Hero Member
  • *****
  • Posts: 1015
Re: All my fonts are baby pink! - why that?
« Reply #5 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
« Last Edit: July 31, 2022, 08:44:05 am by af0815 »
regards
Andreas

circular

  • Hero Member
  • *****
  • Posts: 3844
    • Personal webpage
Re: All my fonts are baby pink! - why that?
« Reply #6 on: July 31, 2022, 09:15:37 am »
Look for clFuchsia maybe
Conscience is the debugger of the mind

Nicole

  • Sr. Member
  • ****
  • Posts: 331
Re: All my fonts are baby pink! - why that?
« Reply #7 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