mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Workaround to fix #2251
This commit is contained in:
parent
9c288df1b6
commit
6b379428d4
2 changed files with 12 additions and 3 deletions
|
@ -2657,7 +2657,14 @@ ScalableButton::ScalableButton( wxWindow * parent,
|
|||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||
#endif // __WXMSW__
|
||||
|
||||
SetBitmap(create_scaled_bitmap(parent, icon_name));
|
||||
/* #FIXME Edit preset Buttons under OSX.
|
||||
* Because of _strange_ layout of a Button with a scaled Bitmap on nonactive wxWindow,
|
||||
* there is just temporary workaround.
|
||||
* Send to create_scaled_bitmap(nullptr,...) for buttons without text =>
|
||||
* Bitmaps for this Buttons wouldn't be scaled and would be some blurred now, but
|
||||
* they would be correctly updated on Plater
|
||||
*/
|
||||
SetBitmap(create_scaled_bitmap(label.IsEmpty() ? nullptr : parent, icon_name));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue