Revert "medical"

This reverts commit 117302ba22.
This commit is contained in:
Vojtech Bubnik
2021-11-11 11:22:57 +01:00
parent 515c34be6f
commit a2e764d7ac
12 changed files with 12 additions and 29 deletions

View File

@@ -20,7 +20,7 @@
namespace Slic3r { namespace GUI {
BitmapCache::BitmapCache(bool medical) : m_medical(medical)
BitmapCache::BitmapCache()
{
#ifdef __APPLE__
// Note: win->GetContentScaleFactor() is not used anymore here because it tends to
@@ -280,9 +280,7 @@ wxBitmap* BitmapCache::load_svg(const std::string &bitmap_name, unsigned target_
if (dark_mode)
replaces["#808080"] = "#FFFFFF";
if (!new_color.empty())
replaces[m_medical ? "#5EA796" : "#ED6B21"] = new_color;
if (m_medical)
replaces["#ED6B21"] = "#5EA796";
replaces["#ED6B21"] = new_color;
NSVGimage *image = ::nsvgParseFromFileWithReplace(Slic3r::var(bitmap_name + ".svg").c_str(), "px", 96.0f, replaces);
if (image == nullptr)