FIX:fixed some icons cant display when change dark mode

Change-Id: I0984aab97e1a1c151e9173d96c8f012935c48fcb
This commit is contained in:
tao wang 2023-04-13 12:02:20 +08:00 committed by Lane.Wei
parent 719f273fa2
commit 64e203e05c
22 changed files with 145 additions and 88 deletions

View file

@ -446,7 +446,7 @@ wxBitmap create_scaled_bitmap( const std::string& bmp_name_in,
#ifdef _WIN32
menu_bitmap ? Slic3r::GUI::check_dark_mode() :
#endif
Slic3r::GUI::wxGetApp().dark_mode();
Slic3r::GUI::wxGetApp().dark_mode();
// Try loading an SVG first, then PNG if SVG is not found:
wxBitmap *bmp = cache.load_svg(bmp_name, width, height, grayscale, dark_mode, new_color, resize ? em_unit(win) * 0.1f : 0.f);