View Issue Details

IDProjectCategoryView StatusLast Update
0002069SkyChart1-Softwarepublic19-02-03 09:58
ReporterSasa Assigned ToPatrick Chevalley  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntu 64-bitOS Version18.10
Product Version4.1 SVN 
Summary0002069: System info form - very dark fonts
DescriptionLazarus SVN 60261, FPC 3.0.4. latest CDC revision 02.02.2019. 22:19:46 +0100

After compiling and running, fonts inside System info form for text in various checkboxe and radiogroup can be barely seen - they are dark.

This may be caused by anything, as latest deb from your repository have no such problem.
TagsNo tags attached.

Activities

Sasa

19-02-03 00:01

reporter  

Sasa

19-02-03 08:15

reporter   ~0005301

Last edited: 19-02-03 08:20

The following code under compiler directive in pu_planetinfo.pas makes the problem. If removed, all is shown fine:

procedure Tf_planetinfo.FormCreate(Sender: TObject);
begin

  {$ifdef lclgtk2}
  if not DarkTheme then begin
    Color:=clBlack;
    Font.Color:=clWhite;
  end;
  {$endif}
...

Patrick Chevalley

19-02-03 09:35

administrator   ~0005302

If you remove this code all the control on the right and top use the default theme color and appear in gray. The goal was to have the full window with black background, even if this only work with gtk2.

The origin of the problem is my yesterday change when I added the size constraint for the two combobox in this form.
For a unknown reason Lazarus decided to set ParentFont=false in the lfm but let ParentColor=true.
I check more in detail the diff for this change to see if this affect other part of the program.

Patrick Chevalley

19-02-03 09:58

administrator   ~0005303

I set again ParentFont=true and this fix the problem.
This is the default value in property editor so this effectively remove ParentFont=false in the lfm.

There must not be other problem elsewhere in the program because all the other forms use the default theme color.

Issue History

Date Modified Username Field Change
19-02-03 00:01 Sasa New Issue
19-02-03 00:01 Sasa File Added: Screenshot from 2019-02-02 23-44-32.png
19-02-03 08:15 Sasa Note Added: 0005301
19-02-03 08:19 Sasa Note Edited: 0005301
19-02-03 08:20 Sasa Note Edited: 0005301
19-02-03 09:35 Patrick Chevalley Note Added: 0005302
19-02-03 09:58 Patrick Chevalley Assigned To => Patrick Chevalley
19-02-03 09:58 Patrick Chevalley Status new => resolved
19-02-03 09:58 Patrick Chevalley Resolution open => fixed
19-02-03 09:58 Patrick Chevalley Note Added: 0005303