diff --git a/resources/images/filament_transparent2.svg b/resources/images/filament_transparent2.svg new file mode 100644 index 000000000..07bf35a7a --- /dev/null +++ b/resources/images/filament_transparent2.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/slic3r/GUI/DragDropPanel.cpp b/src/slic3r/GUI/DragDropPanel.cpp index 4b10f9728..4897b29e6 100644 --- a/src/slic3r/GUI/DragDropPanel.cpp +++ b/src/slic3r/GUI/DragDropPanel.cpp @@ -104,7 +104,7 @@ void ColorPanel::OnPaint(wxPaintEvent &event) std::string replace_color = m_color.GetAsString(wxC2S_HTML_SYNTAX).ToStdString(); std::string svg_name = "filament_green"; if (replace_color == "#FFFFFF00") { - svg_name = "filament_transparent"; + svg_name = "filament_transparent2"; } wxBitmap bmp = ScalableBitmap(this, svg_name, 40, false, false, false, { replace_color }).bmp(); dc.DrawBitmap(bmp, wxPoint(0,0)); diff --git a/src/slic3r/GUI/ImGuiWrapper.cpp b/src/slic3r/GUI/ImGuiWrapper.cpp index 32e0aeacb..595dc0eb9 100644 --- a/src/slic3r/GUI/ImGuiWrapper.cpp +++ b/src/slic3r/GUI/ImGuiWrapper.cpp @@ -2916,7 +2916,7 @@ void ImGuiWrapper::filament_group(const std::string &filament_type, const char * Slic3r::GUI::BitmapCache::parse_color4(hex_color, rgba); std::string svg_path = "/images/filament_green.svg"; if (rgba[3] == 0x00) { - svg_path = "/images/filament_transparent.svg"; + svg_path = "/images/filament_transparent2.svg"; } BitmapCache::load_from_svg_file_change_color(Slic3r::resources_dir() + svg_path, img_size.x, img_size.y, transparent, hex_color); ImGui::BeginGroup();