From c2978c05a9c4154323209644c262066a43210dfa Mon Sep 17 00:00:00 2001 From: tao wang Date: Tue, 13 Dec 2022 11:28:11 +0800 Subject: [PATCH] FIX:auto-calc button has wrong background Change-Id: I2d295dbfb1c8f50c2ce28fa0cff69b10926c55bb --- src/slic3r/GUI/WipeTowerDialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/WipeTowerDialog.cpp b/src/slic3r/GUI/WipeTowerDialog.cpp index 1afa07f919..094506d887 100644 --- a/src/slic3r/GUI/WipeTowerDialog.cpp +++ b/src/slic3r/GUI/WipeTowerDialog.cpp @@ -345,7 +345,7 @@ WipingPanel::WipingPanel(wxWindow* parent, const std::vector& matrix, con ); StateColor calc_btn_text( - std::pair(wxColour(255, 255, 255), StateColor::Normal) + std::pair(wxColour(255, 255, 254), StateColor::Normal) ); Button* calc_btn = new Button(this, _L("Auto-Calc")); @@ -353,6 +353,7 @@ WipingPanel::WipingPanel(wxWindow* parent, const std::vector& matrix, con calc_btn->SetCornerRadius(FromDIP(12)); calc_btn->SetBackgroundColor(calc_btn_bg); calc_btn->SetBorderColor(calc_btn_bd); + calc_btn->SetBackgroundColour(*wxWHITE); calc_btn->SetTextColor(calc_btn_text); calc_btn->SetFocus(); calc_btn->SetId(wxID_RESET);