antfu / vscode-iconify

🙂 Iconify IntelliSense for VS Code
https://marketplace.visualstudio.com/items?itemName=antfu.iconify
MIT License
453 stars 33 forks source link

feat: add color checking for HighContrastDark #66

Closed vabatta closed 7 months ago

vabatta commented 7 months ago

Description

This PR add enhancements to the theme recognition logic of Visual Studio Code.

It addresses the limitation in identifying the current activeColorTheme.kind when theme names do not explicitly include "light" (e.g., "Catppuccin Latte").

The proposed improvements expand the handling of window.activeColorTheme.kind to include HighContrastDark, Light, and HighContrastLight themes. Currently, the logic is restricted to the Dark type and relies on a regex fallback that necessitates the presence of "light" or "dark" in the theme name.

Linked Issues

n.a.

Additional context

n.a.