Commit d8844e3
committed
Implement dynamic SVG icon colorization system
- Add SVGColorize class for theme-based icon colorization using lxml
- Create unified svg/ directory with all icons from light/ directory
- Update icon_manager.py to support dynamic SVG colorization
- Add ICON_COLORS dictionary mapping CSS classes to theme colors
- Implement _process_svg_icon and _process_regular_icon methods
- Update image_path_manager.py to prioritize svg/ directory
- Support for ICON_1, ICON_2, ICON_3, ICON_4, SPYDER_LOGO_WEB, SPYDER_LOGO_SNAKE classes
This system allows SVG icons to automatically adapt to the current theme
by replacing CSS class names with actual color values from SpyderPalette.1 parent 1f9ead6 commit d8844e3
File tree
56 files changed
+450
-6
lines changed- spyder
- images/svg
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+450
-6
lines changedLoading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
0 commit comments