Extract editor color map and simplify SVG color conversion

This commit is contained in:
Yuri Sizov
2022-08-23 14:15:31 +03:00
parent 0626ce50cf
commit c78cbb523f
6 changed files with 173 additions and 143 deletions
@@ -84,7 +84,7 @@ static Ref<ImageTexture> generate_icon(int p_index) {
// with integer scales.
const bool upsample = !Math::is_equal_approx(Math::round(scale), scale);
ImageLoaderSVG img_loader;
img_loader.create_image_from_string(img, default_theme_icons_sources[p_index], scale, upsample, false);
img_loader.create_image_from_string(img, default_theme_icons_sources[p_index], scale, upsample, HashMap<Color, Color>());
#endif
return ImageTexture::create_from_image(img);