|
3 | 3 | * Licensed under the MIT License. See License.txt in the project root for license information.
|
4 | 4 | *--------------------------------------------------------------------------------------------*/
|
5 | 5 |
|
6 |
| -import { Codicon } from 'vs/base/common/codicons'; |
| 6 | +import 'vs/css!./symbolIcons'; |
7 | 7 | import { localize } from 'vs/nls';
|
8 | 8 | import { foreground, registerColor } from 'vs/platform/theme/common/colorRegistry';
|
9 |
| -import { IColorTheme, ICssStyleCollector, registerThemingParticipant } from 'vs/platform/theme/common/themeService'; |
10 | 9 |
|
11 | 10 | export const SYMBOL_ICON_ARRAY_FOREGROUND = registerColor('symbolIcon.arrayForeground', {
|
12 | 11 | dark: foreground,
|
@@ -238,172 +237,3 @@ export const SYMBOL_ICON_VARIABLE_FOREGROUND = registerColor('symbolIcon.variabl
|
238 | 237 | hcDark: '#75BEFF',
|
239 | 238 | hcLight: '#007ACC',
|
240 | 239 | }, localize('symbolIcon.variableForeground', 'The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'));
|
241 |
| - |
242 |
| -registerThemingParticipant((theme: IColorTheme, collector: ICssStyleCollector) => { |
243 |
| - |
244 |
| - const symbolIconArrayColor = theme.getColor(SYMBOL_ICON_ARRAY_FOREGROUND); |
245 |
| - if (symbolIconArrayColor) { |
246 |
| - collector.addRule(`${Codicon.symbolArray.cssSelector} { color: ${symbolIconArrayColor}; }`); |
247 |
| - } |
248 |
| - |
249 |
| - const symbolIconBooleanColor = theme.getColor(SYMBOL_ICON_BOOLEAN_FOREGROUND); |
250 |
| - if (symbolIconBooleanColor) { |
251 |
| - collector.addRule(`${Codicon.symbolBoolean.cssSelector} { color: ${symbolIconBooleanColor}; }`); |
252 |
| - } |
253 |
| - |
254 |
| - const symbolIconClassColor = theme.getColor(SYMBOL_ICON_CLASS_FOREGROUND); |
255 |
| - if (symbolIconClassColor) { |
256 |
| - collector.addRule(`${Codicon.symbolClass.cssSelector} { color: ${symbolIconClassColor}; }`); |
257 |
| - } |
258 |
| - |
259 |
| - const symbolIconMethodColor = theme.getColor(SYMBOL_ICON_METHOD_FOREGROUND); |
260 |
| - if (symbolIconMethodColor) { |
261 |
| - collector.addRule(`${Codicon.symbolMethod.cssSelector} { color: ${symbolIconMethodColor}; }`); |
262 |
| - } |
263 |
| - |
264 |
| - const symbolIconColorColor = theme.getColor(SYMBOL_ICON_COLOR_FOREGROUND); |
265 |
| - if (symbolIconColorColor) { |
266 |
| - collector.addRule(`${Codicon.symbolColor.cssSelector} { color: ${symbolIconColorColor}; }`); |
267 |
| - } |
268 |
| - |
269 |
| - const symbolIconConstantColor = theme.getColor(SYMBOL_ICON_CONSTANT_FOREGROUND); |
270 |
| - if (symbolIconConstantColor) { |
271 |
| - collector.addRule(`${Codicon.symbolConstant.cssSelector} { color: ${symbolIconConstantColor}; }`); |
272 |
| - } |
273 |
| - |
274 |
| - const symbolIconConstructorColor = theme.getColor(SYMBOL_ICON_CONSTRUCTOR_FOREGROUND); |
275 |
| - if (symbolIconConstructorColor) { |
276 |
| - collector.addRule(`${Codicon.symbolConstructor.cssSelector} { color: ${symbolIconConstructorColor}; }`); |
277 |
| - } |
278 |
| - |
279 |
| - const symbolIconEnumeratorColor = theme.getColor(SYMBOL_ICON_ENUMERATOR_FOREGROUND); |
280 |
| - if (symbolIconEnumeratorColor) { |
281 |
| - collector.addRule(` |
282 |
| - ${Codicon.symbolValue.cssSelector},${Codicon.symbolEnum.cssSelector} { color: ${symbolIconEnumeratorColor}; }`); |
283 |
| - } |
284 |
| - |
285 |
| - const symbolIconEnumeratorMemberColor = theme.getColor(SYMBOL_ICON_ENUMERATOR_MEMBER_FOREGROUND); |
286 |
| - if (symbolIconEnumeratorMemberColor) { |
287 |
| - collector.addRule(`${Codicon.symbolEnumMember.cssSelector} { color: ${symbolIconEnumeratorMemberColor}; }`); |
288 |
| - } |
289 |
| - |
290 |
| - const symbolIconEventColor = theme.getColor(SYMBOL_ICON_EVENT_FOREGROUND); |
291 |
| - if (symbolIconEventColor) { |
292 |
| - collector.addRule(`${Codicon.symbolEvent.cssSelector} { color: ${symbolIconEventColor}; }`); |
293 |
| - } |
294 |
| - |
295 |
| - const symbolIconFieldColor = theme.getColor(SYMBOL_ICON_FIELD_FOREGROUND); |
296 |
| - if (symbolIconFieldColor) { |
297 |
| - collector.addRule(`${Codicon.symbolField.cssSelector} { color: ${symbolIconFieldColor}; }`); |
298 |
| - } |
299 |
| - |
300 |
| - const symbolIconFileColor = theme.getColor(SYMBOL_ICON_FILE_FOREGROUND); |
301 |
| - if (symbolIconFileColor) { |
302 |
| - collector.addRule(`${Codicon.symbolFile.cssSelector} { color: ${symbolIconFileColor}; }`); |
303 |
| - } |
304 |
| - |
305 |
| - const symbolIconFolderColor = theme.getColor(SYMBOL_ICON_FOLDER_FOREGROUND); |
306 |
| - if (symbolIconFolderColor) { |
307 |
| - collector.addRule(`${Codicon.symbolFolder.cssSelector} { color: ${symbolIconFolderColor}; }`); |
308 |
| - } |
309 |
| - |
310 |
| - const symbolIconFunctionColor = theme.getColor(SYMBOL_ICON_FUNCTION_FOREGROUND); |
311 |
| - if (symbolIconFunctionColor) { |
312 |
| - collector.addRule(`${Codicon.symbolFunction.cssSelector} { color: ${symbolIconFunctionColor}; }`); |
313 |
| - } |
314 |
| - |
315 |
| - const symbolIconInterfaceColor = theme.getColor(SYMBOL_ICON_INTERFACE_FOREGROUND); |
316 |
| - if (symbolIconInterfaceColor) { |
317 |
| - collector.addRule(`${Codicon.symbolInterface.cssSelector} { color: ${symbolIconInterfaceColor}; }`); |
318 |
| - } |
319 |
| - |
320 |
| - const symbolIconKeyColor = theme.getColor(SYMBOL_ICON_KEY_FOREGROUND); |
321 |
| - if (symbolIconKeyColor) { |
322 |
| - collector.addRule(`${Codicon.symbolKey.cssSelector} { color: ${symbolIconKeyColor}; }`); |
323 |
| - } |
324 |
| - |
325 |
| - const symbolIconKeywordColor = theme.getColor(SYMBOL_ICON_KEYWORD_FOREGROUND); |
326 |
| - if (symbolIconKeywordColor) { |
327 |
| - collector.addRule(`${Codicon.symbolKeyword.cssSelector} { color: ${symbolIconKeywordColor}; }`); |
328 |
| - } |
329 |
| - |
330 |
| - const symbolIconModuleColor = theme.getColor(SYMBOL_ICON_MODULE_FOREGROUND); |
331 |
| - if (symbolIconModuleColor) { |
332 |
| - collector.addRule(`${Codicon.symbolModule.cssSelector} { color: ${symbolIconModuleColor}; }`); |
333 |
| - } |
334 |
| - |
335 |
| - const outlineNamespaceColor = theme.getColor(SYMBOL_ICON_NAMESPACE_FOREGROUND); |
336 |
| - if (outlineNamespaceColor) { |
337 |
| - collector.addRule(`${Codicon.symbolNamespace.cssSelector} { color: ${outlineNamespaceColor}; }`); |
338 |
| - } |
339 |
| - |
340 |
| - const symbolIconNullColor = theme.getColor(SYMBOL_ICON_NULL_FOREGROUND); |
341 |
| - if (symbolIconNullColor) { |
342 |
| - collector.addRule(`${Codicon.symbolNull.cssSelector} { color: ${symbolIconNullColor}; }`); |
343 |
| - } |
344 |
| - |
345 |
| - const symbolIconNumberColor = theme.getColor(SYMBOL_ICON_NUMBER_FOREGROUND); |
346 |
| - if (symbolIconNumberColor) { |
347 |
| - collector.addRule(`${Codicon.symbolNumber.cssSelector} { color: ${symbolIconNumberColor}; }`); |
348 |
| - } |
349 |
| - |
350 |
| - const symbolIconObjectColor = theme.getColor(SYMBOL_ICON_OBJECT_FOREGROUND); |
351 |
| - if (symbolIconObjectColor) { |
352 |
| - collector.addRule(`${Codicon.symbolObject.cssSelector} { color: ${symbolIconObjectColor}; }`); |
353 |
| - } |
354 |
| - |
355 |
| - const symbolIconOperatorColor = theme.getColor(SYMBOL_ICON_OPERATOR_FOREGROUND); |
356 |
| - if (symbolIconOperatorColor) { |
357 |
| - collector.addRule(`${Codicon.symbolOperator.cssSelector} { color: ${symbolIconOperatorColor}; }`); |
358 |
| - } |
359 |
| - |
360 |
| - const symbolIconPackageColor = theme.getColor(SYMBOL_ICON_PACKAGE_FOREGROUND); |
361 |
| - if (symbolIconPackageColor) { |
362 |
| - collector.addRule(`${Codicon.symbolPackage.cssSelector} { color: ${symbolIconPackageColor}; }`); |
363 |
| - } |
364 |
| - |
365 |
| - const symbolIconPropertyColor = theme.getColor(SYMBOL_ICON_PROPERTY_FOREGROUND); |
366 |
| - if (symbolIconPropertyColor) { |
367 |
| - collector.addRule(`${Codicon.symbolProperty.cssSelector} { color: ${symbolIconPropertyColor}; }`); |
368 |
| - } |
369 |
| - |
370 |
| - const symbolIconReferenceColor = theme.getColor(SYMBOL_ICON_REFERENCE_FOREGROUND); |
371 |
| - if (symbolIconReferenceColor) { |
372 |
| - collector.addRule(`${Codicon.symbolReference.cssSelector} { color: ${symbolIconReferenceColor}; }`); |
373 |
| - } |
374 |
| - |
375 |
| - const symbolIconSnippetColor = theme.getColor(SYMBOL_ICON_SNIPPET_FOREGROUND); |
376 |
| - if (symbolIconSnippetColor) { |
377 |
| - collector.addRule(`${Codicon.symbolSnippet.cssSelector} { color: ${symbolIconSnippetColor}; }`); |
378 |
| - } |
379 |
| - |
380 |
| - const symbolIconStringColor = theme.getColor(SYMBOL_ICON_STRING_FOREGROUND); |
381 |
| - if (symbolIconStringColor) { |
382 |
| - collector.addRule(`${Codicon.symbolString.cssSelector} { color: ${symbolIconStringColor}; }`); |
383 |
| - } |
384 |
| - |
385 |
| - const symbolIconStructColor = theme.getColor(SYMBOL_ICON_STRUCT_FOREGROUND); |
386 |
| - if (symbolIconStructColor) { |
387 |
| - collector.addRule(`${Codicon.symbolStruct.cssSelector} { color: ${symbolIconStructColor}; }`); |
388 |
| - } |
389 |
| - |
390 |
| - const symbolIconTextColor = theme.getColor(SYMBOL_ICON_TEXT_FOREGROUND); |
391 |
| - if (symbolIconTextColor) { |
392 |
| - collector.addRule(`${Codicon.symbolText.cssSelector} { color: ${symbolIconTextColor}; }`); |
393 |
| - } |
394 |
| - |
395 |
| - const symbolIconTypeParameterColor = theme.getColor(SYMBOL_ICON_TYPEPARAMETER_FOREGROUND); |
396 |
| - if (symbolIconTypeParameterColor) { |
397 |
| - collector.addRule(`${Codicon.symbolTypeParameter.cssSelector} { color: ${symbolIconTypeParameterColor}; }`); |
398 |
| - } |
399 |
| - |
400 |
| - const symbolIconUnitColor = theme.getColor(SYMBOL_ICON_UNIT_FOREGROUND); |
401 |
| - if (symbolIconUnitColor) { |
402 |
| - collector.addRule(`${Codicon.symbolUnit.cssSelector} { color: ${symbolIconUnitColor}; }`); |
403 |
| - } |
404 |
| - |
405 |
| - const symbolIconVariableColor = theme.getColor(SYMBOL_ICON_VARIABLE_FOREGROUND); |
406 |
| - if (symbolIconVariableColor) { |
407 |
| - collector.addRule(`${Codicon.symbolVariable.cssSelector} { color: ${symbolIconVariableColor}; }`); |
408 |
| - } |
409 |
| -}); |
0 commit comments