Lazarus
Programming => Widgetset => GTK => Topic started by: AlexTP on November 09, 2018, 08:35:05 pm
-
I post screenshot of About window with TButtonPanel component.
If using color picker - you ll see that TBUttonPanel back color not the same as form color.
How to fix?
Ubuntu 18.4 x64.
-
TButtonPanel is TCustomPanel descendant, I guess TPanel has also different color than TForm. Maybe it depends on color settings of your system.
-
Use two panels?
-
Mint 19, FPC3.2.0, Laz 2.1.0 does not show this color discrepancy (which is mysterious in your case, since TCustomPanel's constructor sets ParentColor to True).
-
Check in the Object Inspector whether the Color property of the TButtonPanel is set to anything other than clDefault; barring bugs in the LCL, that's AFAIK the only way you could be seeing that effect.
FWIW, it works OK here: Kubuntu 14.04, Lazarus 1.8.4-GTK2.
-
Of course, ButtonPanel's color is clDefault (no line in LFM file).