This commit is contained in:
yw4z
2026-07-21 01:42:49 +03:00
parent a24115d996
commit 44f6bda4b1
3 changed files with 8 additions and 1 deletions

View File

@@ -548,7 +548,7 @@ void RemoveButtonBorder(wxWindow* win)
GtkCssProvider* provider = gtk_css_provider_new(); GtkCssProvider* provider = gtk_css_provider_new();
const char* css = const char* css =
"button {" "button, button:hover, button:active, button:focus {"
" border: none;" " border: none;"
" outline: none;" " outline: none;"
" box-shadow: none;" " box-shadow: none;"

View File

@@ -865,6 +865,9 @@ PlaterPresetComboBox::PlaterPresetComboBox(wxWindow *parent, Preset::Type preset
clr_picker = new wxBitmapButton(parent, wxID_ANY, {}, wxDefaultPosition, wxSize(FromDIP(20), FromDIP(20)), wxBU_EXACTFIT | wxBU_AUTODRAW | wxBORDER_NONE); clr_picker = new wxBitmapButton(parent, wxID_ANY, {}, wxDefaultPosition, wxSize(FromDIP(20), FromDIP(20)), wxBU_EXACTFIT | wxBU_AUTODRAW | wxBORDER_NONE);
clr_picker->SetBackgroundColour(StateColor::darkModeColorFor(*wxWHITE)); clr_picker->SetBackgroundColour(StateColor::darkModeColorFor(*wxWHITE));
clr_picker->SetToolTip(_L("Click to select filament color")); clr_picker->SetToolTip(_L("Click to select filament color"));
#ifdef __WXGTK__
RemoveButtonBorder(clr_picker);
#endif
clr_picker->Bind(wxEVT_BUTTON, [this](wxCommandEvent& e) { clr_picker->Bind(wxEVT_BUTTON, [this](wxCommandEvent& e) {
// Check if it's an official filament // Check if it's an official filament
auto fila_type = Preset::remove_suffix_modified(GetValue().ToUTF8().data()); auto fila_type = Preset::remove_suffix_modified(GetValue().ToUTF8().data());

View File

@@ -1022,6 +1022,10 @@ ScalableButton::ScalableButton( wxWindow * parent,
m_width = size.x * 10 / em; m_width = size.x * 10 / em;
m_height= size.y * 10 / em; m_height= size.y * 10 / em;
} }
#ifdef __WXGTK__
Slic3r::GUI::RemoveButtonBorder(this);
#endif
} }