@@ -86,9 +86,9 @@ public ColorScheme ParseScheme(string schemeName, bool reportErrors = false)
8686
8787 string [ ] tableStrings = new string [ COLOR_TABLE_SIZE ] ;
8888 uint [ ] colorTable = null ;
89- uint ? forgroundColor = null ;
89+ uint ? foregroundColor = null ;
9090 uint ? backgroundColor = null ;
91- uint ? popupForgroundColor = null ;
91+ uint ? popupForegroundColor = null ;
9292 uint ? popupBackgroundColor = null ;
9393
9494 for ( int i = 0 ; i < COLOR_TABLE_SIZE ; i ++ )
@@ -119,24 +119,24 @@ public ColorScheme ParseScheme(string schemeName, bool reportErrors = false)
119119 colorTable [ i ] = ParseColor ( tableStrings [ i ] ) ;
120120 }
121121
122- if ( ReadAttributes ( "popup" , out var forground , out var background ) )
122+ if ( ReadAttributes ( "popup" , out var foreground , out var background ) )
123123 {
124- var forgroundIndex = ( COLOR_NAMES as IList < string > ) . IndexOf ( forground ) ;
124+ var foregroundIndex = ( COLOR_NAMES as IList < string > ) . IndexOf ( foreground ) ;
125125 var backgroundIndex = ( COLOR_NAMES as IList < string > ) . IndexOf ( background ) ;
126- if ( forgroundIndex != - 1 && backgroundIndex != - 1 )
126+ if ( foregroundIndex != - 1 && backgroundIndex != - 1 )
127127 {
128- popupForgroundColor = colorTable [ forgroundIndex ] ;
128+ popupForegroundColor = colorTable [ foregroundIndex ] ;
129129 popupBackgroundColor = colorTable [ backgroundIndex ] ;
130130 }
131131 }
132132
133- if ( ReadAttributes ( "screen" , out forground , out background ) )
133+ if ( ReadAttributes ( "screen" , out foreground , out background ) )
134134 {
135- var forgroundIndex = ( COLOR_NAMES as IList < string > ) . IndexOf ( forground ) ;
135+ var foregroundIndex = ( COLOR_NAMES as IList < string > ) . IndexOf ( foreground ) ;
136136 var backgroundIndex = ( COLOR_NAMES as IList < string > ) . IndexOf ( background ) ;
137- if ( forgroundIndex != - 1 && backgroundIndex != - 1 )
137+ if ( foregroundIndex != - 1 && backgroundIndex != - 1 )
138138 {
139- forgroundColor = colorTable [ forgroundIndex ] ;
139+ foregroundColor = colorTable [ foregroundIndex ] ;
140140 backgroundColor = colorTable [ backgroundIndex ] ;
141141 }
142142 }
@@ -154,22 +154,22 @@ public ColorScheme ParseScheme(string schemeName, bool reportErrors = false)
154154
155155 if ( colorTable != null )
156156 {
157- return new ColorScheme { colorTable = colorTable , background = backgroundColor , foreground = forgroundColor , popupBackground = popupBackgroundColor , popupForeground = popupForgroundColor } ;
157+ return new ColorScheme { colorTable = colorTable , background = backgroundColor , foreground = foregroundColor , popupBackground = popupBackgroundColor , popupForeground = popupForegroundColor } ;
158158 }
159159 else
160160 {
161161 return null ;
162162 }
163163
164- bool ReadAttributes ( string section , out string forground , out string background )
164+ bool ReadAttributes ( string section , out string foreground , out string background )
165165 {
166- forground = null ;
166+ foreground = null ;
167167 background = null ;
168168
169169 StringBuilder buffer = new StringBuilder ( 512 ) ;
170170 GetPrivateProfileString ( section , "FOREGROUND" , null , buffer , 512 , filename ) ;
171- forground = buffer . ToString ( ) ;
172- if ( ! COLOR_NAMES . Contains ( forground ) )
171+ foreground = buffer . ToString ( ) ;
172+ if ( ! COLOR_NAMES . Contains ( foreground ) )
173173 return false ;
174174
175175
0 commit comments