SVGIconImageList icon indicating copy to clipboard operation
SVGIconImageList copied to clipboard

TSVGIconImageList doesn't load the icon colours for all icons

Open EricWex opened this issue 1 year ago • 1 comments

Block Change Swap (1)

The Style tag inside the error prone SVG files has a certain property named stroke-width: 0px. This property is always shared between a number of classes, e.g.: Image

The position of this style is what causes the icons to misbehave. If I shift this style to be the last style in the file's Style tag, the colours render correctly:

Image

Funny enough, the images display fine without any modifications in a browser, and in the File Explorer Preview Pane.

Here are the code

  .cls-1, .cls-2, .cls-3, .cls-4 {
    stroke-width: 0px;
  }

  .cls-2 {
    fill: #0071bc;
  }

  .cls-3 {
    fill: #ccc;
  }

  .cls-4 {
    fill: #fff;
  }
</style>

  
  
  
  
  
  
    
    
  

and this is our fix

  .cls-2 {
    fill: #0071bc;
  }

  .cls-3 {
    fill: #ccc;
  }

  .cls-4 {
    fill: #fff;
  }
</style>

  
  
  
  
  
  
    
    
  
      .cls-1, .cls-2, .cls-3, .cls-4 {
        stroke-width: 0px;
      }


                                    

EricWex avatar Jan 24 '24 12:01 EricWex

it's a problems inside the Image32 engine... You must open the issue in the https://github.com/AngusJohnson/Image32 repo. When Angus Johnson resolve the problem you can replace your units into Image32\Source units of this project.

carloBarazzetta avatar Mar 04 '24 11:03 carloBarazzetta