mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 10:11:10 -06:00
parent
17686b4814
commit
3a93277531
12 changed files with 12 additions and 29 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue