Extract editor color map and simplify SVG color conversion
This commit is contained in:
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue