From 99b2f2b529287a647ba97f6684c8f22c85805a37 Mon Sep 17 00:00:00 2001 From: 76Octane <132669596+76Octane@users.noreply.github.com> Date: Sat, 10 Jun 2023 15:10:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20NotificationManager.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/slic3r/GUI/NotificationManager.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp index 01144f0..eb9c906 100644 --- a/src/slic3r/GUI/NotificationManager.cpp +++ b/src/slic3r/GUI/NotificationManager.cpp @@ -238,15 +238,18 @@ 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.3f; + backcolor.x += 0.73f; + backcolor.y += 0.03f; + backcolor.z -= 1.0f; push_style_color(ImGuiCol_WindowBg, backcolor, m_state == EState::FadingOut, m_current_fade_opacity); return true; } if (m_data.level == NotificationLevel::WarningNotificationLevel) { // ImVec4 backcolor = ImGui::GetStyleColorVec4(ImGuiCol_WindowBg); ImVec4 backcolor(0.27f, 0.47f, 1.0f, 0.5f); - backcolor.x += 0.3f; - backcolor.y += 0.15f; + 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; }