mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 05:58:18 +02:00
- tiny changes in non transparent speedbutton painting
git-svn-id: trunk@11162 -
This commit is contained in:
parent
e45bc069f0
commit
a3507ade6c
@ -546,11 +546,6 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
if not Transparent then
|
||||
begin
|
||||
Canvas.Brush.Color := Color;
|
||||
Canvas.FillRect(PaintRect);
|
||||
end;
|
||||
DrawGlyph(Canvas, PaintRect, Offset, FState, Transparent, 0);
|
||||
if FShowCaption and (Caption <> '') then
|
||||
begin
|
||||
|
@ -155,8 +155,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
if (not ASpeedButton.Transparent) and ASpeedButton.Enabled and
|
||||
(ASpeedButton.Color <> clBtnFace) then
|
||||
if (not ASpeedButton.Transparent) and ASpeedButton.Enabled then
|
||||
begin
|
||||
ASpeedButton.Canvas.Brush.Color := ASpeedButton.Color;
|
||||
ASpeedButton.Canvas.FillRect(ARect);
|
||||
|
Loading…
Reference in New Issue
Block a user