ide: fix changing element color from default to another

git-svn-id: trunk@17563 -
This commit is contained in:
paul 2008-11-24 06:42:54 +00:00
parent f69fe79d0e
commit a15911d343

View File

@ -162,25 +162,31 @@ begin
begin
if (CurHighlightElement = nil) or UpdatingColor then
exit;
UpdatingColor := True;
CurHighlightElement.Foreground := DefaultToNone(ForeGroundColorBox.Selected);
ForeGroundUseDefaultCheckBox.Checked := ForeGroundColorBox.Selected = clDefault;
InvalidatePreviews;
UpdatingColor := False;
end;
if Sender = BackGroundColorBox then
begin
if (CurHighlightElement = nil) or UpdatingColor then
exit;
UpdatingColor := True;
CurHighlightElement.Background := DefaultToNone(BackGroundColorBox.Selected);
BackGroundUseDefaultCheckBox.Checked := BackGroundColorBox.Selected = clDefault;
InvalidatePreviews;
UpdatingColor := False;
end;
if Sender = FrameColorBox then
begin
if (CurHighlightElement = nil) or UpdatingColor then
exit;
UpdatingColor := True;
CurHighlightElement.FrameColor := DefaultToNone(FrameColorBox.Selected);
FrameColorUseDefaultCheckBox.Checked := FrameColorBox.Selected = clDefault;
InvalidatePreviews;
UpdatingColor := False;
end;
end;