mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:19:47 +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
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user