EditorOptions fails to load some older versions of color settings
- Lazarus/FPC Version: 2.2RC2 / maybe others
See https://forum.lazarus.freepascal.org/index.php/topic,57021.msg426047
Gutter background color is not applied, when the IDE is restarted / not loaded from XML
From the forum:
If I use the old xml file the error reappears, so I looked at the Color section.
There are a number of differences, Working
<Color Version="13">
<LangObjectPascal Version="13">
<ColorScheme Value="Twilight"/>
<SchemeTwilight>
<ahaGutter Background="clGray"/>
</SchemeTwilight>
</LangObjectPascal>
<Globals Version="13">
<SchemeTwilight>
<ahaGutter Background="clGray"/>
</SchemeTwilight>
</Globals>
</Color>
Non-working
<Color Version="13">
<LangObjectPascal>
<ColorScheme Value="Twilight"/>
</LangObjectPascal>
<Globals Version="13">
<SchemeTwilight>
<ahaGutter Background="clGray"/>
</SchemeTwilight>
</Globals>
</Color>
so I manually edited the file to see if any were significant. In short, if i delete the [quote]Version="13"[/quote] from the "LangObjectPascal" section then the fault shows ( i.e. the gutter is black ); put it back in and it works correctly.
Deleting the "Globals" section in the working xml also puts the gutter to black, even though clGrey is also specified in the "ColorScheme" section.