From fb6a40b06b518f1167d07e032618da513ba3de49 Mon Sep 17 00:00:00 2001 From: tao wang Date: Thu, 25 May 2023 15:51:17 +0800 Subject: [PATCH] ENH:optimizing the style of AMS refueling process in a French language Change-Id: Ie0acb57aadd577c3dd7f42a5d76781e19a75dbd3 --- src/slic3r/GUI/Widgets/AMSControl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/Widgets/AMSControl.cpp b/src/slic3r/GUI/Widgets/AMSControl.cpp index 63899bf0c5..1029589a44 100644 --- a/src/slic3r/GUI/Widgets/AMSControl.cpp +++ b/src/slic3r/GUI/Widgets/AMSControl.cpp @@ -1973,12 +1973,14 @@ AMSControl::AMSControl(wxWindow *parent, wxWindowID id, const wxPoint &pos, cons m_button_extruder_feed->SetBorderColor(btn_bd_green); m_button_extruder_feed->SetTextColor(btn_text_green); m_button_extruder_feed->SetFont(Label::Body_13); + if (wxGetApp().app_config->get("language") == "de_FR") m_button_extruder_feed->SetFont(Label::Body_11); m_button_extruder_back = new Button(m_button_area, _L("Unload Filament")); m_button_extruder_back->SetBackgroundColor(btn_bg_white); m_button_extruder_back->SetBorderColor(btn_bd_white); m_button_extruder_back->SetTextColor(btn_text_white); m_button_extruder_back->SetFont(Label::Body_13); + if (wxGetApp().app_config->get("language") == "de_FR") m_button_extruder_back->SetFont(Label::Body_11); m_sizer_button_area->Add(0, 0, 1, wxEXPAND, 0); m_sizer_button_area->Add(m_button_extrusion_cali, 0, wxLEFT, FromDIP(5)); @@ -2150,7 +2152,9 @@ AMSControl::AMSControl(wxWindow *parent, wxWindowID id, const wxPoint &pos, cons m_button_ams_setting->SetBackgroundColour(m_amswin->GetBackgroundColour()); m_button_guide = new Button(m_amswin, _L("Guide")); + auto a = wxGetApp().app_config->get("language"); if (wxGetApp().app_config->get("language") == "de_DE") m_button_guide->SetFont(Label::Body_9); + if (wxGetApp().app_config->get("language") == "de_FR") m_button_guide->SetFont(Label::Body_9); else m_button_guide->SetFont(Label::Body_13); m_button_guide->SetCornerRadius(FromDIP(12)); m_button_guide->SetBorderColor(btn_bd_white); @@ -2160,6 +2164,7 @@ AMSControl::AMSControl(wxWindow *parent, wxWindowID id, const wxPoint &pos, cons m_button_retry = new Button(m_amswin, _L("Retry")); if (wxGetApp().app_config->get("language") == "de_DE") m_button_retry->SetFont(Label::Body_9); + if (wxGetApp().app_config->get("language") == "de_FR") m_button_retry->SetFont(Label::Body_9); else m_button_retry->SetFont(Label::Body_13); m_button_retry->SetCornerRadius(FromDIP(12)); m_button_retry->SetBorderColor(btn_bd_white);