mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-02 06:30:41 +08:00
Fixed input parameter for ConvertToGreyscale()
This commit is contained in:
parent
b62351299d
commit
fa00719bcc
@ -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…
x
Reference in New Issue
Block a user