IDE, EditorOptions: New ColorSchemFactory; color editor - fix default handling for base-color

git-svn-id: trunk@25663 -
This commit is contained in:
martin 2010-05-26 14:26:58 +00:00
parent 74a520edf8
commit b35753d476

View File

@ -761,9 +761,19 @@ begin
BackGroundColorBox.Enabled := hafBackColor in AttrToShow.Features;
BackGroundUseDefaultCheckBox.Enabled := (hafBackColor in AttrToShow.Features) and
not(AttrToShow.Group = agnDefault);
if AttrToShow.Group = agnDefault then
BackGroundColorBox.Style := BackGroundColorBox.Style - [cbIncludeDefault]
else
BackGroundColorBox.Style := BackGroundColorBox.Style + [cbIncludeDefault];
ForegroundColorBox.Enabled := hafForeColor in AttrToShow.Features;
ForeGroundUseDefaultCheckBox.Enabled := (hafForeColor in AttrToShow.Features) and
not(AttrToShow.Group = agnDefault);
if AttrToShow.Group = agnDefault then
ForegroundColorBox.Style := ForegroundColorBox.Style - [cbIncludeDefault]
else
ForegroundColorBox.Style := ForegroundColorBox.Style + [cbIncludeDefault];
FrameColorBox.Enabled := hafFrameColor in AttrToShow.Features;
FrameColorUseDefaultCheckBox.Enabled := hafFrameColor in AttrToShow.Features;