From 96cbe77e8880b90b293bcf79daeda1a4de29abe8 Mon Sep 17 00:00:00 2001 From: 76Octane <132669596+76Octane@users.noreply.github.com> Date: Wed, 14 Jun 2023 11:25:45 +0800 Subject: [PATCH] Update NotificationManager.cpp --- src/slic3r/GUI/NotificationManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp index eb9c906..f7eedc2 100644 --- a/src/slic3r/GUI/NotificationManager.cpp +++ b/src/slic3r/GUI/NotificationManager.cpp @@ -238,8 +238,8 @@ bool NotificationManager::PopNotification::push_background_color() if (m_data.level == NotificationLevel::ErrorNotificationLevel) { // ImVec4 backcolor = ImGui::GetStyleColorVec4(ImGuiCol_WindowBg); ImVec4 backcolor(0.27f, 0.47f, 1.0f, 0.5f); - backcolor.x += 0.73f; - backcolor.y += 0.03f; + backcolor.x += 0.73f; + backcolor.y -= 0.47f; backcolor.z -= 1.0f; push_style_color(ImGuiCol_WindowBg, backcolor, m_state == EState::FadingOut, m_current_fade_opacity); return true; @@ -248,7 +248,7 @@ bool NotificationManager::PopNotification::push_background_color() // ImVec4 backcolor = ImGui::GetStyleColorVec4(ImGuiCol_WindowBg); ImVec4 backcolor(0.27f, 0.47f, 1.0f, 0.5f); backcolor.x += 0.73f; - backcolor.y -= 0.47f; + backcolor.y += 0.03f; backcolor.z -= 1.0f; push_style_color(ImGuiCol_WindowBg, backcolor, m_state == EState::FadingOut, m_current_fade_opacity); return true;