mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fixed input parameter for ConvertToGreyscale()
This commit is contained in:
parent
b62351299d
commit
fa00719bcc
1 changed files with 2 additions and 2 deletions
|
@ -61,8 +61,8 @@ void enable_menu_item(wxUpdateUIEvent& evt, std::function<bool()> const cb_condi
|
||||||
{
|
{
|
||||||
const wxBitmap& item_icon = create_scaled_bitmap(nullptr, it->second);
|
const wxBitmap& item_icon = create_scaled_bitmap(nullptr, it->second);
|
||||||
if (item_icon.IsOk()) {
|
if (item_icon.IsOk()) {
|
||||||
static const wxBitmap disabled_icon = item_icon.ConvertToImage().ConvertToGreyscale(0.5, 0.5, 0.5);
|
double g = 0.6;
|
||||||
item->SetBitmap(enable ? item_icon : disabled_icon);
|
item->SetBitmap(enable ? item_icon : item_icon.ConvertToImage().ConvertToGreyscale(g, g, g));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // __WXOSX__
|
#endif // __WXOSX__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue