mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 04:20:29 +01:00
Renames GetRGBBackgroundColor to GetRGBColorResolvingParent because the previous name was wrong. It has not necessarily to be a background color, it is really just the Color.
git-svn-id: trunk@33280 -
This commit is contained in:
parent
66cff6df33
commit
943326f458
@ -885,11 +885,11 @@ end;
|
||||
|
||||
procedure TCDControl.PrepareControlStateEx;
|
||||
begin
|
||||
if Parent <> nil then FStateEx.ParentRGBColor := Parent.GetRGBBackgroundColor
|
||||
if Parent <> nil then FStateEx.ParentRGBColor := Parent.GetRGBColorResolvingParent
|
||||
else FStateEx.ParentRGBColor := clSilver;
|
||||
|
||||
if Color = clDefault then FStateEx.RGBColor := FDrawer.GetControlColor(GetControlId())
|
||||
else FStateEx.RGBColor := GetRGBBackgroundColor;
|
||||
else FStateEx.RGBColor := GetRGBColorResolvingParent;
|
||||
|
||||
FStateEx.Caption := Caption;
|
||||
FStateEx.Font := Font;
|
||||
|
||||
@ -1329,7 +1329,7 @@ type
|
||||
function GetDefaultColor(const DefaultColorType: TDefaultColorType): TColor; virtual;
|
||||
// These two are helper routines to help obtain the background color of a control
|
||||
function GetColorResolvingParent: TColor;
|
||||
function GetRGBBackgroundColor: TColor;
|
||||
function GetRGBColorResolvingParent: TColor;
|
||||
//
|
||||
function GetSidePosition(Side: TAnchorKind): integer;
|
||||
procedure CNPreferredSizeChanged;
|
||||
|
||||
@ -992,7 +992,7 @@ begin
|
||||
Result := Color;
|
||||
end;
|
||||
|
||||
function TControl.GetRGBBackgroundColor: TColor;
|
||||
function TControl.GetRGBColorResolvingParent: TColor;
|
||||
begin
|
||||
Result := ColorToRGB(GetColorResolvingParent());
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user