|
29 | 29 |
|
30 | 30 | public class PdeTextAreaDefaults extends TextAreaDefaults { |
31 | 31 |
|
32 | | - public PdeTextAreaDefaults(Mode theme) { |
| 32 | + public PdeTextAreaDefaults(Mode mode) { |
33 | 33 | inputHandler = new DefaultInputHandler(); |
34 | 34 | //inputHandler.addDefaultKeyBindings(); // 0122 |
35 | 35 |
|
@@ -199,38 +199,39 @@ public PdeTextAreaDefaults(Mode theme) { |
199 | 199 |
|
200 | 200 | styles = new SyntaxStyle[Token.ID_COUNT]; |
201 | 201 |
|
202 | | - styles[Token.COMMENT1] = theme.getStyle("comment1"); |
203 | | - styles[Token.COMMENT2] = theme.getStyle("comment2"); |
| 202 | + styles[Token.COMMENT1] = mode.getStyle("comment1"); |
| 203 | + styles[Token.COMMENT2] = mode.getStyle("comment2"); |
204 | 204 |
|
205 | | - styles[Token.KEYWORD1] = theme.getStyle("keyword1"); |
206 | | - styles[Token.KEYWORD2] = theme.getStyle("keyword2"); |
207 | | - styles[Token.KEYWORD3] = theme.getStyle("keyword3"); |
208 | | - styles[Token.KEYWORD4] = theme.getStyle("keyword4"); |
209 | | - styles[Token.KEYWORD5] = theme.getStyle("keyword5"); |
| 205 | + styles[Token.KEYWORD1] = mode.getStyle("keyword1"); |
| 206 | + styles[Token.KEYWORD2] = mode.getStyle("keyword2"); |
| 207 | + styles[Token.KEYWORD3] = mode.getStyle("keyword3"); |
| 208 | + styles[Token.KEYWORD4] = mode.getStyle("keyword4"); |
| 209 | + styles[Token.KEYWORD5] = mode.getStyle("keyword5"); |
210 | 210 |
|
211 | | - styles[Token.FUNCTION1] = theme.getStyle("function1"); |
212 | | - styles[Token.FUNCTION2] = theme.getStyle("function2"); |
213 | | - styles[Token.FUNCTION3] = theme.getStyle("function3"); |
| 211 | + styles[Token.FUNCTION1] = mode.getStyle("function1"); |
| 212 | + styles[Token.FUNCTION2] = mode.getStyle("function2"); |
| 213 | + styles[Token.FUNCTION3] = mode.getStyle("function3"); |
| 214 | + styles[Token.FUNCTION4] = mode.getStyle("function4"); |
214 | 215 |
|
215 | | - styles[Token.LITERAL1] = theme.getStyle("literal1"); |
216 | | - styles[Token.LITERAL2] = theme.getStyle("literal2"); |
| 216 | + styles[Token.LITERAL1] = mode.getStyle("literal1"); |
| 217 | + styles[Token.LITERAL2] = mode.getStyle("literal2"); |
217 | 218 |
|
218 | | - styles[Token.LABEL] = theme.getStyle("label"); |
219 | | - styles[Token.OPERATOR] = theme.getStyle("operator"); |
| 219 | + styles[Token.LABEL] = mode.getStyle("label"); |
| 220 | + styles[Token.OPERATOR] = mode.getStyle("operator"); |
220 | 221 |
|
221 | 222 | // area that's not in use by the text (replaced with tildes) |
222 | | - styles[Token.INVALID] = theme.getStyle("invalid"); |
223 | | - |
224 | | - fgcolor = theme.getColor("editor.fgcolor"); |
225 | | - bgcolor = theme.getColor("editor.bgcolor"); |
226 | | - |
227 | | - caretColor = theme.getColor("editor.caret.color"); |
228 | | - selectionColor = theme.getColor("editor.selection.color"); |
229 | | - lineHighlight = theme.getBoolean("editor.linehighlight"); |
230 | | - lineHighlightColor = theme.getColor("editor.linehighlight.color"); |
231 | | - bracketHighlight = theme.getBoolean("editor.brackethighlight"); |
232 | | - bracketHighlightColor = theme.getColor("editor.brackethighlight.color"); |
233 | | - eolMarkers = theme.getBoolean("editor.eolmarkers"); |
234 | | - eolMarkerColor = theme.getColor("editor.eolmarkers.color"); |
| 223 | + styles[Token.INVALID] = mode.getStyle("invalid"); |
| 224 | + |
| 225 | + fgcolor = mode.getColor("editor.fgcolor"); |
| 226 | + bgcolor = mode.getColor("editor.bgcolor"); |
| 227 | + |
| 228 | + caretColor = mode.getColor("editor.caret.color"); |
| 229 | + selectionColor = mode.getColor("editor.selection.color"); |
| 230 | + lineHighlight = mode.getBoolean("editor.linehighlight"); |
| 231 | + lineHighlightColor = mode.getColor("editor.linehighlight.color"); |
| 232 | + bracketHighlight = mode.getBoolean("editor.brackethighlight"); |
| 233 | + bracketHighlightColor = mode.getColor("editor.brackethighlight.color"); |
| 234 | + eolMarkers = mode.getBoolean("editor.eolmarkers"); |
| 235 | + eolMarkerColor = mode.getColor("editor.eolmarkers.color"); |
235 | 236 | } |
236 | 237 | } |
0 commit comments