Skip to content

Commit d8844e3

Browse files
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

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 changed
Lines changed: 1 addition & 0 deletions
Loading

spyder/images/svg/binary.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

spyder/images/svg/debug.svg

Lines changed: 1 addition & 0 deletions
Loading

spyder/images/svg/debug_cell.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)