From f4670d32b20b95bea7161428d6ed86964705077c Mon Sep 17 00:00:00 2001 From: yw4z Date: Wed, 9 Sep 2026 23:57:57 +0300 Subject: [PATCH] recenter dialog text color --- src/slic3r/GUI/RecenterDialog.cpp | 3 ++- src/slic3r/GUI/RecenterDialog.hpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/RecenterDialog.cpp b/src/slic3r/GUI/RecenterDialog.cpp index 11f185bf89..a2cdbba7fe 100644 --- a/src/slic3r/GUI/RecenterDialog.cpp +++ b/src/slic3r/GUI/RecenterDialog.cpp @@ -9,7 +9,7 @@ #define BORDER FromDIP(25) #define DRAW_PANEL_SIZE wxSize(FromDIP(475), FromDIP(100)) -const wxColour text_color(107, 107, 107); +//const wxColour text_color(107, 107, 107); namespace Slic3r { namespace GUI { RecenterDialog::RecenterDialog(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) @@ -17,6 +17,7 @@ RecenterDialog::RecenterDialog(wxWindow* parent, wxWindowID id, const wxString& { hint1 = _L("Please home all axes (click "); hint2 = _L(") to locate the toolhead's position. This prevents device moving beyond the printable boundary and causing equipment wear."); + text_color = StateColor::darkModeColorFor(wxColour("#363636")); // ORCA use readable color for dark mode init_bitmap(); diff --git a/src/slic3r/GUI/RecenterDialog.hpp b/src/slic3r/GUI/RecenterDialog.hpp index cd7511d3f5..08908aba6c 100644 --- a/src/slic3r/GUI/RecenterDialog.hpp +++ b/src/slic3r/GUI/RecenterDialog.hpp @@ -13,6 +13,7 @@ private: ScalableBitmap m_home_bmp; wxString hint1; wxString hint2; + wxColour text_color; void init_bitmap(); void OnPaint(wxPaintEvent& event);