diff --git a/resources/icons/notification_close.svg b/resources/icons/notification_close.svg
new file mode 100644
index 000000000..708d8bfef
--- /dev/null
+++ b/resources/icons/notification_close.svg
@@ -0,0 +1,18 @@
+
+
+
diff --git a/resources/icons/notification_close_hover.svg b/resources/icons/notification_close_hover.svg
new file mode 100644
index 000000000..a04dce21a
--- /dev/null
+++ b/resources/icons/notification_close_hover.svg
@@ -0,0 +1,66 @@
+
+
diff --git a/resources/icons/notification_error.svg b/resources/icons/notification_error.svg
new file mode 100644
index 000000000..5356e7af6
--- /dev/null
+++ b/resources/icons/notification_error.svg
@@ -0,0 +1,71 @@
+
+
diff --git a/resources/icons/notification_minimalize.svg b/resources/icons/notification_minimalize.svg
new file mode 100644
index 000000000..bb3ae9b7a
--- /dev/null
+++ b/resources/icons/notification_minimalize.svg
@@ -0,0 +1,14 @@
+
+
+
diff --git a/resources/icons/notification_minimalize_hover.svg b/resources/icons/notification_minimalize_hover.svg
new file mode 100644
index 000000000..bc5bc6cca
--- /dev/null
+++ b/resources/icons/notification_minimalize_hover.svg
@@ -0,0 +1,58 @@
+
+
diff --git a/resources/icons/notification_warning.svg b/resources/icons/notification_warning.svg
new file mode 100644
index 000000000..6ba7a046d
--- /dev/null
+++ b/resources/icons/notification_warning.svg
@@ -0,0 +1,70 @@
+
+
diff --git a/src/imgui/imconfig.h b/src/imgui/imconfig.h
index feda857ae..4a1d1faa0 100644
--- a/src/imgui/imconfig.h
+++ b/src/imgui/imconfig.h
@@ -108,17 +108,19 @@ namespace ImGui
const char ColorMarkerEnd = 0x3; // ETX
// Special ASCII characters are used here as an ikons markers
- const char PrintIconMarker = 0x4;
- const char PrinterIconMarker = 0x5;
- const char PrinterSlaIconMarker = 0x6;
- const char FilamentIconMarker = 0x7;
- const char MaterialIconMarker = 0x8;
- const char CloseIconMarker = 0xB;
- const char CloseIconHoverMarker = 0xC;
- const char TimerDotMarker = 0xE;
- const char TimerDotEmptyMarker = 0xF;
- const char WarningMarker = 0x10;
- const char ErrorMarker = 0x11;
+ const char PrintIconMarker = 0x4;
+ const char PrinterIconMarker = 0x5;
+ const char PrinterSlaIconMarker = 0x6;
+ const char FilamentIconMarker = 0x7;
+ const char MaterialIconMarker = 0x8;
+ const char CloseIconMarker = 0xB;
+ const char CloseIconHoverMarker = 0xC;
+// const char TimerDotMarker = 0xE;
+// const char TimerDotEmptyMarker = 0xF;
+ const char MinimalizeMarker = 0xE;
+ const char MinimalizeHoverMarker = 0xF;
+ const char WarningMarker = 0x10;
+ const char ErrorMarker = 0x11;
// void MyFunction(const char* name, const MyMatrix44& v);
}
diff --git a/src/slic3r/GUI/ImGuiWrapper.cpp b/src/slic3r/GUI/ImGuiWrapper.cpp
index 7c2754502..e839fdf9b 100644
--- a/src/slic3r/GUI/ImGuiWrapper.cpp
+++ b/src/slic3r/GUI/ImGuiWrapper.cpp
@@ -37,17 +37,19 @@ namespace GUI {
static const std::map font_icons = {
- {ImGui::PrintIconMarker , "cog" },
- {ImGui::PrinterIconMarker , "printer" },
- {ImGui::PrinterSlaIconMarker, "sla_printer" },
- {ImGui::FilamentIconMarker , "spool" },
- {ImGui::MaterialIconMarker , "resin" },
- {ImGui::CloseIconMarker , "cross" },
- {ImGui::CloseIconHoverMarker, "cross_focus_large" },
- {ImGui::TimerDotMarker , "timer_dot" },
- {ImGui::TimerDotEmptyMarker , "timer_dot_empty" },
- {ImGui::WarningMarker , "flag_green" },
- {ImGui::ErrorMarker , "flag_red" }
+ {ImGui::PrintIconMarker , "cog" },
+ {ImGui::PrinterIconMarker , "printer" },
+ {ImGui::PrinterSlaIconMarker , "sla_printer" },
+ {ImGui::FilamentIconMarker , "spool" },
+ {ImGui::MaterialIconMarker , "resin" },
+ {ImGui::CloseIconMarker , "notification_close" },
+ {ImGui::CloseIconHoverMarker , "notification_close_hover" },
+ //{ImGui::TimerDotMarker , "timer_dot" },
+ //{ImGui::TimerDotEmptyMarker , "timer_dot_empty" },
+ {ImGui::MinimalizeMarker , "notification_minimalize" },
+ {ImGui::MinimalizeHoverMarker , "notification_minimalize_hover" },
+ {ImGui::WarningMarker , "notification_warning" },
+ {ImGui::ErrorMarker , "notification_error" }
};
const ImVec4 ImGuiWrapper::COL_GREY_DARK = { 0.333f, 0.333f, 0.333f, 1.0f };
diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp
index b7301f3d8..e90557a65 100644
--- a/src/slic3r/GUI/NotificationManager.cpp
+++ b/src/slic3r/GUI/NotificationManager.cpp
@@ -492,12 +492,12 @@ void NotificationManager::PopNotification::render_minimize_button(ImGuiWrapper&
//button - if part if treggered
std::string button_text;
- button_text = ImGui::CloseIconMarker;
+ button_text = ImGui::MinimalizeMarker;
if (ImGui::IsMouseHoveringRect(ImVec2(win_pos_x - m_window_width / 10.f, win_pos_y + m_window_height - 2 * m_line_height + 1),
ImVec2(win_pos_x, win_pos_y + m_window_height),
true))
{
- button_text = ImGui::CloseIconHoverMarker;
+ button_text = ImGui::MinimalizeHoverMarker;
}
ImVec2 button_pic_size = ImGui::CalcTextSize(button_text.c_str());
ImVec2 button_size(button_pic_size.x * 1.25f, button_pic_size.y * 1.25f);
diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp
index 1fe32fd2d..1e4b34489 100644
--- a/src/slic3r/GUI/Plater.cpp
+++ b/src/slic3r/GUI/Plater.cpp
@@ -3481,6 +3481,10 @@ void Plater::priv::add_warning(const Slic3r::PrintStateBase::Warning& warning, s
}
void Plater::priv::actualizate_warnings(const Model& model, size_t print_oid)
{
+ if (model.objects.size() == 0) {
+ clear_warnings();
+ return;
+ }
std::vector living_oids;
living_oids.push_back(model.id().id);
living_oids.push_back(print_oid);