Revert "medical"

This reverts commit 117302ba22.
This commit is contained in:
Vojtech Bubnik 2021-11-11 11:22:57 +01:00
parent 17686b4814
commit 3a93277531
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)