Skip to content

Commit

Permalink
Fix for #11664 - 2.7.0 Beta 1: GUI Checkboxes is now very hard to see…
Browse files Browse the repository at this point in the history
… in GTK2 version
  • Loading branch information
YuSanka committed Nov 15, 2023
1 parent 2e07572 commit 0c1a38c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/slic3r/GUI/Widgets/BitmapToggleButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BitmapToggleButton::BitmapToggleButton(wxWindow* parent, const wxString& label,
if (label.IsEmpty())
wxBitmapToggleButton::Create(parent, id, wxNullBitmap, wxDefaultPosition, wxDefaultSize, style);
else {
#ifdef __linux__
#ifdef __WXGTK3__
wxSize label_size = parent->GetTextExtent(label);
wxSize def_size = wxSize(label_size.GetX() + 20, label_size.GetY());
#else
Expand All @@ -23,7 +23,7 @@ BitmapToggleButton::BitmapToggleButton(wxWindow* parent, const wxString& label,
SetBackgroundColour(parent->GetBackgroundColour());
SetForegroundColour(parent->GetForegroundColour());
}
#elif __linux__
#elif __WXGTK3__
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
#endif

Expand All @@ -40,7 +40,7 @@ BitmapToggleButton::BitmapToggleButton(wxWindow* parent, const wxString& label,

void BitmapToggleButton::update_size()
{
#ifndef __WXGTK__
#ifndef __WXGTK3__
wxSize best_sz = GetBestSize();
SetSize(best_sz);
#endif
Expand Down

0 comments on commit 0c1a38c

Please sign in to comment.