mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 14:56:00 +02:00
ide: fix changing element color from default to another
git-svn-id: trunk@17563 -
This commit is contained in:
parent
f69fe79d0e
commit
a15911d343
@ -162,25 +162,31 @@ begin
|
|||||||
begin
|
begin
|
||||||
if (CurHighlightElement = nil) or UpdatingColor then
|
if (CurHighlightElement = nil) or UpdatingColor then
|
||||||
exit;
|
exit;
|
||||||
|
UpdatingColor := True;
|
||||||
CurHighlightElement.Foreground := DefaultToNone(ForeGroundColorBox.Selected);
|
CurHighlightElement.Foreground := DefaultToNone(ForeGroundColorBox.Selected);
|
||||||
ForeGroundUseDefaultCheckBox.Checked := ForeGroundColorBox.Selected = clDefault;
|
ForeGroundUseDefaultCheckBox.Checked := ForeGroundColorBox.Selected = clDefault;
|
||||||
InvalidatePreviews;
|
InvalidatePreviews;
|
||||||
|
UpdatingColor := False;
|
||||||
end;
|
end;
|
||||||
if Sender = BackGroundColorBox then
|
if Sender = BackGroundColorBox then
|
||||||
begin
|
begin
|
||||||
if (CurHighlightElement = nil) or UpdatingColor then
|
if (CurHighlightElement = nil) or UpdatingColor then
|
||||||
exit;
|
exit;
|
||||||
|
UpdatingColor := True;
|
||||||
CurHighlightElement.Background := DefaultToNone(BackGroundColorBox.Selected);
|
CurHighlightElement.Background := DefaultToNone(BackGroundColorBox.Selected);
|
||||||
BackGroundUseDefaultCheckBox.Checked := BackGroundColorBox.Selected = clDefault;
|
BackGroundUseDefaultCheckBox.Checked := BackGroundColorBox.Selected = clDefault;
|
||||||
InvalidatePreviews;
|
InvalidatePreviews;
|
||||||
|
UpdatingColor := False;
|
||||||
end;
|
end;
|
||||||
if Sender = FrameColorBox then
|
if Sender = FrameColorBox then
|
||||||
begin
|
begin
|
||||||
if (CurHighlightElement = nil) or UpdatingColor then
|
if (CurHighlightElement = nil) or UpdatingColor then
|
||||||
exit;
|
exit;
|
||||||
|
UpdatingColor := True;
|
||||||
CurHighlightElement.FrameColor := DefaultToNone(FrameColorBox.Selected);
|
CurHighlightElement.FrameColor := DefaultToNone(FrameColorBox.Selected);
|
||||||
FrameColorUseDefaultCheckBox.Checked := FrameColorBox.Selected = clDefault;
|
FrameColorUseDefaultCheckBox.Checked := FrameColorBox.Selected = clDefault;
|
||||||
InvalidatePreviews;
|
InvalidatePreviews;
|
||||||
|
UpdatingColor := False;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user