Changed icons for lock/unlock filament_presets on Plater tab

Experiment with filament_presets transparency on GTK
This commit is contained in:
YuSanka 2018-04-11 15:35:04 +02:00
parent 762306d985
commit 723bd22b96
2 changed files with 6 additions and 3 deletions

View File

@ -88,7 +88,10 @@ wxBitmap* BitmapCache::insert(const std::string &bitmap_key, std::vector<wxBitma
wxMemoryDC memDC;
memDC.SelectObject(*bitmap);
memDC.SetBackground(*wxTRANSPARENT_BRUSH);
#ifdef __WXGTK__
#else
memDC.SetBackground(*wxTRANSPARENT_BRUSH);
#endif
memDC.Clear();
size_t x = 0;
for (wxBitmap &bmp : bmps) {

View File

@ -254,8 +254,8 @@ bool PresetBundle::load_compatible_bitmaps()
{
const std::string path_bitmap_compatible = "flag-green-icon.png";
const std::string path_bitmap_incompatible = "flag-red-icon.png";
const std::string path_bitmap_lock = "lock.png";
const std::string path_bitmap_lock_open = "lock_open.png";
const std::string path_bitmap_lock = "sys_lock.png";//"lock.png";
const std::string path_bitmap_lock_open = "sys_unlock.png";//"lock_open.png";
bool loaded_compatible = m_bitmapCompatible ->LoadFile(
wxString::FromUTF8(Slic3r::var(path_bitmap_compatible).c_str()), wxBITMAP_TYPE_PNG);
bool loaded_incompatible = m_bitmapIncompatible->LoadFile(